Home >Operation and Maintenance >CentOS >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!