Re: I messed up some config files, now all my users have lost sudo priv :(



Cedric wrote:


The first thing you have to do is to become root. This can be done by booting
from a linux CD (knoppix for instance) or you can append init=/bin/sh to the
line used to start the kernel. This bypasses init, and gives you a root
login. (I'm tired, and typing from memory. If there's an error in my
statement, please correct me.)


Yes, that will work, but then you would have to remount the filesystem
read-write as well (if you bypass init, the kernel leaves the filesystem
in the boot-up default read-only mode.

I think all considered, bringing a Knoppix boot CD is really the best
way to proceed.

--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • Re: fstab problems
    ... I tried sudo first then swithed to root on Knoppix. ... Knoppix mounts file systems read only for your protection. ... desktop icon to bring up a nice menu with a "Change read/write mode" ... This mounts the filesystem on the partition as read/write. ...
    (Fedora)
  • Re: Kernel panic: VFS: Unable to mount root fs on 03:03
    ... When I boot back to Knoppix again, and mount /dev/hda3 to /tmp, I can't see ... > VFS: Mounted root (ext2 filesystem). ...
    (linux.redhat)
  • Re: Kernel panic: VFS: Unable to mount root fs on 03:03
    ... When I boot back to Knoppix again, and mount /dev/hda3 to /tmp, I can't see ... > VFS: Mounted root (ext2 filesystem). ...
    (comp.os.linux)
  • Re: Read-only root (/) except /et
    ... in other words, again root is compromised. ... That means that in a standard config the root filesystem cannot be made ... backup, and fewer writes means less likelihood of corruption eg if power ... Note that all my live partitions are rsync'd with identical ...
    (Debian-User)
  • Re: Read-only root (/) except /et
    ... in other words, again root is compromised. ... That means that in a standard config the root filesystem cannot be made ... backup, and fewer writes means less likelihood of corruption eg if power ... Note that all my live partitions are rsync'd with identical ...
    (Debian-User)