Created
December 6, 2019 02:04
-
-
Save ezirmusitua/53f0bc58db84c41893ce20d2ac9b422d to your computer and use it in GitHub Desktop.
[User not in sudoers] Fix user not in sudoers issue #linux #shell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# switch to root | |
su root | |
# show access | |
ls -l /etc/sudoers | |
# change access | |
chmod 777 /etc/sudoers | |
vim /etc/sudoers | |
# find root ALL=(ALL) ALL | |
# add user ALL=(ALL) ALL | |
# :wq | |
# recover access | |
chmod 440 /etc/sudoers | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment