sshd pam_setcred problem

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I am using openSSH on linux.

I have my own script to start the daemon because a bunch of things need to
happen before the daemon is started. The sshd start script is called from my
own shell srcipt.

The daemon process starts correctly.

When I try to connect to the box I get try error message.

ssh mtc@
Connection to closed by remote host.
Connection to closed.

I get these logs in syslog.

Jan  1 00:09:10 10 sshd[798]: Accepted keyboard-interactive/pam for mtc from port 38542 ssh2
Jan  1 00:09:10 10 sshd(pam_unix)[801]: session opened for user mtc by
Jan  1 00:09:10 10 sshd[801]: fatal: PAM: pam_setcred(): Permission denied
Jan  1 00:09:10 10 sshd(pam_unix)[801]: session closed for user mtc

It seems sshd is trying to write user credential but it doesn't have the
permission.  Something interesting.  I get the same error if I try to
connect with the root account.

Any help would be appreciated.


Re: sshd pam_setcred problem

Quoted text here. Click to load it

Which OpenSSH version?  Which Linux distribution and version?  Which
PAM modules do you have in the sshd stack?

Quoted text here. Click to load it

Darren Tucker (dtucker at
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
    Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.

Site Timeline