ACL in RedHat Linux

Posted on 2009-04-21
Last Modified: 2013-12-06
how to assign acl in linux? I know ACL's in Solaris.
 Is it same?

group : xyz
users : user1, user2,user3,user4,yser5
directroy name : /data

my requirment is i need to give full access (rwx)  for user1,user4 and user3,user4 for  ready only access for /data folder.

Question by:psharatkumar
    LVL 16

    Expert Comment

    You assign ACL with chmod to a file or directory and subdirs.
    Basically, you can define permissions for a user, his group and rest of the world. Permissions are given for read, write and execute. To see a file's permissions, type

    ls -l filename

    and you'll see something like this

    - rwx r-xr-x  joe  acctg

    that means, in this example, all permissions for user joe, read+execute for group acctg and read+execute for everybody else for the file

    You may find a tutorial for chmod here(

    LVL 14

    Accepted Solution

    14.1. Mounting File Systems
    Before using ACLs for a file or directory, the partition for the file or directory must be mounted with ACL support. If it is a local ext3 file system, it can mounted with the following command:

    mount -t ext3 -o acl  
    For example:

    mount -t ext3 -o acl /dev/VolGroup00/LogVol02 /work
    Alternatively, if the partition is listed in the /etc/fstab file, the entry for the partition can include the acl option:

    LABEL=/work      /work       ext3    acl        1 2
    If an ext3 file system is accessed via Samba and ACLs have been enabled for it, the ACLs are recognized because Samba has been compiled with the --with-acl-support option. No special flags are required when accessing or mounting a Samba share.

    Then use following commands
    There are type in your question at users
    #setfacl -m u:user1:rwx /data
    #setfacl -m u:user4:rwx /data
    #setfacl -m u:user2:r /data
    #setfacl -m u:user3:r /data

    Open in new window

    LVL 14

    Expert Comment

    by:Deepak Kosaraju

    Author Comment

    Is it require any rpm package for acl's
    How to check the acl rpm is instllaed or not?

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    After running Ubuntu some time, you will be asked to download updates for fixing bugs and security updates. All the packages you download replace the previous ones, except for the kernel, also called "linux-image". This is due to the fact that w…
    In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now