December 2018
Beginner
452 pages
12h 17m
English
The sudo command was originally named for superuser do, which, as the name implies, gives you a chance to perform an action as the root superuser. The sudo command uses the /etc/sudoers file to determine if users are allowed to elevate to superuser permissions. Let's see how it works!
reader@ubuntu:~$ cat /etc/sudoerscat: /etc/sudoers: Permission deniedreader@ubuntu:~$ ls -l /etc/sudoers-r--r----- 1 root root 755 Jan 18 2018 /etc/sudoersreader@ubuntu:~$ sudo cat /etc/sudoers[sudo] password for reader: ## 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 ...