Koozali.org: home of the SME Server

Can't access console anymore

guestHH

Can't access console anymore
« on: June 26, 2002, 12:02:51 PM »
Hi,

I've got a strange thing goin on here. I can't access the console anymore.
Don't know why but if I try to access as root it simply returns: access denied.

During a reboot a came accross this one:
su: PAM unable to dlopen(/lib/security/pam_xauth.so)
Jun 26 08:25:01 star-support su: PAM [dlerror: /lib/security/pam_xauth.so: cannot open shared object file: Input/output error]
Jun 26 08:25:01 star-support su: PAM adding faulty module: /lib/security/pam_xauth.so


The messages log file tells me (using putty to gain access):

sshd[2257]: PAM unable to dlopen(/lib/security/pam_unix.so)
Jun 26 08:28:08 star-support sshd[2257]: PAM [dlerror: /lib/security/pam_unix.so: cannot open shared object file: Input/output error]
Jun 26 08:28:08 star-support sshd[2257]: PAM adding faulty module: /lib/security/pam_unix.so
Jun 26 08:28:08 star-support sshd[2257]: Failed password for ROOT from 192.168.1.77 port 3119

Anybody any idea?

Regards,
guestHH

Nathan Fowler

Re: Can't access console anymore
« Reply #1 on: June 26, 2002, 06:56:31 PM »
/lib/security/pam_unix.so

Do you have that file?  If so, I wonder if you have a bad sector on the drive that is preventing access to that file...

You may want to fsck.ext2 that disk.

guestHH

Re: Can't access console anymore
« Reply #2 on: June 26, 2002, 09:28:45 PM »
Thanks Nathan.

It is indeed a HD issue. I've run fsck.ext2, even twice to make sure.
But still can't access the console. Same issue.

I thinks I have to copy new pam* files to my server. But how if can not access it...

Is networking active (smb share) in esmith single mode?

Regards,
guestHH

Nathan Fowler

Re: Can't access console anymore
« Reply #3 on: June 26, 2002, 09:31:43 PM »
Run (from a boot disk or something):

fsck.ext2 -p -y -c -f

guestHH

Re: Can't access console anymore
« Reply #4 on: June 27, 2002, 12:27:02 PM »
did that too (didn't know it would take up to a couple of hours ;-)

Same result:
Jun 27 08:48:37 star-support sshd[2274]: PAM unable to dlopen(/lib/security/pam_unix.so)
Jun 27 08:48:37 star-support sshd[2274]: PAM [dlerror: /lib/security/pam_unix.so: cannot open shared object file: No such file or directory]
Jun 27 08:48:37 star-support sshd[2274]: PAM adding faulty module: /lib/security/pam_unix.so
Jun 27 08:48:37 star-support sshd[2274]: Failed password for ROOT from 192.168.1.77 port 3261
Jun 27 08:48:38 star-support sshd[2274]: fatal: Read from socket failed: Connection reset by peer
Jun 27 08:50:00 star-support su: PAM unable to dlopen(/lib/security/pam_xauth.so)
Jun 27 08:50:00 star-support su: PAM [dlerror: /lib/security/pam_xauth.so: cannot open shared object file: No such file or directory]
Jun 27 08:50:00 star-support su: PAM adding faulty module: /lib/security/pam_xauth.so

Bummer. I think the only thing left is to copy new pam_x files to overwrite the existing ones.

Everythng else works fine, just logging in to the console...

Regards,
guestHH

Jason Judge

Re: Can't access console anymore
« Reply #5 on: June 28, 2002, 07:28:42 PM »
Have you tried to access the console via its IP address?

If that works, then add a new network from the console and remove it again. Now does your console access work correctly?

JJ