April 2018
Intermediate to advanced
248 pages
5h 31m
English
When a command is run with sudo as the prefix, then it'll execute it with superuser privileges. By default, running a command with sudo doesn't need a password, but this can cost dearly if a hacker gets access to Raspberry Pi and takes control of everything. To make sure that a password is required every time a command is run with superuser privileges, edit the 010_pi-nopasswd file under /etc/sudoers.d/ by executing the command shown in Figure 10.8:

This command will open up the file in the nano editor; replace the content with pi ALL=(ALL) PASSWD: ALL, and save it.
Read now
Unlock full access