For some unknown reason, my "user" password appears to have got corrupted. If I enter it in KDM, I get "Login failed". I have tried changing myself to "Password-less login" in the Login Manager, and I have also tried "Automatic login". But without success. The screen goes blank, as if it is going to start KDE, gnome, ETC, and then KDM appears again. There's only me as a user. "Root" is OK. How can I change my password without knowing what it is? I have thought of creating a new user (say, keith2) and then moving all my settings and files to the new user, deleting the original user and then changing "keith2" to "keith". It's long winded, and I am not certain it would work. My user password must be in a file, somewhere. If so, as root, I could probably edit it to what it should be. Any advice will be greatfully received. Many thanks Keith
On Thursday 18 Mar 2004 18:38, Ron van Stokkom wrote:
Op Thursday 18 March 2004 19:30 schreef Keith Powell:
How can I change my password without knowing what it is?
Ron and Kenneth both replied:
Login as root and enter:
passwd username
I don't know what I did wrong, but I had tried that and it asked for my existing password - which, of course, I didn't know! Done it and it now works. Many thanks Keith
On Thursday 18 Mar 2004 18:30 pm, Keith Powell wrote:
For some unknown reason, my "user" password appears to have got corrupted. <SNIP> How can I change my password without knowing what it is?
Log in as root and use yast>security and users>edit user settings to change your user password.
I have thought of creating a new user (say, keith2) and then moving all my settings and files to the new user, deleting the original user and then changing "keith2" to "keith". It's long winded, and I am not certain it would work.
It wouldn't be quite that easy as you have user permissions to consider, and anyway it's not necessary as root can change anyone's password.
My user password must be in a file, somewhere. If so, as root, I could probably edit it to what it should be.
It's only stored in an encrypted file (/etc/shadow) which you shouldn't edit directly. HTH Dylan -- "They that can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety." -Benjamin Franklin
On Thursday 18 Mar 2004 18:42, Dylan wrote:
On Thursday 18 Mar 2004 18:30 pm, Keith Powell wrote:
For some unknown reason, my "user" password appears to have got corrupted.
<SNIP>
How can I change my password without knowing what it is?
Log in as root and use yast>security and users>edit user settings to change your user password.
Thanks, Dylan. For some reason, I remembered that a password was changed in the Control panel. I had forgotten that it was in yast>security>edit user settings. Cheers Keith
On Thu, 2004-03-18 at 13:30, Keith Powell wrote:
For some unknown reason, my "user" password appears to have got corrupted.
If I enter it in KDM, I get "Login failed".
I have tried changing myself to "Password-less login" in the Login Manager, and I have also tried "Automatic login". But without success. The screen goes blank, as if it is going to start KDE, gnome, ETC, and then KDM appears again. There's only me as a user.
"Root" is OK.
How can I change my password without knowing what it is?
su to root and then passwd <username> Then supply the new password. -- Ken Schneider unix user since 1989 linux user since 1994 SuSE user since 1998 (6.2)
participants (4)
-
Dylan
-
Keith Powell
-
Kenneth Schneider
-
Ron van Stokkom