when I trying a text in terminal is"$ sudo gedit /boot/grub/menu.lst or $ gksudo gedit /boot/grub/menu.lst " then met a error "user is not in the sudoers file. This incident will be reported

Asked by mita

when I trying a text in terminal is"$ sudo gedit /boot/grub/menu.lst or $ gksudo gedit /boot/grub/menu.lst " then met a error "user is not in the sudoers file. This incident will be reported"

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gnome-terminal Edit question
Assignee:
No assignee Edit question
Solved by:
mita
Solved:
Last query:
Last reply:
Revision history for this message
collinp (collinp) said :
#1

Are you logged in under another account besides the one created at install time? If so, that would create this error.

Revision history for this message
Ian Ace (iaculallad) said :
#2

You could try to login using the recovery mode and try the command below. This will add your username to the admin group.

adduser mita admin

Once finished, reboot and login normally using your username then retry the command you stated above.

shutdown -r now

*Change mita to your configured username*

HTH.

Regards,

Ian

Revision history for this message
mita (mitavinhuni) said :
#3

help me, when I do"mita@mita-desktop:~$ sudo gedit /boot/grub/menu.lst
[sudo] password for mita: " in terminal then mita is not in the sudoers file. This incident will be reported.
mita@mita-desktop:~$