Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Hi, my kids have been using my old ubuntu laptop for games, and the "N" key stopped working, God knows why - kids. So when I tried to change the password to something without an "N" the computer got stuck at that screen. And when I tried again to change the password, it wouldn't let me. And so I tried the "new" password and that wouldn't work either. Is there a way I can use the terminal to change the password without knowing the password? Or a way to find out at least what the password is? Now my kids are bummed cause they can't download games. Help?
ok. plugged in usb board, did sudo passwd username (my username), typed new password - just keeps saying "Sorry, try again". tried old, new, no go. What now?
"sudo passwd username" doesn't ask for old password. Only for confirmation (retype new password).
So, either your new password doesn't match following confirmation, or you tried to change password as regular user (most likely).
Could you copy from terminal and paste here what do you exactly typed and command output?
it should be like this:
user@localhost ~ $ sudo passwd user
Retype new password:
passwd: password updated successfully
Yes, if he has no NOPASSWD option in sudoers file sudo will ask for user password. As far as I remember, NOPASSWD should be set there.
However if NOPASSWD is not set, password can't be changed with sudo.
This case it might be changed by root directly.
To get real root priveleges (not via sudo) you have to boot into single mode, remount "/" as read-write (by default it will be mounted as read-only) and run: