How to I add my username to the sudoers file?
On my ubuntu desktop, the sudoer file has only root.
so basically, I will just need to adduser to sudo file system. And I need to access to single user mode.
I know the easiest way to to just select recovery mode in grub by hold down left Shift when booting. Then Drop to root shell prompt.
But it is ready-only file system. I need to write myself to the file.
I know I have to select remount first, but where is it?
and any other way to add myself to sudo?
mount -o rw,remount /
and be carefull what are you doing because you can screw up your system easily (as root). – NickTux May 16 '13 at 14:38sudo
. If you have accidently deleted yourself from this take a look at my answer to this qusetion How to recover root user – Warren Hill May 16 '13 at 17:07Debian user is not in the sudoers file
– Aug 15 '14 at 02:56