Maintain unique, “global” user
IDs across systems.
You need to ensure that each login name has a unique user-ID number
(uid) across all the systems on which the user logs in; otherwise
one user may be able to read another user’s private files. This
is a serious potential problem whether or not the home directory is
NFS-mounted.
SAM (the menu-driven System Administration Manager) will warn you
if you choose a uid that is not unique on the local system, but this
may not be enough. For example, if user jack has
a uid of 215 and gid (group id) of 20 on his own system, and you set
him up with the same uid and gid on a remote system (for example by cutting and
pasting his /etc/passwd entry from the local to the remote system), and user jill on
the remote system already has uid 215 and gid 20, then jack will be
able to read jill’s private files.
Conversely, suppose you use SAM to make sure that jack has
a unique ID on each system. SAM verifies that uid 215 is unique on jack’s
local system, and that 301 is unique on jill’s
system. Both systems have a directory named /common_stuff NFS-mounted from a file server. When jack logs
in to jill’s system, he may find
he cannot read some of his own files under /common_stuff; he in fact won’t be able to read any files
he has saved on his own system with user-read-write or user-read-only
permissions.
This comes about because HP-UX looks strictly at the uid and gid fields when checking who has permission to do what to
a file; the user name is irrelevant.
Some sites have an automated service that assigns uids that are unique site-wide. If your site offers
such a service, use it; otherwise, you will have to devise your
own method of checking that the uid you assign each new login is unique across all
the systems the user will have access to.