If you are unable to run sudo command,
check the /var/log/secure log
If you are seeing this message:
"sorry, you must have a tty to run sudo"
Then you should edit /etc/sudoers file and comment out this line:
Defaults requiretty
(just add the # in front of this line and save the file)
This this will fix your sudo error.
No comments:
Post a Comment