Friday 15 September 2017

How to Delete a User in Oracle Solaris SPARC

Assume the root role.
$ su -
Password:
#

Note -  This method works whether root is a user account or a role.

Archive the user's home directory.

Delete the user.

# userdel -r username

The –r option removes the account from the system.

Because user home directories are now ZFS datasets, the preferred method for removing a local home directory for a deleted user is to specify the –r option with the userdel command.

If the user's home directory is on a remote server, manually delete it.
# userdel username

For a full list of command options, see the userdel (1M) man page.

Next Steps

Additional cleanup might be required if the user that you deleted had administrative responsibilities, for example creating cron jobs, or if the user had additional accounts in non-global zones.

No comments:

Post a Comment