HP-UX Reference (11i v2 03/08) - 1M System Administration Commands N-Z (vol 4)
n
nisaddcred(1M) nisaddcred(1M)
EXAMPLES
Add a LOCAL entry with a UID
2970 for the NIS+ principal name fredw.some.domain
:
nisaddcred -p 2970 -P fredw.some.domain. local
Note that credentials are always added in the
cred.org_dir table in the domain where nisaddcred
is run, unless domainname is specified as the last parameter on the command line. If credentials are
being added from the domain server for its clients, then domainname should be specified. The caller
should have adequate permissions to create entries in the
cred.org_dir table.
The system administrator can add a DES credential for the same user:
nisaddcred -p unix.2970@some.domain \
-P fredw.some.domain. des
Here, 2970 is the UID assigned to the user,
fredw. some.domain comes from the user’s home
domain, and
fredw comes from the password file. Note that DES credentials can be added only after the
LOCAL credentials have been added.
Note that the secure RPC netname does not end with a dot (‘‘.’’), while the NIS+ principal name (specified
with the
-P option) does. This command should be executed from a machine in the same domain as the
user.
Add a machine’s DES credentials in the same domain:
nisaddcred -p unix.foo@some.domain \
-P foo.some.domain. des
Note that no LOCAL credentials are needed in this case.
Add a LOCAL entry with the UID of the current user and the NIS+ principal name of
tony.some.other.domain
:
nisaddcred -P tony.some.other.domain. local
You can list the cred entries for a particular principal with nismatch(1).
WARNINGS
HP-UX 11i Version 2 is the last HP-UX release on which NIS+ is supported.
LDAP is the recommended replacement for NIS+. HP fully supports the industry standard naming ser-
vices based on LDAP.
AUTHOR
nisaddcred was developed by Sun Microsystems, Inc.
SEE ALSO
chkey(1), keylogin(1), nis+(1), nischmod(1), nischown(1), nismatch(1), nistbladm(1), nisclient(1M),
nispopulate(1M), nis_local_names(3N), rpc_clnt_auth(3N), secure_rpc(3N), nis_objects(3N),
nis_groups(3N).
HP-UX 11i Version 2: August 2003 − 3 − Hewlett-Packard Company Section 1M−−541