Please see this


Contents

- INDEX
- Solaris Index
- HP-UX
- Linux Index
- Other Unix types
- General Unix
- Unix Networking
- Unix Scripts
- Unix databases

Associated Information

- none

Useful Links

- Solaris Online Manuals
- Solaris FAQs
- Solaris Mailing List Archive
- Various Solaris Resources
- Solaris Public Domain Software

ACLs

  • setfacl - to add,delete or modify ACL

  • getfacl - display ACL info

Examples

setfacl -s user::rw-,group::r--,other:---,mask:rw-,user:fred:rw- file1

will give the owner rw, group read and others nothing except user fred who also has rw access. No one can exceed rw perms (defined by mask)

getfacl file1 - shows current ACL

setfacl -m user:george:6 file1

will allow user george rw to file1 in addition to current permissions (N.B -s overwrites existing ACL)

setfacl -d user:fred:rw- file1 will remove special permissions for user fred

The ls -l command will display if an ACL is set as the output will appear as follows: -rwxr-----+ 1 root sysadmin datestuff... file1

Note:equivalent commands of HP are chacl and lsacl . However, currently it is not supported with vxfs filesystems


Copyright 2000 Intronet Computers Ltd
Email: Intronet Computers for enquiries