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,692 times
0
-
1have you tried `sudo su -` ? (or `sudo /bin/su -` ), remember, when using sudo you must use password from non root user. – Archemar Sep 15 '17 at 14:02
-
Try using `sudo su`. – Thushi Sep 15 '17 at 14:03
-
2About `sudo 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
-
Thank you.. i did not try "sudo su -" . i will check – Nishmitha Sep 15 '17 at 17:21
1 Answers
0
Use sudo su
It will prompt for password.
And you'll enter root mode after that.
-
1Not `sudo su`. It's either `su -` (root password) or `sudo -i` (user password). – Christopher Sep 15 '17 at 14:08