Find the answer to your Linux question:
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 ...
  1. #1
    Just 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?

  2. #2
    Linux Guru waterhead's Avatar
    Join Date
    Jul 2004
    Location
    Franklin, Wisconsin
    Posts
    4,577
    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.
    Code:
    chown -R paul:paul /video
    The -R is to to it recursively, that is to change the ownership on all files within the folder.
    Paul

    Please do not send Private Messages to me with requests for help. I will not reply.

  3. #3
    Linux 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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...