Solaris Remove (deleting) a user account

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, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.

Share this on (or read 0 comments/add one below):