Ubuntu only guest Session login (first-time deep feeling of the power of file permissions)

Source: Internet
Author: User
Tags file permissions

In order to test the Docker Mount permissions, the host's/etc/passwd file mounted to the virtual machine, into the virtual machine to see if I can directly to the host files on the operation, the/etc/passwd deleted the last ten lines ... Results the host on the/etc/passwd also changed, so you sudo function can not be used at all .... , fuck!

Fortunately, in the online search, using the/etc/passwd file system is a backup!!! cp/etc/passwd-/etc/passwd can, sure enough sudo can use.

But the more horrible problem arose, one day I restarted the system, found that the Ubuntu Gnome login interface, can only be logged in the guest session, press the interface after the screen can not see .... Tried a lot of ways are not, Baidu has some way to say is my own account uid, GID replaced by 0 ... Why the use of Baidu ...

Today suddenly an epiphany, is not the/etc/passwd authority problem in trouble!!! See the/etc/passwd of their own machine permissions is 600, but the normal machine, their other physical machine the same Ubuntu version, which unexpectedly is 644 .... , changed the power of my machine to 644, restart the machine, problem solving!

/etc/passwd

Ubuntu only guest Session login (first-time deep feeling of the power of file permissions)

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.