Debian: Install Sudo

From wiki.jacobjohns.com
Revision as of 02:12, 10 June 2023 by jwiki>jjohns (Created page with "center|frameless # Install sudo #* <code>apt install sudo -y</code> # Edit sudoers via <code>sudo visudo</code> adding the below line to the file. #* <code><username> ALL=(ALL:ALL) ALL</code> # Check the access under the defined <code><username></code>. The file should resemble the below. <code> # # This file MUST be edited with the 'visudo' command as root. # # Please consider adding local content in /etc/sudoers.d/ in...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Error creating thumbnail: File missing
  1. Install sudo
    • apt install sudo -y
  2. Edit sudoers via sudo visudo adding the below line to the file.
    • <username> ALL=(ALL:ALL) ALL
  3. Check the access under the defined <username>. The file should resemble the below.

 #
 # This file MUST be edited with the 'visudo' command as root.
 #
 # Please consider adding local content in /etc/sudoers.d/ instead of
 # directly modifying this file.
 #
 # See the man page for details on how to write a sudoers file.
 #
 Defaults        env_reset
 Defaults        mail_badpass
 Defaults        secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
 
 # Host alias specification
 
 # User alias specification
 
 # Cmnd alias specification
 
 # User privilege specification
 root    ALL=(ALL:ALL) ALL
 <username> ALL=(ALL:ALL) ALL
 
 # Allow members of group sudo to execute any command
 %sudo   ALL=(ALL:ALL) ALL
 
 # See sudoers(5) for more information on "@include" directives:
 
 @includedir /etc/sudoers.d