I can login as any user, but not as a root user in centos 7. When I type the command su and enter password ,it gives me login incorrect message.
What could be the issue?
Asked
Active
Viewed 1,751 times
0
1 Answers
0
Use sudo su
It will prompt for password.
And you'll enter root mode after that.
-
1Not
sudo su. It's eithersu -(root password) orsudo -i(user password). – Christopher Sep 15 '17 at 14:08
sudo su -? (orsudo /bin/su -), remember, when using sudo you must use password from non root user. – Archemar Sep 15 '17 at 14:02sudo su. – Thushi Sep 15 '17 at 14:03sudo su, see "http://unix.stackexchange.com/questions/218169/is-there-ever-a-good-reason-to-run-sudo-su" – Kusalananda Sep 15 '17 at 14:33