Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 4165  / 3 Years ago, wed, october 27, 2021, 9:57:42

I have been using Precise Pangolin and I am into a problem now :( I was trying to add my current user to the group vboxusers.. So I used the command,



sudo usermod -G vboxusers myusername


And it got succeded too. But after adding like that, I am unable to perform any sudo operations. Whenever i use a sudo command I get an error message stating "myusername is not in sudoers file".



I tried enabling root account also. But I couldn't. How to fix this issue?


More From » sudo

 Answers
2

As enzotib comments, a good way is to restart in recovery mode and write



for i in adm cdrom sudo video plugdev lpadmin; do adduser myusername $i; done


Substituting myusername as required. This will add you to all the important groups, including sudo, which gives you access to sudo.


[#36507] Thursday, October 28, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
inciplyies

Total Points: 10
Total Questions: 114
Total Answers: 93

Location: French Polynesia
Member since Sun, Dec 20, 2020
3 Years ago
;