Sudo Cheat Sheet

From Coolscript
Revision as of 21:28, 19 May 2022 by Admin (talk | contribs) (Created page with "*Edit visudo /etc/sudoers *Ask for root password when exwec '''sudo -i''' Defaults rootpw *Add user to sudo group usermod -aG sudo username *Allow apache to exec somethi...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
  • Edit
visudo /etc/sudoers
  • Ask for root password when exwec sudo -i
Defaults rootpw
  • Add user to sudo group
usermod -aG sudo username
  • Allow apache to exec something
www-data ALL=NOPASSWD: /path/command