Posts

Showing posts with the label linux login failure

Root Login Not Possible

Few wrong settings that can prevent the 'Root' user to login to the linux box are 1) The Shell Check for the login shell that the system is offering to the 'Root' user. Steps for checking this i) Log in to the system in a single user mode. Help ii) Check for login shell under the /etc/passwd using following # grep root /etc/passwd in the results look for the line starting with 'root' check for the last entry considering ':' as a delimiter. iii) If the entry is '/sbin/nologin' that means the root user is not being provided a shell that enables a user to login to the system and perform tasks.We need to change this shell to /bin/bash so that user is allowed to login. iv) To change this we need to fire a single command. # usermod -s /bin/bash root this command will change the shell for the root user to /bin/bash as desired. v) The new shell can be cross checked by running the command used previously in step ii. # grep root /etc/passwd this time the l...