Suppose that the machine has two users:
- Alice (admin)
- Bob (standard user)
While Bob is logged in, how can Alice modify a root file (Bob does not have this permission even with sudo
)?
Alice tried:
$ sudo vim /etc/hosts
[sudo] password for Bob:
Bob is not in the sudoers file. This incident will be reported.
/etc/sudoers
file. It just means that the administrator (Alice) does not trust Bob for administrative privileges.