Results 1 to 2 of 2

Thread: Setting permissions for folder and file access in Linux

  1. #1
    Member honey bee's Avatar
    Join Date
    Feb 2006
    Location
    Pakistan
    Posts
    146

    Question Setting permissions for folder and file access in Linux

    Hello,

    What's the difference between chmod and setfacl commands?.If i have three folders:

    Folder1, Folder2, Folder3

    All of them belong to same group and their owners are user1, user2 and user3 respectively.All these folders have 2 sub-folders.

    Now, i have another system user "user4", i want to give this user access rights for only Folder1 and on one of the sub-folder of Folder2.How i'll do that in linux?

  2. #2
    Member honey bee's Avatar
    Join Date
    Feb 2006
    Location
    Pakistan
    Posts
    146
    Found a solution:
    To set user permission for a particular folder we use the command "setfacl":

    setfacl -m user:username:rwx foldername

    , where "rwx" is for read, write and execute, similarly for read only "r--", write only "-w-", execute only "--x".

Similar Threads

  1. Documents and Settings Folder Access Denied
    By Flip07 in forum Windows - General Topics
    Replies: 5
    Last Post: 01-07-2007, 02:25 PM
  2. Unable to change permissions on a mounted win2k_server folder
    By clemo in forum Linux - Hardware, Networking & Security
    Replies: 19
    Last Post: 08-14-2005, 04:15 PM
  3. file permissions
    By sentme_mail in forum Linux - General Topics
    Replies: 8
    Last Post: 11-20-2004, 04:39 AM
  4. File permissions upon creating the file
    By cloverm in forum Linux - Software, Applications & Programming
    Replies: 2
    Last Post: 05-17-2004, 07:48 PM
  5. Tid-Bits #3- Setting Permissions
    By babbing in forum Linux - General Topics
    Replies: 8
    Last Post: 10-29-2002, 05:42 AM

Bookmarks

Posting Permissions

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