Sample ACLs for Editing |
 |
Here are some examples based on the following ACL that is
protecting a product (FORTRAN) created by user rob whose local host
is lehi.fc.hp.com:
# swacl Product Access Control Lists # # For host: lehi:/ # # Date: Wed May 19 16:39:58 1993 # # For product: FORTRAN,r=9.0,v=HP # Object Ownership: User=root Group=sys Realm=lehi.fc.hp.com # default_realm=lehi.fc.hp.com object_owner:crwit user:barb:-rt user:ramon:-rt group:swadm:crwit host:alma.fc.hp.com:-rt any_other:-rt |
To list the ACL for the product FORTRAN in depot /var/spool/sw
(the default depot) and prepare it for editing, type:
swacl -l product FORTRAN &>acl_tmp |
which will bring the above ACL into the file acl_tmp, ready
for editing. Edit the acl_tmp file with any suitable text editor.
To replace the modified ACL, type:
swacl -l product -F acl_tmp FORTRAN |
To edit the default product template on a depot /var/spool/sw_dev,
use:
swacl -l product_template @ /var/spool/sw_dev $>tmp_file |
then edit the tmp_file and replace the ACL:
swacl -l product_template -F tmp_file @ /var/spool/sw_dev |
To delete user barb's and group swadm's entries:
swacl -D user:barb -D group:swadm -l product FORTRAN |
To give user ramon permission to change the product FORTRAN:
swacl -M user:ramon:trw -l product FORTRAN |
To add an entry for user pam with complete management permission:
swacl -M user:pam:a ["a" is shorthand for "crwit"] |
To add an entry to grant every user in group swadm at remote
hosts dewd and stewd full management control of the product FORTRAN
on the default local depot:
swacl -M group:swadm@dewd:a -M group:swadm@stewd:a -l product FORTRAN |
To list the ACL protecting the default depot at host dewd: