Results 1 to 5 of 5

Thread: a peculiar situation without an admin user

  1. #1
    Join Date
    Oct 2011
    Location
    india
    Beans
    30
    Distro
    Ubuntu 12.04 Precise Pangolin

    Angry a peculiar situation without an admin user

    I am using ubuntu11.10 64 bit version . while checking the user account i have changed my admin user as an standard user. As aresult there is no more admin user. and here the problem begins . whereever authentication is needed it is asking for admin password . the former admin password is not working , as it has became a standard users password .I am unable to make that account an admin one as this also recquire an admin password. As a result i can not install any app from ubuntu software centre or even can not download security update. what should i do? please suggest me.

  2. #2
    Join Date
    Nov 2009
    Location
    Gainesville, VA
    Beans
    459
    Distro
    Ubuntu Studio 12.04 Precise Pangolin

    Re: a peculiar situation without an admin user

    If it is your machine, you can boot into recovery mode which will give you the ability to reset the user account as the shell you get is a root shell.

  3. #3
    Join Date
    Feb 2008
    Location
    I'm lost ... HELP!
    Beans
    1,014
    Distro
    Xubuntu

    Re: a peculiar situation without an admin user

    Edit /etc/sudoers so you can sudo and gksudo things again.

    Code:
    nano /etc/sudoers
    under the line
    Code:
    root	ALL=(ALL:ALL) ALL
    add this line
    Code:
    your-user-name	ALL=(ALL:ALL) ALL
    With your own username instead of "your-user-name"

    Assuming you do it from the recovery root shell. You can also do it booting from a ubuntu liveCD (or even by sticking your disk in another linux machine), but you'll need to make sure that you edit the right sudoers file then. Probably something like /media/disk/etc/sudoers.

  4. #4
    Join Date
    Oct 2011
    Location
    india
    Beans
    30
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: a peculiar situation without an admin user

    thank you miegiel . i have tried what you have said . when i boot in recovery mode and and typed /etc/sudoers it replies permission denied. have i done the right, or you say to do any thing else? thanks again.

  5. #5
    Join Date
    Apr 2008
    Location
    LOCATION=/dev/random
    Beans
    5,767
    Distro
    Ubuntu Development Release

    Re: a peculiar situation without an admin user

    Quote Originally Posted by miegiel View Post
    Edit /etc/sudoers so you can sudo and gksudo things again.

    Code:
    nano /etc/sudoers
    Don't do this unless you want to risk more breakage. Instead use:
    Code:
    visudo
    visudo is a program that opens the sudoers file with an editor and then checks that the syntax of the file is correct before saving it. If you make a typo in your sudoers file it will be more things to fix. If you're uncomfortable using vi then you can use nano instead by doing:
    Code:
    EDITOR="nano" visudo
    BUT
    There is no need to do any of the above at all. You are going to have to use recovery mode anyway so you may as well just do:
    Code:
    gpasswd -a <user> admin
    Replacing <user> with your username to add yourself back to the Administrators group.
    Cheesemill

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
  •