2

Whenever I try to run a command from the termainal as sudo, I am now getting the error:

Sorry, user {user} is not allowed to execute {command} as root on lt.

lt is the name of my computer.

The only thing I have done recently is add myself to a user group, which I have undone, but the error persists.

Any suggestions on how to fix this?

Kohjah Breese
  • 2,701
  • 10
  • 24
  • 32
  • 1
    *How* did you add + remove yourself from the user group? What is the output of the `id` command for your user? – steeldriver Jul 02 '15 at 01:11
  • The id command gives: uid=1000(d) gid=1000(d) groups=1000(d),33(www-data) – Kohjah Breese Jul 02 '15 at 02:34
  • 3
    You need to add your user back to the sudo group - see [How do I add myself back as a sudo user?](http://askubuntu.com/questions/70442/how-do-i-add-myself-back-as-a-sudo-user) – steeldriver Jul 02 '15 at 02:43
  • Thanks, that op's post contains a command like the one I entered. If you post in the answer I'll accept it. – Kohjah Breese Jul 02 '15 at 02:45

0 Answers0