Posts

Showing posts from February, 2018

User, UserID, UserGroup creation on Linux

1. How to Add a New User in Linux To add/create a new user, all you’ve to follow the command ‘ useradd ‘ or ‘ adduser ‘ with ‘username’. The ‘username’ is a user login name, that is used by user to login into the system. Only one user can be added and that username must be unique (different from other username already exists on the system). For example, to add a new user called ‘ tecmint ‘, use the following command. [root@tecmint ~]# useradd tecmint When we add a new user in Linux with ‘ useradd ‘ command it gets created in locked state and to unlock that user account, we need to set a password for that account with ‘ passwd ‘ command. [root@tecmint ~]# passwd tecmint Changing password for user tecmint. New UNIX password: Retype new UNIX password: passwd: all authentication tokens updated successfully. Once a new user created, it’s entry automatically added to the ‘ /etc/passwd ‘ file. The file is used to store users information and the entry should be. tecmint:x:504:50...