• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2530
  • Last Modified:

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.

 
0
psharatkumar
Asked:
psharatkumar
  • 2
1 Solution
 
ai_ja_naiCommented:
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  archive.sh

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

You may find a tutorial for chmod here(http://www.catcode.com/teachmod/)

0
 
Deepak KosarajuCommented:
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

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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now