Add & Delete Users on CentOS, RHEL & Fedora
You may need to create separate account for every user want to connect this system. For adding new users in system there are two commands available in your system, and . adduser command is the enhanced version of useradd command. adduser command uses useradd command in backend. This tutorial will help you to add and delete user on CentOS, RHEL, Fedora and CoreOS operating systems.
1. Add New User
Following command will create new user named ‘hackthesec’ on your system
# adduser hackthesec
# passwd hackthesec Changing password for user hackthesec. New password: ************** Retype new password: ************** passwd: all authentication tokens updated successfully.
# adduser hackthesec --home=/var/home/hackthesec
# adduser hackthesec --shell=/bin/bash
# adduser hackthesec --no-create-home
2. Delete User from System
# userdel hackthesec
# userdel hackthesec -r www.hackthesec.co.in www.twitter.com/hackthesecurity