You are on page 1of 1

User Administation

”Slackware use shadowprotected passwords by default, and are all located in /etc/shadow.
Only readable for 'root'.”

Add users
The easiest way to add users to the system is to run the /usr/sbin/adduser command as
su/root. You'll be asked a few easy questions and that's it.
# /usr/sbin/adduser

To edit accounts
Change passwords
# /usr/sbin/passwd
Change userinformation
# /usr/sbin/chfn
Change what shell the user will use
# /usr/sbin/chsh

Remove users
There are a few different ways of do this, and the easiest is to run the userdel command,
as su/root.
# userdel -r username
You can also preform following steps to completely remove an useraccount. As root of
course.
1. Remove the line for the specified user in /etc/passwd
# nano /etc/passwd
2. Remove the user from /etc/shadow, basically the same procedure as in [step
1]
#nano /etc/shadow
3. Remove the /home directory for the user, make sure it's the right user!
# rm -rf /home/username
4. Remove the mailfile
# rm /var/spool/mail/username

You might also like