Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: Accidentally changed password?

  1. #1
    Join Date
    Jul 2012
    Beans
    6

    Accidentally changed password?

    After attempting to install a program called jmetrik, I seem to have changed my root password. I followed the instructions on the following webpage:

    http://www.itemanalysis.com/linux-installation.php

    the program was not installed properly, and now when I use a sudo command my password does not work. When I enter it I get "Sorry, try again." I also can not update software, I get "username is not in sudoer" or something similar. I am not sure what I did. can anyone help?

  2. #2
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    5,529
    Distro
    Ubuntu

    Re: Accidentally changed password?

    You can try resetting your password
    http://www.psychocats.net/ubuntu/resetpassword

    Although the issue with sudoers seems fishy.
    What groups are you a part of
    simply type "groups" without quotes in the terminal, and the groups you belong to will be listed.
    sudoers are in the sudo group, or admin.
    Watch out for adm group as that one has nothing to do with sudo or root, and is a group used for reading log files.
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

  3. #3
    Join Date
    Jul 2012
    Beans
    6

    Re: Accidentally changed password?

    I am in two groups: one is my username and the other is "jmetrik", the program I tried to install.

  4. #4
    Join Date
    Jul 2012
    Beans
    6

    Re: Accidentally changed password?

    I tried the password reset, but that did not work. When I attempt to update, I get "Your authentication attempt was unsuccessful. Please try again"

  5. #5
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    5,529
    Distro
    Ubuntu

    Re: Accidentally changed password?

    You can try adding your user back into the sudo group.
    Follow the guide of using the recovery modes root shell and try entering
    Code:
    adduser yourusername sudo
    replace yourusername with your username.

    I think your problem stems from the usermod -G command
    from the usermod man page
    -G, --groups GROUP1[,GROUP2,...[,GROUPN]]] A list of supplementary groups which the user is also a member of.
    Each group is separated from the next by a comma, with no
    intervening whitespace. The groups are subject to the same
    restrictions as the group given with the -g option.


    If the user is currently a member of a group which is not listed,
    the user will be removed from the group. This behaviour can be
    changed via the -a option, which appends the user to the current
    supplementary group list.

    Hopefully adding the user back into the sudo group will give you the rights again.
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

  6. #6
    Join Date
    Jul 2012
    Beans
    6

    Re: Accidentally changed password?

    Thanks, but that didn't work either. I have to have root permission to add a user.

  7. #7
    Join Date
    Apr 2008
    Location
    Southern California, USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Accidentally changed password?

    Have you tried using the RecoveryMode, then change your password from there.

  8. #8
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    5,529
    Distro
    Ubuntu

    Re: Accidentally changed password?

    Quote Originally Posted by wmmurrah View Post
    Thanks, but that didn't work either. I have to have root permission to add a user.
    Did you follow my advice of using the recovery modes, and entering the root shell, like when trying to reset the password.

    Follow the reset password guide, and make sure you follow the mount command.
    i think recovery mount as read-only, the guide lists the command needed to mount read/write.
    Last edited by deadflowr; August 1st, 2013 at 01:15 AM.
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

  9. #9
    Join Date
    Apr 2008
    Location
    Southern California, USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Accidentally changed password?

    Quote Originally Posted by deadflowr View Post
    Did you follow my advice of using the recovery modes, and entering the root shell, like when trying to reset the password.

    Follow the reset password guide, and make sure you follow the mount command.
    i think recovery mount as read-only, the guide lists the command needed to mount read/write.
    Yes indeed. I missed your posting on the first read.

  10. #10
    Join Date
    Jul 2012
    Beans
    6

    Re: Accidentally changed password?

    I did try the reset in recover, but that didn't work. I now don't think I changed the password. Could I have changed who the root user is?

Page 1 of 2 12 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
  •