Book Image

Troubleshooting CentOS

By : Jonathan Hobson
Book Image

Troubleshooting CentOS

By: Jonathan Hobson

Overview of this book

Table of Contents (17 chapters)
Troubleshooting CentOS
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Users


User management is a fundamental skill associated with the need to manage a server, and in this respect, it will inevitably represent a milestone when troubleshooting any system. So, with this in mind, we will quickly analyze the process of managing users in order to dispel any confusion.

Adding users and forcing a password change

You can add a new user (and create a home folder for them) by using the following command:

# adduser <username>

You can provide the new user with a password like this:

# passwd <username>

Alternatively, if you would like to force a password reset, thereby implying that a user must reset his/her password, then the following command will suffice:

# chage -d 0 <username>

In addition, you can null a password for a specific user by typing:

# usermod -p "" <username>

However, if you would like to grant this new user the ability to use sudo, then type:

# gpasswd -a <username> wheel

Finally, if you would like to know more about a user...