1832977 Members
2674 Online
110048 Solutions
New Discussion

Re: File permissions

 
SOLVED
Go to solution
Alex Almaraz
Regular Advisor

File permissions

System: B.11.11 U 9000/899

Dear gurus, somebody can give post a quick reference for setting ACL on a files or directory?

Regards
8 REPLIES 8
Patrick Wallek
Honored Contributor

Re: File permissions

How about the man page?

# man setacl
A. Clay Stephenson
Acclaimed Contributor

Re: File permissions

On vxfs filesystems, man setacl. On hfs filesystems man chacl. That should be all the help you need.
If it ain't broke, I can fix that.
Kent Ostby
Honored Contributor

Re: File permissions

Take a look at this discussion:

http://www1.itrc.hp.com/service/cki/search.do?category=c0&&mode=id&searchCrit=allwords&docType=EngineerNotes&searchString=KBRC00014546
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Alex Almaraz
Regular Advisor

Re: File permissions

ok, let me check the man pages, by the way, if you have a quick sample for setting the permissions for a group, I will appreciate it very much,

tks
Ivan Ferreira
Honored Contributor
Solution

Re: File permissions

Remember that ACLs add complexity to the administration. A whell planned directory structure should not require the use of ACLs in most cases.

Here, I am allowing a user fred to write to this file, and barney read and write access:

setacl -m 'user:fred:w,user:barney:rw' /tmp/testfile

getacl /tmp/testfile

Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Ivan Ferreira
Honored Contributor

Re: File permissions

Another aspect of ACLs is their relationship with standard UNIX backup utilities. tar, cpio, and pax do not know what an ACL is and will print out a warning message to the effect that the ACL for the file is not backed up.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Ivan Ferreira
Honored Contributor

Re: File permissions

For a group. Here the group test is given read and execute permission:

setacl -m 'group:test:rx' /tmp/testfile

getacl /tmp/testfile

Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Alex Almaraz
Regular Advisor

Re: File permissions

With the posted information I solved the requiring.

Thanks all for your responses, specially to Ivan.

Regards