I'm not in sudoers:
….. is not in the sudoers file. This incident will be reported.
How can I sudo in this terminal window, without switching user?
The well-known command sudo -u administrator -i
also gives the above message.
macossudosudoersterminal
I'm not in sudoers:
….. is not in the sudoers file. This incident will be reported.
How can I sudo in this terminal window, without switching user?
The well-known command sudo -u administrator -i
also gives the above message.
Best Answer
Say your admin account name is admin, then:
Then you are the admin user...
.....
And Gordon Davisson has a good suggestion. When you're a user with admin rights, you can use sudo to get root rights even if there is no root user. And you can use "sudo john" to become user John without knowing his password.