Results 1 to 6 of 6

Thread: Changed master password, refuses to change back

  1. #1
    Join Date
    Nov 2008
    Location
    Pittsburgh, PA
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Changed master password, refuses to change back

    I have an odd, simple problem. My previous root password was a single character long (I know, I know- dangerous). I changed it through the panel
    user icon last night to something long, and today, trying to change it back refuses anything one-character, or even 4 or 5 character, for that matter.
    Keyring is asking for my old password, but Ubuntu won't let me change back to it.

    Ideally, I wanted to log in under a simple password, and make a different root password, but I don't know if that's possible to do and keep my user name.
    I'm new to password management. Can anything here be done, or anyone have suggestions?

  2. #2
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Changed master password, refuses to change back

    Quote Originally Posted by BastardNamban View Post
    Ideally, I wanted to log in under a simple password, and make a different root password, but I don't know if that's possible to do and keep my user name.
    As root you can set a weak password for your user.

    You can set up a root password and configure sudo to prompt for the target user's password (by default root). Just edit the sudoers file and append the Defaults line with ,targetpw.

    To configure policykit to prompt you for the root password, rename the /etc/polkit-1/localauthority.conf.d/51-ubuntu-admin.conf file to /etc/polkit-1/localauthority.conf.d/49-ubuntu-admin.conf. You may have to repeat this step every time when policykit is upgraded.

    For details, check out:
    community/RootSudo
    community/Sudoers
    and
    http://hal.freedesktop.org/docs/polkit/
    http://hal.freedesktop.org/docs/polk...thority.8.html
    and, of course the man pages:
    Code:
    man sudo 
    man sudoers
    man polkit
    man pklocalauthority
    Last edited by sisco311; August 7th, 2010 at 12:41 AM. Reason: typo

  3. #3
    Join Date
    Nov 2008
    Location
    Pittsburgh, PA
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Changed master password, refuses to change back

    Sisco, thank you. I didn't know you could do that, quite interesting. If you have to rename though, how often is policykit updated? Is that something pretty often, or rare?

    What confuses me more than anything is how I could have the original password as a single character (same password for root as login), but it won't let me change it back to the same thing. Any explanation on how this happened, and allowed the first one in the first place?

  4. #4
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Changed master password, refuses to change back

    Quote Originally Posted by BastardNamban View Post
    Sisco, thank you. I didn't know you could do that, quite interesting. If you have to rename though, how often is policykit updated? Is that something pretty often, or rare?
    Hmmm ,if you create a new file in the /etc/polkit-1/localauthority.conf.d/ directory, i.e. 52-root-pw.conf with the following content:
    Code:
    [Configuration]
    AdminIdentities=unix-user:0
    then you don't have to worry about the upgrades.

    I guess, I should re-read the polkit documentation


    Quote Originally Posted by BastardNamban View Post
    What confuses me more than anything is how I could have the original password as a single character (same password for root as login), but it won't let me change it back to the same thing. Any explanation on how this happened, and allowed the first one in the first place?
    During the installation you are allowed to set up a weak password.

  5. #5
    Join Date
    Nov 2008
    Location
    Pittsburgh, PA
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Changed master password, refuses to change back

    Quote Originally Posted by sisco311 View Post
    During the installation you are allowed to set up a weak password.
    Is there no way to redo that without reinstalling?

    If really not, I'll just make a simple logon, and a complex root password.

  6. #6
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Changed master password, refuses to change back

    Quote Originally Posted by BastardNamban View Post
    Is there no way to redo that without reinstalling?

    If really not, I'll just make a simple logon, and a complex root password.
    Once again, as root you can change your user's password to a weak one... Simply run the passwd username command as root (where username is your login name).

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
  •