Solaris Remove (deleting) a user account

Posted on in Categories News last updated March 16, 2006

The userdel command deletes a user account from the system and makes the appropriate account-related changes to the system file and file system.

Use userdel command to remove user account rockyjr (but not home directory only remove entry from /etc/passwd and /etc/shadow files)

# userdel rockyjr

Pass -r option to userdel command to remove users home directory and login information:

# userdel -r rockyjr

Posted by: Vivek Gite

The author is the creator of nixCraft and a seasoned sysadmin and a trainer for the Linux operating system/Unix shell scripting. He has worked with global clients and in various industries, including IT, education, defense and space research, and the nonprofit sector. Follow him on Twitter, Facebook, Google+.