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. Linux Benchmarking
    By comtux in forum Linux - General Topics
    Replies: 2
    Last Post: 01-08-2005, 12:17 AM
  2. List of fixes included in Windows XP SP2
    By regix in forum Windows - General Topics
    Replies: 6
    Last Post: 01-03-2005, 10:44 PM
  3. New Features that are included in Access 2000
    By regix in forum Windows - General Topics
    Replies: 0
    Last Post: 01-01-2005, 02:17 AM
  4. Calling all mail server admins
    By demian in forum Linux - Hardware, Networking & Security
    Replies: 4
    Last Post: 04-21-2004, 08:21 PM

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
  •