Skip to content

Instantly share code, notes, and snippets.

@ezirmusitua
Created December 6, 2019 02:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ezirmusitua/53f0bc58db84c41893ce20d2ac9b422d to your computer and use it in GitHub Desktop.
Save ezirmusitua/53f0bc58db84c41893ce20d2ac9b422d to your computer and use it in GitHub Desktop.
[User not in sudoers] Fix user not in sudoers issue #linux #shell
# 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