Locked User [SOLVED]

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

Locked User [SOLVED]

Postby Catnip on Sun May 31, 2009 8:36 am

Good morning :)

I am really sorry and feel a right fool. I put mint on a client's computer and she wont tell me how (I presume she put the wrong password in too many times) , but she has managed to lock her user on Mint.

The error she gets says '' account disabled''

Is there any way i can unlock her user, at distance if possible

If it happens again she can pay for windows -_-
Last edited by Catnip on Mon Jun 01, 2009 2:44 pm, edited 2 times in total.
Catnip
Level 1
Level 1
 
Posts: 2
Joined: Sun May 31, 2009 7:58 am

Linux Mint is funded by ads and donations.
 

Re: Locked User

Postby spet on Sun May 31, 2009 8:42 am

I don't think Mint will lock a user account, so the most probable source of this error is the user not remembering his/hers password. However, seeing whether a account is locked or not user the following:
  • Boot the system from a LiveCD
  • Open a terminal and mount the the root partition (here using /dev/sda1)
    Code: Select all
    sudo mount /dev/sda1 /mnt
  • Change into the system using
    Code: Select all
    sudo chroot /mnt /bin/bash
    Beware: your are now root in the installed system. Usual warnings against rm -rf * and alike apply! :)
  • See the account status
    Code: Select all
    passwd -S username
    In the output you will see the username followd by "P" if the user has a valid password, "NP" if there is no password or "L" if the account is locked. If the account is locked unlock it using
    Code: Select all
    passwd -u username
  • If you want to you can change the user's password with
    Code: Select all
    passwd luser
  • Reboot and enjoy the praise from the user :)
When chroot'ing you might get some complaints about /proc and /sys not being mounted. These are safe to ignore.
spet
Level 1
Level 1
 
Posts: 12
Joined: Sun May 31, 2009 3:42 am
Location: Basement under physics department at Aarhus University, Denmark

Re: Locked User

Postby Catnip on Sun May 31, 2009 10:12 am

Thankyou very much for your quick and thorough reply :)

incredibly useful :)

Thankyou again!
Catnip
Level 1
Level 1
 
Posts: 2
Joined: Sun May 31, 2009 7:58 am

Re: Locked User

Postby spet on Sun May 31, 2009 11:10 am

Glad to help :)

If this solved your problem, please add [SOLVED] to the end of the topic.
spet
Level 1
Level 1
 
Posts: 12
Joined: Sun May 31, 2009 3:42 am
Location: Basement under physics department at Aarhus University, Denmark


Return to Newbie Questions

Who is online

Users browsing this forum: aqmint and 32 guests