usergroupname.5 (2010 09)

u
usergroupname(5) usergroupname(5)
NAME
usergroupname - user name and group name
DESCRIPTION
The HP-UX operating system default configuration allows the user names and group names that begin
with an alpha character.
User names and group names can begin with a numeric character, by installing the optional Numeric
User Group Name feature.
The Numeric User Group Name feature provides the facility to create users and groups which begin with
a numeric character. It is also possible to create users or groups that are completely numeric.
With this feature, user or group names can be completely numeric. Therefore, completely numeric input
can not be assumed to be user or group id. When a completely numeric input is encountered, it can either
mean "user/group name" or "user/group id".
The database search order is given as follows:
1. The user or group name database is first searched to find if it is a valid user or group name.
2. If not, the user or group id database is searched.
Whenever completely numeric users are created with this feature, HP recommends having the same user
id. For example, if the user created is
1234, then assign the user id of
1234 for this user.
EXAMPLES
Here are a few examples of commands affected by the Numeric User Group Name feature.
The examples have the following user names in the system:
user1 (with user id 1234) and
1234 (with user id 4567).
ps Command Example
user1 has the following processes running:
sh (Process Id 14703)
HelloWorld (Process Id 12244)
1234 has the following process running:
ksh (Process Id 16703)
$ ps -u 1234
PID TTY TIME COMMAND
16703 pts/tl 0:00 ksh
The preceding command lists the processes being executed by the user name 1234.
Suppose there is no user with the name
1234, then 1234 is treated as a user id. The ouput of the com-
mand would then be as follows:
$ ps -u 1234
PID TTY TIME COMMAND
14703 pts/tl 0:00 sh
12244 pts/tl 0:00 HelloWorld
This behavior applies to other options of the ps command like -U and -G.
chown Command Example
$ chown 1234 file1
$ ll file1
-rw-rw-rw- 1 1234 sys 0 Apr 15 15:02 file1
The preceding command changes the ownership of file1 to the user named 1234.
Suppose there is no user with the name
1234, then 1234 is treated as a user id. The ouput of the com-
mand would then be as follows:
HP-UX 11i Version 3: September 2010 1 Hewlett-Packard Company 1

Summary of content (2 pages)