DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Administering user accounts

Deleting a user account

In the Account Manager, select a user name, then select Users -> Delete.

Removing a user account deletes the user's home directory and associated files. A warning message is given, saying that removing the user's home directory will delete all data. It does not remove files owned by the user which may exist elsewhere on the system. See ``Changing ownership of files with an obsolete UID/GID'' for information on deleting or changing ownership of user files.


NOTE: Preserving these files and directories may be a good idea in case any of them are needed by other users.

See also:

Removing selected account information

When you remove a user's login with userdel(1M) (instead of the Account Manager) their identification number (UID) is recorded so the UID will not be reused for a period of time. The number of months the system will wait before reusing a UID can be specified with the -n option of userdel.


NOTE: Although it is possible to delete a user using the userdel command, we recommend the Account Manager for this purpose.

The default value can be changed with the defadm userdel command or with the System Defaults Manager.

  1. Select the appropriate command to remove a user's login entry:

  2. To remove any roles or privileged commands that were assigned to the login, execute:

    adminuser -d login_name

    This prevents possible security breaches. If the account had none, you see this message:

       UX:adminuser: ERROR: Undefined user "login_name"
    

  3. You should also remove the user's file in /usr/spool/cron/crontabs.

Next topic: Reactivating a deactivated user account
Previous topic: useradd(1M) default parameters

© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 22 April 2004