[lug] recovering sudo w/o root
rm at fabula.de
rm at fabula.de
Wed Jan 14 12:13:19 MST 2004
On Wed, Jan 14, 2004 at 11:43:09AM -0700, Michael Belanger wrote:
> Humm.. Use a recovery CD, mount the root partition, edit the file to the
> correct form.
Or: reboot with an init parameter to the lilo prompt:
lilo> linux init=/bin/bash
run visudo again. This will correct all permission problems.
Reboot to normal operation.
This is assuming that you actually _can_ reboot. If your server
is an Inteloid, try Ctr-Alt-Del ....
> Otherwise, no. I don't think you can.
I shure hope there's no way :-/
> Michael Wegener wrote:
> >Hi all,
> >I was in a rush adding a user to the sudoers file and stupidly forgot
> >about using visudo, tried to edit it directly, using "sudo u+w sudoers."
> >Now, every sudo call reports that the mode is wrong and exits. This
> >would be no problem if I had the root password, but the only person I
> >know who *may* have it (long story) is incommunicado. Is there any way
> >out of this, or do I have to hunt this person down? I know how to
> >recover the root password, but this machine is our only webserver right
> >Michael Wegener, /Director of Technology/
> >Knowledge Factor
> >/Information into Advantage/
> >303-748-8313 Mobile
> >mwegener at knowledgefactor.net <mailto:mwegener at knowledgefactor.net>
> >www.knowledgefactor.net <http://www.knowledgefactor.net/>
> >This E-mail message and attachments are for the sole use of the intended
> >recipient(s) and may contain confidential and privileged information.
> >Any unauthorized review, use, disclosure or distribution is prohibited.
> >If you are not the intended recipient, please contact the sender by
> >reply E-mail, and destroy all copies of the original message.
> >Web Page: http://lug.boulder.co.us
> >Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> >Join us on IRC: lug.boulder.co.us port=6667 channel=#colug
> Michael R. Belanger http://www.ambientblue.org
> Freedom through Chaos Yahoo!: darthwonka
> MSN: mrbelanger at hotmail.com
> Jabber: mrb at jabber.ciclops.org
> "We are the music makers,
> And we are the dreamers of dreams.."
> -- Arthur O'Shaughnessy (1844-1881)
> Web Page: http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> Join us on IRC: lug.boulder.co.us port=6667 channel=#colug
More information about the LUG