userdel -- delete a user's login from the system
Synopsis
userdel [-r] [-n months] login
Description
The userdel command deletes a user's login definition from the system. It removes the definition of the specified login and makes the appropriate login-related system file and filesystem changes. The command also stores the user identification number (UID) being deleted in the /etc/security/ia/ageduid file, so the UID will not be reused until a period of time has passed. This practice of keeping a UID out of use is called UID aging.
If the given login is mapped to a NetWare Directory Services (NDS) user context in the /etc/netware/nwusers file, userdel removes the mapping from the file.
The following options are available:
If login is being administered by the Network Information Service (NIS), login will only be removed from the local system, not the NIS database.
Warnings
Whenever you use the userdel command to delete a user's login, you should execute adminuser -d login_name to avoid creating any security holes; otherwise security breaches will be introduced when you remove logins for users who have been added to the TFM database. Use the desktop metaphor to remove users who have been added through the metaphor.
Not all users have privileges but desktop users usually do. If a user whose login is being removed has no privileges and you execute adminuser -d, you'll simply get an error message:
UX:adminuser:ERROR:Undefined user login_name
Files
The file /etc/security/ia/audit is not available if the Auditing Utilities are not installed.