Page 3 of 8 FirstFirst 12345 ... LastLast
Results 21 to 30 of 79

Thread: Disabled Administrator account

  1. #21

    Re: Disabled Administrator account

    "whoami" answer:

    root

    "cat /proc/mounts" answer

    rootfs/rootfs rw 0 0

  2. #22
    Join Date
    Jul 2007
    Location
    UK
    Beans
    17,058
    Distro
    Ubuntu Development Release

    Re: Disabled Administrator account

    Quote Originally Posted by jobsaditmate View Post
    "whoami" answer:

    root

    "cat /proc/mounts" answer

    rootfs/rootfs rw 0 0
    Thats good so you need to start again in recovery, make root rw, check that it's rw and then

    adduser username root

  3. #23

    Re: Disabled Administrator account

    had another go after checking root and it seems to be in rw
    adding '[username]' to group 'root'
    adding '[username]' to group 'root'
    gpassword: cannot lock /etc/group;try again later
    adduser: '/usr/bin/gpassword - a [username] root' returned error code 1. Exiting

  4. #24
    Join Date
    Jul 2007
    Location
    UK
    Beans
    17,058
    Distro
    Ubuntu Development Release

    Re: Disabled Administrator account

    Quote Originally Posted by jobsaditmate View Post
    had another go after checking root and it seems to be in rw
    If root really is rw then it sounds like there's a lock file preventing you from adding your user to root.

    I'm not entirely sure which it is. It could be something like /etc/group.lock

    In which case it needs deleting. Wait for someone else to chime in.

  5. #25

    Re: Disabled Administrator account

    the problem started last night when logged in as admin i disabled my own admin account in setting ... user accounts so it is definitely locked - that seems to be the issue.

    I am now downloading the 12.10 version with the idea of running it separately and putting this one on ice for a while until a solution becomes available. Will that work do you think?

  6. #26
    Join Date
    Jul 2007
    Location
    UK
    Beans
    17,058
    Distro
    Ubuntu Development Release

    Re: Disabled Administrator account

    Quote Originally Posted by jobsaditmate View Post
    the problem started last night when logged in as admin i disabled my own admin account in setting ... user accounts so it is definitely locked - that seems to be the issue.

    I am now downloading the 12.10 version with the idea of running it separately and putting this one on ice for a while until a solution becomes available. Will that work do you think?
    Good plan. Idea.

    From the guest user do this and report back,

    Code:
    locate /etc/*.lock

  7. #27

    Re: Disabled Administrator account

    cannot execute the install of new ubuntu. Bang goes that idea then

  8. #28

    Re: Disabled Administrator account

    result from your last:
    guest-im3vZs@stephen-Satellite-C650D:~$ locate /etc/*.lock
    /etc/.pwd.lock
    guest-im3vZs@stephen-Satellite-C650D:~$

  9. #29
    Join Date
    Apr 2012
    Beans
    7,124

    Re: Disabled Administrator account

    Hi can we take a step back here

    How exactly did you "disable" the account? if you did it through the GUI User Accounts -> Password -> Disable then to re-enable from the recovery console the command you would need is

    Code:
    # usermod -U yourusername
    This is different from re-adding your user to the sudo (or admin) group, which I think is what we were all assuming you needed to do. FWIW 'usermod -U' works on the /etc/shadow file - removing the '!' ahead of the encrypted password which is placed there when you mark the account disabled - you can 'cat' your /etc/shadow file to see whether the password has a '!' in front of it

    The /etc/.pwd.lock file *may* prevent you from doing that but let's see...

    [Philinux I don't understand why the OP would want to add the user account to the root group - which in Ubuntu is root's user private group afaik - can you explain the reasoning behind suggesting that?]
    Last edited by steeldriver; November 12th, 2012 at 05:24 PM.

  10. #30
    Join Date
    Jul 2007
    Location
    UK
    Beans
    17,058
    Distro
    Ubuntu Development Release

    Re: Disabled Administrator account

    Steeldriver,

    Thanks for getting back.

    If I made a mistake it's due to reading this.

    https://wiki.ubuntu.com/PrecisePango...Infrastructure

    Maybe I need more coffee.

Page 3 of 8 FirstFirst 12345 ... LastLast

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
  •