Linux plain user Su root toggle prompt no files or directories
Unable to log on remotely and locally with root
Normal user can log in remotely, but cannot switch root
Workaround:
To restart the server into single-user mode:
Press "E" on the kernel that you want to start on grub (typically one, press E directly)
Go to the next screen, select the second line kernel, continue to press "E"
After entering the text interface, space, enter "single" return
After entering the grub interface, press "B"
That goes into single mode
If the system does not have a normal user, then create a new Useradd AAA, define the password passwd AAA enter the password;
If an ordinary user can use the original to do the next step, AAA refers to the ordinary user
vi/etc/passwd
Aaa:x:0:0:aaa:/home/abc:/bin/bash (the next line corresponds to a colon every other meaning)
User name: Password: User id: Group identification number: Annotative Description: Home directory: Login Shell
Two 0 on behalf of the user is root, belongs to the root group, that is, administrator rights
Then Ctrl+alt+delete re-enable AAA login, problem solved.
This article is from "Yangdong Hao" blog, please make sure to keep this source http://506554897.blog.51cto.com/2823970/1586713
Linux plain user Su root toggle prompt no files or directories