<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Philip<br>
<br>
I fixed it by entering recovery console and adding myself back to
sudo. I then added a list of groups from an earlier crunchbang
installation.<br>
<br>
What is annoying is that a number of websites do not highlight the
-a option. This is not so bad if you have a distro with a separate
root account you can log in to, but it is a real pain if a root log
in is not enabled.<br>
<br>
Thanks for your help.<br>
<br>
Regards<br>
<br>
Kevin<br>
<br>
On 20/05/13 21:01, Philip Newborough wrote:
<blockquote class=" cite"
id="mid_CAEDCcFknn_6aVfSt7tPAXs_38_u2pZcgdpJOPiVth8J_XfsoiQ_mail_gmail_com"
cite="mid:CAEDCcFknn+6aVfSt7tPAXs=38=u2pZcgdpJOPiVth8J_XfsoiQ@mail.gmail.com"
type="cite">
<pre wrap="">On Mon, May 20, 2013 at 8:35 PM, Kevin Hall <a class="moz-txt-link-rfc2396E" href="mailto:kevin_hall@ntlworld.com"><kevin_hall@ntlworld.com></a> wrote:
</pre>
<blockquote class=" cite" id="Cite_0" type="cite">
<pre wrap="">Hi All
Running crunchbang and tried to add my user to a new group with usermod -G
newgroup.
Apparently, after a lot of searching I should have used usermod -a -G
newgroup.
Now I cannot do anything because I am not in sudo.
How do I get back into sudo
Thank you
Kevin
</pre>
</blockquote>
<pre wrap="">What a pickle. You should be able to gain root access and fix this by:
1. Reboot the machine
2. When grub screen appears, press 'e' to edit the boot cmd
3. Append 'single' to the boot line, possibly after 'quiet'
4. Boot with Ctrl-x or F10.
This should drop you into a root console (no passwd needed) where you
can fix your group memberships. If it helps, your groups should look
something like:
corenominal cdrom floppy sudo audio dip video plugdev fuse scanner
bluetooth netdev cbnetwork
Hope this helps.
Philip
_______________________________________________
Lincoln mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Lincoln@mailman.lug.org.uk">Lincoln@mailman.lug.org.uk</a>
<a class="moz-txt-link-freetext" href="https://mailman.lug.org.uk/mailman/listinfo/lincoln">https://mailman.lug.org.uk/mailman/listinfo/lincoln</a>
</pre>
</blockquote>
<br>
</body>
</html>