Open System Services Management and Operations Guide (G06.30+, H06.08+, J06.03+)
Example 22 usermod Command – Change Home Directory for an Existing User
The following usermod command changes the home directory for the sdev user.
usermod –d /home/users/newdev sdev
Example 23 usermod Command – Modify Expiration for a User's Alias
The following usermod command modifies the expiration date to July 31, 2014 for the sdevUK
alias.
usermod –A sdevUK –e 2014–07–31
userdel Command
The userdel command deletes an existing user and optionally removes related files. Additionally,
the userdel command can be used to delete an alias of a user.
Example 24 userdel Command – Delete an Existing User, Home Directory, and Files
The following userdel command deletes the sdev user, its home directory, and all files in its
home directory.
userdel –r sdev
Example 25 userdel Command – Delete an Alias for an Existing User
The following userdel command deletes the sdevUK alias.
userdel –A sdevUK
newusers Command
The newusers command reads a file containing user or alias names, and their attributes, and
uses this information to update or create one or more users or aliases.
Example 26 newusers Command – Create or Update Users in Batch
The following newusers command creates a set of new users that are specified in the /home/
users/admin/UK-users-batch file.
newusers /home/users/admin/UK–users–batch
IMPORTANT: The input file must be protected because it contains unencrypted passwords.
Additionally, you must ensure the passwords adhere to the system's password policy.
Hints and Suggestions
The following subsections provide some suggestions for configuring users at your site:
• “Licensing the OSS Monitor to the Super Group” (page 213)
• “Configuring Expand Users” (page 213)
• “Configuring FTP Users” (page 213)
• “Allowing Anonymous FTP Use” (page 214)
• “Disallowing OSS Use by Specific Users” (page 215)
• “Configuring Special Users” (page 215)
Also refer to “Utility File Security” (page 399).
212 Managing Users and Groups