Linux plain user Su root toggle prompt no files or directories

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.