Results 1 to 2 of 2

Thread: Main user account not in sudoers list Debian 6.0 Squezze

  1. #1
    Join Date
    Sep 2010
    Beans
    29
    Distro
    Ubuntu Development Release

    Main user account not in sudoers list Debian 6.0 Squezze

    When i installed the new version of debian on my laptop to try it out, i noticed that i can't sudo as my main account is not in the sudoers list and i cannot put me in because i'm not sudo.

    Code:
    cesar@debian:~$ groups
    cesar cdrom floppy audio dip video plugdev netdev powerdev scanner bluetooth
    I have to enter as a root account but don't know how, plus i forgot my root password.

    note. i dualboot with ubuntu 10.04 and grub is managed by it.
    This quote is witty and funny

  2. #2
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!

    Re: Main user account not in sudoers list Debian 6.0 Squezze

    You can edit Debian's sudoers file from Ubuntu. Assuming that /dev/sda1 is Debain's root (`/') partition, run:
    Code:
    sudo mkdir /mnt/debian
    sudo mount /dev/sda1 /mnt/debian
    Edit the file:
    Code:
    sudo visudo -f /mnt/debian/etc/sudoers
    append it with:
    Code:
    cesar ALL=(ALL) ALL
    Save the changes, close the file and unmount the partition:
    Code:
    sudo umount /mnt/debian
    sudo rmdir /mnt/debian
    Reboot in Debian and reset the root password:
    Code:
    sudo passwd root

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •