≡ Menu

Solaris Remove (deleting) a user account

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

Share this on:

Your support makes a big difference:
I have a small favor to ask. More people are reading the nixCraft. Many of you block advertising which is your right, and advertising revenues are not sufficient to cover my operating costs. So you can see why I need to ask for your help. The nixCraft, takes a lot of my time and hard work to produce. If you use nixCraft, who likes it, helps me with donations:
Become a Supporter →    Make a contribution via Paypal/Bitcoin →   

Don't Miss Any Linux and Unix Tips

Get nixCraft in your inbox. It's free:



{ 0 comments… add one }

Leave a Comment