continue yesterday’s story
It is said that a new account linc was created yesterday, and today a very scary message is echoed when executing sudo:
[sudo] password for linc: linc is not in the sudoers file. This matter will be reported.
Where is this going to report? I hate other people’s snitching the most, haha.
To explain this, let’s talk about sudo first.
The sudo command allows you to execute commands as root to complete some tasks that our account cannot complete.
In fact, not all users can execute sudo, because the authorized users are in /etc/sudoers.
We can open /etc/sudoers through an editor, or use the command visudo directly to do this.
After opening sudoers, add your own account and save it as follows.
# User privilege specification root ALL=(ALL:ALL) ALL linc ALL=(ALL:ALL) ALL
The permissions of sudoers are 0440, i.e. only root can read. Forcibly save (wq!) after you use root or sudo.