Ubuntu never accept the password

Asked by HARIS MICHAELIDES on 2012-03-10

Hi! I've changed my OS from win7 to ubuntu 11.10 about 10 days ago!

I'm just getting to know the system which is a big change for me!

For example I'm not used to not having the control panel any more!

So! I'm having some problems with simple stuff, like my password is not accepted anywhere!

In permissions for downloads,something called keyring,installing the downloads, finding the" system" to act as administrator ,etc!

I 've tried to change my password through the shift deal in startup, but I'm getting a "password unchanged"!

 instead of going deeper,to unknown territory (APPEND STUFF) I'm asking for HEEELP!!

It's supposed to be easy, but without knowing the engine and with the tools hidden from me, not much can be done!

Thanks in advance! HARIS!

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu shadow Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
2012-03-11
Last query:
2012-03-11
Last reply:
2012-03-10

The OS is called Ubuntu (Pronounced OO-BOOn-TOO). Not Ubundu

The password you need is the one you log in with. When you are prompted for a password use that, if you are using sudo in a terminal you will not get any feedback as you type. Just keep typing.

Thanks for the reply! I have automatic log on anyway but the problem is that my password is not accepted in anything I put it in!
Even if I get my password wrong I can't change it either because my password is needed for administrating, in a "system " place, I can't find anywhere, or when I try to change it in the startup section,where you use the shift trick, I get" password unchanged"! Get my frustration? Please help me!!!

Hold SHIFT at boot and select recovery mode then select root. You can now run:

passwd foo; reboot

(change foo for our username). EG:

passwd andy; reboot

Then you can use your password to authenticate things

As I said twice, I've done action about 10 times already and to satisfy you, done it again now! Still getting "password unchanged"!Any other ideas?

OK! Can anyone tell me at least, where and how I can check my already existing password? The one I put during the installation?

Its hashed so not readable. You can set the password in /etc/passwd

If you edit the file (this is my line for my user):

andy:x:1000:1000:andy,,,:/home/andy:/bin/bash

If you change it to:

andy:Password:1000:1000:andy,,,:/home/andy:/bin/bash

You should be able to log in, you can edit the file in root recovery mode using nano. I suggest you make a backup of the file first using:

cp /etc/passwd /etc/passwd_old

DID I MENTIONED I HAVE UBUNTU 10 DAYS NOW? WHAT ARE YOU TALKING ABOUT MAN? I CAN CHANGE THE PASSWORD IN THE USER ACCOUNTS!I'VE JUST DISCOVERED IT! ALL I NEED NOW(I THINK) IS TO KNOW THE PASSWORD OF INSTALLATION! THE CURRENT ONE! ANY IDEAS ON FINDING IT OUT?

As I said, the password is not readable as it is hashed. It is encrypted so all you will get is some none-sensical gibberish. As I said before...... Try reading a little of what I wrote....

If you boot to root recovery mode and run:

cp /etc/passwd /etc/passwd_old; nano /etc/passwd

You can find your user name and make the change (as I made to my example above). The 'x' on the line means the password is hashed. If you set that to a word (as I did in my above text). You will have a plain text password. You can then press CTRL+X, Press Y then press ENTER and then reboot

Notice how I referenced my previous post quite a lot. If yu try rading and researching a little instead of simply shrugging and saying you are new to the OS won't get you far. If the OS is fresh, you could take theeasy way out and reinstall but do NOT use autologin.

OK! I'll give it another go! I was about to reinstall! So! What you are saying is go to home folder-file system-etc-passwd go to the line where I'll replace the x with Password and then exit,reboot to root and write cp/etc/passwd/etc/passwd_old;nano/etc/passwd press enter, find my user name and make the change as the example with the foo?

its not in the home folder, it's in /etc/passwd passwd is a text file. You will need to find your username in the file and chanmge the x to a plain text password.

Dear Andrew! I took the easy way out and reinstalled! Put log in WITH a password this time, and voila! Problem solved! Downloaded the updates, installed apps,and my password is accepted everywhere in the OS! I would like to thank you for your patience and kindness, and for the time you spend to teach an idiot like me! But it was too much new info which I hope I'll get to know like you in the future! For now it's all chinese to me! Again thanks and hope to speak with you again! Bye for now! HARIS.

Thanks actionparsnip, that solved my question.

As ou use the OS you will learn, just like any OS you have used in the past.

Glad you got the gold :)