Ubuntu has modified/etc/environment, causing the problem of logon failure.
Source: Internet
Author: User
In ubuntu, the/etc/environment file is modified to cause the login failure. to solve this problem, set PATH & quot;/usr/local // sbin:/usr/local/bin in the/etc/environment file: /usr/bin:/sbin:/bin:/usr/games & quot; is deleted. Result: you cannot log on to ubuntu. if you modify/etc/environment in ubuntu, the following error occurs: Set PATH = "/usr/local // sbin in the/etc/environment file: /usr/local/bin:/usr/bin:/sbin:/bin:/usr/games "is deleted. Result: I was unable to log on to ubuntu. after entering the login information correctly, the screen was black and I went back to the login box. Cause: When the UBUNTU system is started, run/etc/profile first and search for the required items according to the path in/etc/environment. Therefore, once the path is deleted, then ubuntu cannot find the file and cannot log on normally. Solution: Enter the logon interface: CTRL + ALT + F1 solve the problem by setting temporary variables export PATH = "/usr/local/sbin:/usr/local/bin: /usr/bin:/sbin:/bin:/usr/games "Note that this is critical, in this way, you can use tools such as vi and vi/etc/environment to convert PATH = "/usr/local/sbin:/usr/local/bin:/usr/bin: /sbin:/bin:/usr/games "to add it, restart and OK
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.