HP-UX Reference (11i v3 07/02) - 1M System Administration Commands N-Z (vol 4)
s
swacl(1M) swacl(1M)
RETURN VALUE
The swacl command returns:
0 The software_selections and/or target_selections were successfully displayed or modified.
1 The display/modify operation failed on all target_selections.
2 The modify/modify operation failed on some target_selections.
DIAGNOSTICS
The
swacl command writes to stdout, stderr, and to the daemon logfile.
Standard Output
The swacl command prints ACL information to stdout when the user requests an ACL listing.
Standard Error
The swacl command writes messages for all WARNING and ERROR conditions to stderr. A report that
the software_selections do not exist is also given if the user has
no access permissions to the object.
Logging
The
swacl command does not log summary events. It logs events about each ACL which is modified to
the swagentd logfile associated with each target_selection.
swagentd Disabled
If the
swagentd daemon has been disabled on the host, it can be enabled by the host’s system administra-
tor by setting the SW_ENABLE_SWAGENTD
entry in /etc/rc.config.d/swconfig to 1
and exe-
cuting
/usr/sbin/swagentd -r
.
EXAMPLES
To list the ACLs for the
C and OPENVIEW products in depot /var/spool/swtest
:
swacl -l product C OPENVIEW @ /var/spool/swtest
The ACL listed to the standard output is similar to this example ACL:
#
# swacl Product Access Control Lists
#
# For depot: newdist:/var/spool/swtest
#
# Date: Wed May 26 11:14:31 2000
#
#
# For product: OPENVIEW,r=3.2
#
#
# Object Ownership: User= robason
# Group= swadm
# Realm= newdist.fc.hp.com
#
# default_realm=newdist.fc.hp.com
object_owner:crwit
group:swadm:crwit
any_other:-r--t
#
# For product: C,r=9.4
#
#
# Object Ownership: User= robason
# Group= swadm
# Realm= newdist.fc.hp.com
#
# default_realm=newdist.fc.hp.com
object_owner:crwit
user:rob@lehi.fc.hp.com:-r--t
user:barb:-r--t
HP-UX 11i Version 3: February 2007 − 8 − Hewlett-Packard Company 423