Contained WithinFind More DocumentationFeatured Support Resources | Download this book in PDF (8966 KB)
smattrpop(1M)Name | Synopsis | Description | Options | Operands | Examples | Environment Variables | Exit Status | Files | Attributes | See Also Name
Synopsis
smattrpop [-c ] [-f] [-m] [-p policy] [-r] -s scope -t scope
[-v] database
DescriptionThe smattrpop command updates the auth_attr(4), exec_attr(4), prof_attr(4), and user_attr(4) role-based access control databases in a target NIS, NIS+, LDAP, or local /etc files name service from the corresponding databases in a source name service or files. This command processes the table entries from the source database and merges each source entry field into the same field in the corresponding table entry in the target database. If a source entry does not exist in the target database, the entry is created. If the source entry exists in the target database, the fields are merged or replaced according to the command options. Any errors encountered while updating the target entry are reported to stdout, and the command continues with the next source database entry. Options
The following options are supported: OperandsExamplesExample 1 Populating all tables in the NIS name serviceThe following example merges the values from all four attribute databases in the /etc/security directory of the local system into the corresponding tables in the NIS domain, east.example.com. The command is executed on the master server, hoosier, for the NIS domain and the source files are in the /etc and /etc/security directories on the NIS master server. No cross-table checking is performed. A summary message indicating the number of entries processed and updated for each table is written to stdout.
Example 2 Updating the authorization table in the NIS+ name serviceThis example merges new authorization data from a local system file in the auth_attr text format into the existing auth_attr database in the NIS+ domain, east.example.com. The command is executed on the NIS+ master server, foobar. Values from the source auth_attr file replace the corresponding field values in the NIS+ tables for each entry. A message is written to stdout for each entry processed. Database cross-checking is performed and any check error is written to stdout. A summary message indicating the number of entries processed and updated for the auth_attr database is written to stdout.
Environment VariablesSee environ(5) for a description of the JAVA_HOME environment variable, which affects the execution of the smattrpop command. If this environment variable is not specified, the /usr/java location is used. See smc(1M). Exit Status
Any errors encountered while updating the target entry are reported to stdout. The following exit values are returned: Files
AttributesSee attributes(5) for descriptions of the following attributes:
See Alsosmc(1M), smexec(1M), smprofile(1M), auth_attr(4), exec_attr(4), prof_attr(4), user_attr(4), attributes(5), environ(5) Name | Synopsis | Description | Options | Operands | Examples | Environment Variables | Exit Status | Files | Attributes | See Also |
||||||||