Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have two accounts on my computer: james and john. james is the only administrative account and a few days ago I set it to expire out of curiosity. Now am stuck. I can not login using james because it has expired, I can not use john for anything because it is not a member of sudoers. I can not login as root probably because root and james shared a password. Kindly help.

share|improve this question

Just turn off the computer , use another live system , e.g liveCD ,

Boot and chroot , change the password and expire time.

share|improve this answer

Boot into single user mode.

easiest way is to add "s" to the end of the kernel line in grub (use e to edit the entry, and b to boot). It'll usually drop you to a root prompt.

sharing a password should not matter by the way, so going to james and doing "su" should work.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.