Home >Operation and Maintenance >CentOS >What should I do if users cannot log in under centos7?

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

王林
王林Original
2020-04-01 10:07:106873browse

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

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!

Statement:
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