What should I do if users cannot log in under centos7?

王林
Release: 2020-04-01 10:07:10
Original
6658 people have browsed it

What should I do if users cannot log in under centos7?

Problem description:

The environment variables in etc/profile were modified when installing the software, resulting in the inability to log in.

Note: Do not set export PATH in etc/profile, otherwise you will not be able to log in to the system after restarting.

Solution:

In the login interface alt ctrl f2 to enter the command mode, type

/usr/bin/sudo /usr/bin/vi /etc/environment
Copy after login

and move the cursor to export PATH** ( Wrong line) Press d twice in succession to delete the line.

Press :wq to save and exit.

Finally type /sbin/reboot to restart the system.

Recommended related tutorials:centos tutorial

The above is the detailed content of What should I do if users cannot log in under centos7?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!