Thanks for your help.
It works with 7. Why 6? I learned from man page and the example is for a
file. I think I don't understand this before "but in order to cd into
directories (or access files within them) you need the execute bit
turned on". Because all the files under /test are text files so I
thought I didn't need "x".
Another newbee question:
Is there a way to do recursive ACL like -R option when you do "rm -R
/test"? What's the best way to give everything under /test the same ACL
permission as /test?
Kurt H. Sun, OCP
Focus:HOPE Information Systems
> > Please help with this:
> > How can I allow user accesses directory and files(in the dir) which
> > is neither the owner nor belongs to the group using ACL?
> > Example:
> > directory: 755 root:other /test
> > user: abc
> > group: xyz
> > did this:
> > #setfacl -m user:abc:6,mask:6 test
> Why 6?
> > directory changed to:
> > drwxrw-r-x+ root other /test
> That's right, you've not given them execute access. The permissions
> here are showing the most generous permissions that group or named
> users in the ACL can have.
> > #getfacl test
> > user::rwx
> > user:abc:rw- #effective:rw-
> > group::r-x #effective:r--
> > mask:rw-
> > other:r-x
> > #su - abc
> > $cd /test
> > Permission denied!!!
> > The same setfacl command works for files in the /test(if I leave
> > /test 755)
> > What's differences between file and dir for ACL?
> There's no difference in the ACL, but in order to cd into directories
> (or access files within them) you need the execute bit turned on.
> > Why permission denied? How can do this?
> You need to set the permissions to rwx, not to rw-
> setfacl -m user:abc:7,mask:7 test
> will do it.
> -Peter Tribble
> HGMP Computing Services
Sent via Deja.com http://www.deja.com/
Before you buy.