| United States-English |
|
|
|
![]() |
Managing HP-UX Software With SD-UX: HP 9000 Computers > Chapter 9 Controlling Access to Software ObjectsUsing Access Control Lists (swacl) |
|
An ACL allows you to specify different access rights to many individuals and groups instead of just one of each.
An ACL is a set of entries that are attached to a software object when it is created. ACL entries define which users, groups and/or hosts have permission to access the objects. They consist of three fields (entry_type, key and permissions) separated by colons: entry_type[:key]:permissions For example, an ACL entry for an object might be: user:fred:r-ctw which means that a user named fred can read, control, test, and write the object, but the dash signifies that he cannot insert or create new objects. Permissions (c r w i t) are explained later in this chapter. The order in which the permissions are specified is not critical. The ACL entry_type must be one of these values: Table 9-1 ACL Entry Types
The user and group of the object's owner are determined and automatically recorded at the time the object is created, based on the identity of the person who creates it. This information is recorded as user, group and realm. An object_owner or object_group entry type in an ACL causes the ACL Manager to look up the owner and group information on the object and, if a match to the requester is found, grant permissions as specified. There may be many user, group, and host type entries per ACL, while there may be only one of each of the object_owner, object_group and any_other types. There may be at most one "local" (that is, no key) other entry and an unlimited number of "remote" (that is, keyed) other entries. The second part of the ACL entry is the key. The table below lists the possible key values for specific entry types. Table 9-2 ACL Entry Key Values
When listing the ACL, the host is printed in its Internet address form (for example, 15.12.89.10) if the local system cannot resolve the address from its host lookup mechanism (DNS, NIS, or /etc/hosts). Six different permissions are grantable by the ACL: Permission Meaning In the ACL entry, these permissions are abbreviated c, r, w, i, t and a. The meaning of permissions is different for different types of objects and the permissions do not have to appear in any specific order. Roots do not provide product level protection, so all permissions on products installed on roots are controlled by the ACL protecting the root itself. Product level protection is provided on depots in this way: the depot's ACL protects the depot itself while product ACLs protect the products within the depot. The table below summarizes object permissions and ACLs to which they may be applied. Table 9-3 ACL Permission Definitions
You can view or change ACL entries and permissions by using the swacl command, an SD-UX tool that allows you to list and change ACLs. The syntax for swacl is: swacl -l level
To list the ACLs for the COBOL and FORTRAN products in depot /var/spool/swtest: swacl -l product COBOL FORTRAN @ /var/spool/swtest To list the product template ACL on host newdist: swacl -l host To read, edit, then replace the ACL protecting the default depot /var/spool/sw: swacl -l depot > new_acl_file vi new_acl_file swacl -l depot -M user:steve:- -M user:george:- \ To delete entries for local user rick from all products in the default local depot: swacl -l product -D user:rick \* The swacl command supports these options: Option Action
The swacl command supports the standard software selection syntax. For more details on software selection syntax and an example of a software selection file, see “Command Operands ”. In addition to the command-line option listed above, several swacl behaviors and policy options can also be changed by editing extended option and default values found in the system-wide defaults file: /var/adm/sw/defaults or in the user-specific defaults file: $HOME/.swdefaults Values in these files are specified using the command.option=value syntax. For example: swacl.agent_auto_exit=true Table 9-4 ACL Default Options
See Appendix A “Default Options and Keywords ” for a complete listing and description of default options. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||