Cannot sudo run
Updated 400 Days AgoPublic

Main PageTroubleshootingCannot sudo run command

Add your username to sudoers list


If you get the following error when trying to sudo run a command:

<USERNAME> is not in the sudoers file. This incident will be reported

you need to add your username to sudo group:

Open Terminal app and log into root session with:

su

(type the root password) then run the command:

usermod -a -G sudo username

where username is your login name (username). Log out and then log back in and now you can run commands using sudo.

Last Author
mladen.pejakovic
Subscribers
None
Projects
None