Post #292,638
9/9/07 10:55:55 PM
|
Resetting ssh password
For some reason, ssh will not allow me to log in on my server box using the username/password combination for the main login on the box.
I can't pinpoint an event that would have caused this to happen, it used to work fine.
So, is there a way to reset the ssh passwords...not critical, as I don't go to the office much...but I do like to have access to the box when I'm away...and right now I don't.
Too much of today's music is fashionable crap dressed as artistry.Adrian Belew
|
Post #292,640
9/10/07 1:22:31 AM
|
look in logs for PAM errors?
Peter [link|http://www.no2id.net/|Don't Let The Terrorists Win] [link|http://www.kuro5hin.org|There is no K5 Cabal] [link|http://guildenstern.dyndns.org|Home] Use P2P for legitimate purposes! [link|http://kevan.org/brain.cgi?pwhysall|A better terminal emulator] [image|http://i66.photobucket.com/albums/h262/pwhysall/Misc/saveus.png|0|Darwinia||]
|
Post #292,657
9/10/07 11:50:09 AM
|
Getting a Parse error it seems
Too much of today's music is fashionable crap dressed as artistry.Adrian Belew
|
Post #292,659
9/10/07 12:09:23 PM
|
What kind of parse errors?
logs entires please... or at least send me an e-mail with it... something.
-- [link|mailto:greg@gregfolkert.net|greg], [link|http://www.iwethey.org/ed_curry|REMEMBER ED CURRY!] @ iwethey PGP key: 1024D/B524687C 2003-08-05 Fingerprint: E1D3 E3D7 5850 957E FED0 2B3A ED66 6971 B524 687C Alternate Fingerprint: 09F9 1102 9D74 E35B D841 56C5 6356 88C0 Alternate Fingerprint: 455F E104 22CA 29C4 933F 9505 2B79 2AB2
|
Post #292,661
9/10/07 12:17:38 PM
|
Re: What kind of parse errors?
Sep 9 23:37:40 localhost PAM-env[13968]: pam_parse: unknown option; read_env=1
However, it doesn't seem to be logging failures...just tried again and no log entries were made.
Going to check the config again.
Too much of today's music is fashionable crap dressed as artistry.Adrian Belew
|
Post #292,665
9/10/07 2:12:17 PM
|
Found something...
[link|http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=396696|Ooops a typo]
Find read_env in /etc/
as root or equivalent:
cd /etc grep -r read_env *
And go through the list.
Fix the pam related one from "read_env" to be "readenv"
-- [link|mailto:greg@gregfolkert.net|greg], [link|http://www.iwethey.org/ed_curry|REMEMBER ED CURRY!] @ iwethey PGP key: 1024D/B524687C 2003-08-05 Fingerprint: E1D3 E3D7 5850 957E FED0 2B3A ED66 6971 B524 687C Alternate Fingerprint: 09F9 1102 9D74 E35B D841 56C5 6356 88C0 Alternate Fingerprint: 455F E104 22CA 29C4 933F 9505 2B79 2AB2
|
Post #292,667
9/10/07 2:17:00 PM
|
Thanks, checking that and reviewing the config...
work is interfering however.
Too much of today's music is fashionable crap dressed as artistry.Adrian Belew
|
Post #292,668
9/10/07 2:41:53 PM
|
here is what I get from my machine:
After doing: grep -r readenv *Remember its probably going to be one of the same lines. But yours will have read_envpam.d/login:# parsing /etc/environment needs "readenv=1"\npam.d/login:session required pam_env.so readenv=1\npam.d/login:session required pam_env.so readenv=1 envfile=/etc/default/locale\npam.d/su:# parsing /etc/environment needs "readenv=1"\npam.d/su:session required pam_env.so readenv=1\npam.d/su:session required pam_env.so readenv=1 envfile=/etc/default/locale\npam.d/gdm:auth required pam_env.so readenv=1\npam.d/gdm:auth required pam_env.so readenv=1 envfile=/etc/default/locale\npam.d/gdm-autologin:auth required pam_env.so readenv=1\npam.d/gdm-autologin:auth required pam_env.so readenv=1 envfile=/etc/default/locale
-- [link|mailto:greg@gregfolkert.net|greg], [link|http://www.iwethey.org/ed_curry|REMEMBER ED CURRY!] @ iwethey PGP key: 1024D/B524687C 2003-08-05 Fingerprint: E1D3 E3D7 5850 957E FED0 2B3A ED66 6971 B524 687C Alternate Fingerprint: 09F9 1102 9D74 E35B D841 56C5 6356 88C0 Alternate Fingerprint: 455F E104 22CA 29C4 933F 9505 2B79 2AB2
|
Post #292,650
9/10/07 10:41:38 AM
|
also check $ssh_path/etc/sshd_config
to see if any access rights have been changed by a recent tweak/upgrade thanx, bill
Quantum materiae materietur marmota monax si marmota monax materiam possit materiari? Any opinions expressed by me are mine alone, posted from my home computer, on my own time as a free american and do not reflect the opinions of any person or company that I have had professional relations with in the past 51 years. meep
reach me at [link|mailto:bill.oxley@cox.net|mailto:bill.oxley@cox.net]
|
Post #292,653
9/10/07 11:29:39 AM
|
Using Debian or Ubuntu on the machine?
Because, recently Debian had a PAM UPGRADE (with extended additional functionality) on testing(Lenny and of course SID before that) that forces any service that uses PAM to completely restart. Nothing works, unless you restart the service(s) affected.
With that said, the Debian upgrade should have notified you that "XXX XXX XXX" services need the restart.
It may not have included your needed service.
A reboot SHOULD definitely take care of this (being the big hammer it is)
Ubuntu also had a recent similar issue, but was more of an ABI bump, that was unavoidable to take care of an local exploit.
-- [link|mailto:greg@gregfolkert.net|greg], [link|http://www.iwethey.org/ed_curry|REMEMBER ED CURRY!] @ iwethey PGP key: 1024D/B524687C 2003-08-05 Fingerprint: E1D3 E3D7 5850 957E FED0 2B3A ED66 6971 B524 687C Alternate Fingerprint: 09F9 1102 9D74 E35B D841 56C5 6356 88C0 Alternate Fingerprint: 455F E104 22CA 29C4 933F 9505 2B79 2AB2
|
Post #292,655
9/10/07 11:40:02 AM
|
Tried the big stick with no joy
Too much of today's music is fashionable crap dressed as artistry.Adrian Belew
|
Post #292,664
9/10/07 2:03:26 PM
|
Please be a bit more forth coming with the "errors"
From the client end and from the server end...
It'd help us out a bit to help you.
-- [link|mailto:greg@gregfolkert.net|greg], [link|http://www.iwethey.org/ed_curry|REMEMBER ED CURRY!] @ iwethey PGP key: 1024D/B524687C 2003-08-05 Fingerprint: E1D3 E3D7 5850 957E FED0 2B3A ED66 6971 B524 687C Alternate Fingerprint: 09F9 1102 9D74 E35B D841 56C5 6356 88C0 Alternate Fingerprint: 455F E104 22CA 29C4 933F 9505 2B79 2AB2
|
Post #292,666
9/10/07 2:13:38 PM
|
See me in my other posts!
[link|/forums/render/content/show?contentid=292665|Post #292665]
-- [link|mailto:greg@gregfolkert.net|greg], [link|http://www.iwethey.org/ed_curry|REMEMBER ED CURRY!] @ iwethey PGP key: 1024D/B524687C 2003-08-05 Fingerprint: E1D3 E3D7 5850 957E FED0 2B3A ED66 6971 B524 687C Alternate Fingerprint: 09F9 1102 9D74 E35B D841 56C5 6356 88C0 Alternate Fingerprint: 455F E104 22CA 29C4 933F 9505 2B79 2AB2
|
Post #292,656
9/10/07 11:40:31 AM
|
Reboot? At least you didn't say reformat and re-install. :)
Alex
Nobody has a more sacred obligation to obey the law than those who make the law. -- Sophocles (496? - 406 BCE)
|