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.
Best Answer
Use
su
:From
man su
:For more information, see
and Wikipedia.