ACL in RedHat Linux

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.

Who is Participating?
Deepak KosarajuConnect With a Mentor DevOps EngineerCommented:
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

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(

Deepak KosarajuDevOps EngineerCommented:
psharatkumarAuthor Commented:
Is it require any rpm package for acl's
How to check the acl rpm is instllaed or not?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.