Results 1 to 8 of 8

Thread: I made a noob mistake- how can I get my Admin rights back?

  1. #1
    Join Date
    Jun 2013
    Beans
    3

    I made a noob mistake- how can I get my Admin rights back?

    Any help is very much appreciated. I thought I needed to change my Admin account to a regular account because I thought the Admin account was the same as the root account. I learned differently but had already changed my Admin account to regular. Ubuntu 12.4 states that I must have the root password to make the change back but I don't know my root password. It is not the same as my Admin account password and I have tried very password I can think of to no avail. Is there any way I can get my Admin privileges back without an unistall & reinstall of Ubuntu? Or will it really matter if I can still sudo commands when I need to install packages, etc? Thanks any help. I really want to avoid an uninstall & rreinstall if possible.

    Knucklehard10652
    An Ubuntu noobie

  2. #2
    Join Date
    Feb 2006
    Beans
    7

    Re: I made a noob mistake- how can I get my Admin rights back?

    Try single user mode. Here's a step by step guide: Grub Single Usermode.
    Once you're in, just set a new password with the passwd command.

  3. #3
    Join Date
    May 2009
    Location
    Courtenay, BC, Canada
    Beans
    1,583

    Re: I made a noob mistake- how can I get my Admin rights back?

    log into recovery mode by restarting and choosing it at the menu before Ubuntu loads, then add your user to the groups adm and sudo
    Code:
    usermod -a -G adm,sudo <user>
    you may need to remount your drive writable by finding it with
    Code:
    df -h
    it will be mounted at / such as mine
    Code:
    [ tye@T: ~ ]$ df -h
    Filesystem      Size  Used Avail Use% Mounted on
    /dev/sda4        99G   14G   80G  15% /
    udev            1.6G  4.0K  1.6G   1% /dev
    tmpfs           628M  1.7M  626M   1% /run
    none            5.0M     0  5.0M   0% /run/lock
    none            1.6G  4.0K  1.6G   1% /run/shm
    none            100M  8.0K  100M   1% /run/user
    cgroup          1.6G     0  1.6G   0% /sys/fs/cgroup
    /dev/sda3       1.7T  1.1T  574G  66% /storage
    mine is this one
    Code:
    /dev/sda4        99G   14G   80G  15% /
    so I would remount it rw
    Code:
    mount -o rw,remount /dev/sda4

  4. #4
    Join Date
    Jun 2013
    Beans
    3

    Re: I made a noob mistake- how can I get my Admin rights back?

    I will try this. Thank you very TylerD much for your help.
    Last edited by Knucklehead401; June 27th, 2013 at 10:13 PM.

  5. #5
    Join Date
    Jun 2013
    Beans
    3

    Re: I made a noob mistake- how can I get my Admin rights back?

    Thank you HiImTye. Very nice step-by-step is what this noob needs.

  6. #6
    Join Date
    May 2009
    Location
    Courtenay, BC, Canada
    Beans
    1,583

    Re: I made a noob mistake- how can I get my Admin rights back?

    you're welcome
    let me know if you have any problems, and if not, mark it solved so someone else can benefit by: editing the first post, choosing 'go advanced,' then changing 'prefix' from [Ubuntu] to [SOLVED]

  7. #7
    Join Date
    Apr 2012
    Beans
    4,620

    Re: I made a noob mistake- how can I get my Admin rights back?

    just an fyi, there's no need to manually look up the block device (e.g. /dev/sda4) - you can just tell remount via the current mount point (i.e. /)

    Code:
    mount -o rw,remount /

  8. #8
    Join Date
    Nov 2009
    Beans
    Hidden!
    Distro
    Kubuntu 12.04 Precise Pangolin

    Re: I made a noob mistake- how can I get my Admin rights back?

    and another fyi: sudo comes from "super user do" and then you continue with whatever the super user wants to do. so it's not root account and not admin account but a super user account.
    Unlike the su command, users typically supply their own password to sudo. After authentication, and if the configuration file permits the user access, then the system will invoke the requested command. By default the user's password can be retained through a grace period (15 minutes per pseudo terminal), allowing the user to execute several successive commands as the requested user without having to provide a password again.
    more here https://en.wikipedia.org/wiki/Sudo
    Easy to understand Ubuntu manual with lots of pics: http://ubuntu-manual.org/
    Do i need antivirus/firewall in linux?
    User friendly disk backup: Redobackup

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
  •