How to create multiple users in Linux

Some times there will be a requirement for adding multiple users on servers. Using adduser/useradd command we can not create multiple user accounts in one shot. We can write a shell script to do this. But there is no need to write a script for this. There is an inbuilt Linux command called newusers which(…)

Linux Shadow file explained in detail

surendra:$6$1aEszVo.gsdPEr:15107:22:99999:207:205:105345 : 1                                2                     3        4      5        6     7        8            9 1) User login name: This field gives details for user-login 2) Encrypted password: The password is in encryption form8) No of days from Jan 1, 1970 the account was disabled: and its MD5 encrypted form. This field may contain following things !!(…)

Linux Password file explained in detail

The linux password file location is in /etc. The password file has all the information you need to know about a user such as his username, UID, GID etc. There is one saying… if a beginner in Linux is able to create an entry in passwd file and create a user without using useradd command,(…)

Linux User info gathering commands

MONITORING USERS User-management is always one of the basic tasks for Linux administrators, here we are going to see some basics user related “Monitoring Commands”. 1) “finger” is a command which will give full details about user properties such as name, login, shell what he is using etc. Syntax: #finger username Example: [root@localhost ~]# finger(…)

Login Problems

Login Problems When a user/root try to login to Linux system there are so many problems which will prevent the root/user not to login. Here we will see what are the problems which will prevent user from not to login to system and try to resolve them one by one. We can divide these problems(…)

Lost Root password

Lost the Root password When you lost root password how you can recover and login back in to the system?To login in to system there are so many ways to get root access depending on security level of the system.Method1: When there is no password set to access runlevel 1. Here are the steps to(…)

What is Sudo and how to implement it in Linux?

Sudo (su “do”) the name itself indicates that switching user and to do some command as other user specifically as a root user. The difference between su and sudo is that, su is switch user so that we should know the password of user to whom we are going to switch to get his rights. In most of(…)

Linux user management – 1

User Management Basics-I For a linux admin, knowledge of user management is must. In this we’ll look at simple user management tasks such as creating users I) Creating a user in linux Syntax:     #useradd username Example:         #useradd phani here we created an user called phani. Before executing this command we should know(…)