sshd pam_setcred problem

From: Eric Caron (ericcaron1_at_yahoo.com)
Date: 05/26/04


Date: Wed, 26 May 2004 16:23:45 -0400

I am using openSSH 3.7 with PAM 0.75 on Linux RedHat 8.0.

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@47.133.24.50
Password:
Connection to 47.133.24.50 closed by remote host.
Connection to 47.133.24.50 closed.

I get these logs in syslog.

Jan 1 00:09:10 10 sshd[798]: Accepted keyboard-interactive/pam for mtc from
47.128.32.124 port 38542 ssh2
Jan 1 00:09:10 10 sshd(pam_unix)[801]: session opened for user mtc by
(uid=0)
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.

Eric



Relevant Pages

  • Re: Confused about init scripts expectations
    ... I am developing a daemon application to handle datalogger ... I have developed the init script that is ... I attempt to start the daemon using the services configuration GUI ... figure is that the EOF signal is not being received by the program. ...
    (Fedora)
  • Debian PHP jabber client deamon
    ... to prevent PHP stopping the script. ... // disconnect from the Jabber server ... Here's the daemon script for running it in Debian. ... # Gracefully exit if the package has been removed. ...
    (comp.lang.php)
  • sshd pam_setcred problem
    ... I have my own script to start the daemon because a bunch of things need to ... When I try to connect to the box I get try error message. ... Connection to 47.133.24.50 closed by remote host. ...
    (comp.security.ssh)
  • Re: Confused about init scripts expectations
    ... I am developing a daemon application to handle datalogger ... I have developed the init script that is ... on the command line to start and stop the daemon process. ... I attempt to start the daemon using the services configuration GUI ...
    (Fedora)
  • Re: rc scripts
    ... startup script so that it parses rc.conf for variables. ... load_rc_config openntpd ... resort to running 'ntpd -gq' at system startup, ... ntpd daemon after the fact. ...
    (freebsd-questions)