NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
Kojak1
May 08, 2014Aspirant
Mac Access as Admin
Hi, I am getting a Mac next week, and a little unsure of the big wide world of Mac.! Currently on my PC, I have to connect to the files as Admin (using DOS Prompt etc) - otherwise I cant change,...
xeltros
May 11, 2014Apprentice
Ok I'll break it down.
Linux uses commands structured like that : Command_name options arguments
so chmod is the command linux/OS X uses to change folder rights, -R is an option to say recursive (apply to subfolders if you prefer), then the first number set rights for the owner, the second for owner's group and the third for everybody else.
so let's say a file is create by the user adminUser, which has for group adminGRP (every user has at least a default group, even on windows you are at least in the group "Users" and can have many more groups).
if I do chmod -R 750 /folder (yep linux/OS X don't have C:, it's "/")
this means that adminUser can read and write, that adminGRP can read including subfolders and than everybody else cannot see the files.
Linux does rights like this, you have one user, one group and everybody else, you cannot set rights for user1 and user2. So if you want a bunch of users to have rights you have to get them in a group and then set rights for that group. So most of the times in NAS they set rights on linux in a way that they don't really have to bother with them (allow everything to every one) and then they set rights per user with the sharing protocol (SMB, AFP, FTP...) which is way more flexible. Linux retains the more restrictive of the two sets of rights.
that said command line is not required unless every else fails which is unlikely to happen, I believe you can do all this from your NAS if needed in the advanced folder options.
is it clearer ?
Linux uses commands structured like that : Command_name options arguments
so chmod is the command linux/OS X uses to change folder rights, -R is an option to say recursive (apply to subfolders if you prefer), then the first number set rights for the owner, the second for owner's group and the third for everybody else.
so let's say a file is create by the user adminUser, which has for group adminGRP (every user has at least a default group, even on windows you are at least in the group "Users" and can have many more groups).
if I do chmod -R 750 /folder (yep linux/OS X don't have C:, it's "/")
this means that adminUser can read and write, that adminGRP can read including subfolders and than everybody else cannot see the files.
Linux does rights like this, you have one user, one group and everybody else, you cannot set rights for user1 and user2. So if you want a bunch of users to have rights you have to get them in a group and then set rights for that group. So most of the times in NAS they set rights on linux in a way that they don't really have to bother with them (allow everything to every one) and then they set rights per user with the sharing protocol (SMB, AFP, FTP...) which is way more flexible. Linux retains the more restrictive of the two sets of rights.
that said command line is not required unless every else fails which is unlikely to happen, I believe you can do all this from your NAS if needed in the advanced folder options.
is it clearer ?
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!