Results 1 to 3 of 3
hi,
i know that the question that i will putt is silly.
but i do like to know how to give permissions in linux to specific users on specific directorys ...
- 06-05-2009 #1Just Joined!
- Join Date
- Mar 2008
- Posts
- 1
linux permissions
hi,
i know that the question that i will putt is silly.
but i do like to know how to give permissions in linux to specific users on specific directorys ;files. i know about chmod 777 or xrw ...... ; but i whould like to give permissons to specific users like permission you give in windows to a specific user. how do i do this in command line in linux?
- 06-05-2009 #2
You would use the chown command, but specify the user and the group the user is a member of. You must have root privileges, so use the su command to gain them.
Example, user is paul and group is paul. folder is /video.
The -R is to to it recursively, that is to change the ownership on all files within the folder.Code:chown -R paul:paul /video
Paul
Please do not send Private Messages to me with requests for help. I will not reply.
- 06-05-2009 #3Linux Newbie
- Join Date
- Mar 2009
- Posts
- 228
Using chown works if only one user needs acces. If you have to give mulitple users access then you have to use ACLs (Access Control Lists). Look at manpage setfacl for details.
Also, the disk that has the directory has to be mounted with the '-o acl' option.


Reply With Quote