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!
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Okay I'm new at using ubuntu linux and I don't go on my computer much. I have forgotten my password is there anyway to get it back or find out what it is? Any help would be great. Thanks
Boot from any "live CD" Linux. If you have a recent Ubuntu version, you may already have this. Otherwise, there are many options, including Knoppix.
Once you are running, you will need to open a terminal, find the Linux partition (on the hard drive, not the virtual partition created by the live install) which contains the /etc directory, and edit the "passwd" file. Find the line containing your user name, and remove the "x" following the first colon. The modified file will look something like this:
mherring::1001:100::/home/mherring:/bin/sh
Save the file and re-boot, and you will be able to log in with no password.
If you need more details--eg on how to find the right partition--let us know
Ok so I finally found a live cd that works. And I have tried to find the right partition but I can not do it! So if someone could help me kinda step by step it would be freaking awesome. Wow I never thought it would get so manning to do something like this!!! Maybe now I will always remeber my password..lol
I am trying to change or get my password and I type in sudo fdisk -l and it comes up with the list of my partitions. I need to get in to the first one which says /dev/hda1 So I can change my password on it. When I type in that command it says unable to open or access denied.
I have to do it from a live cd. I could not log into my computer because I forgot my password. I have booted from the live cd and everything. So yea....
I typed in what you said it came up with this
ubuntu@ubuntu:~$ sudo makedir
sudo: makedir: command not found
ubuntu@ubuntu:$~ sudo makedir temporary
sudo: makedir: comand not found
ubuntu@ubuntu:$~ sudo mount -t ext3 /dev/hda1 temporary
mount: mount point temporary does not exit
so i have to get onto the linux partition from the live cd and change my password from here. I cannot get it.
Boot from any "live CD" Linux. If you have a recent Ubuntu version, you may already have this. Otherwise, there are many options, including Knoppix.
Once you are running, you will need to open a terminal, find the Linux partition (on the hard drive, not the virtual partition created by the live install) which contains the /etc directory, and edit the "passwd" file. Find the line containing your user name, and remove the "x" following the first colon. The modified file will look something like this:
mherring::1001:100::/home/mherring:/bin/sh
Save the file and re-boot, and you will be able to log in with no password.
If you need more details--eg on how to find the right partition--let us know
Okay so I did that now it didn't work....because I just tried to long in. So maybe I didn't do something right.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.