Software Distributor Administrator Guide (September 2010)

To give user mary the permission to install new software into the root object:
swacl -l root -M user:mary:i
To let remote user allen on host swelter fully manage the root file system:
swacl -l root -M user:allen@swelter:a
To let remote user allen at any host having hostname starting with 'sw' fully manage
the root file system:
swacl -l root -M user:allen@sw*:a
(In the above examples, change user to group and use a group name to add group
access to the depot structures.)
NOTE:
Because software installation usually involves modification of system files during
configurations, software install and configure scripts are run as the superuser.
Therefore, granting a user write permission on a root is essentially giving them
superuser access for managing software.
"*" (for zero or more characters) and "?" (for a single character) are the wildcards
allowed in the hostname. A hostname can contain multiple wildcard characters.
For example: sw*.??.hp.com.
9.3.4 Restricting Access to Depots
To restrict read access to a depot you must first remove any_other access from the
depot and from the products contained in the depot and the template controlling the
products in the depot.
You can restrict access to depot alpine on host drgw:
# swacl -l depot -D any_other @ drgw:/alpine
# swacl -l product -D any_other \* @ drgw:/alpine
# swacl -l global_product_template -D any_other \* \
@ drgw:/alpine
You will then need to add specific users (and then hosts) with read access after removing
any_other from the depot security. The following commands add read access for
any user on hostA to the depot, the products contained in the depot, and future
products, respectively.
# swacl -l depot -M other:@hostA:r @ drgw:/alpine
# swacl -l product -M other:@hostA:r \* @ drgw:/alpine
# swacl -l global_product_template -M other:@hostA:r \
@ drgw:/alpine
In the following example, the local superuser disallows all remote users from accessing
/simple_1.depot on swelter, but allow local users to access the depot:
# swacl -l depot -D any_other @ /simple_1.depot
# swacl -l depot -M other:r @ /simple_1.depot
# swacl -l depot @ /simple_1.depot
9.3 Basic Security Tasks 195