Re: PermitRootLogin without-password and UsePAM yes doesn't work

From: Darren Tucker (dtucker_at_dodgy.net.au)
Date: 11/27/04

  • Next message: Chris Nystrom: "Re: SSH pipe probelm"
    Date: Sat, 27 Nov 2004 03:37:55 +0000 (UTC)
    
    

    In article <1ea95d2e.0411250135.51de0572@posting.google.com>,
    Hans <hans753@hotmail.com> wrote:
    >I'm using openSSH 3.8.p1 on SuSE Linux Enterprise Sever 9 (SLES 9).
    >
    >I've set the following in the sshd_config:
    >PermitRootLogin without-password
    >UsePAM yes
    >
    >=> I shouldn't be able to login as root with a password, but it works:
    >Logfile:
    >Accepted keyboard-interactive/pam for root from ::ffff:xxx.xxx.xxx.xxx
    >port 4108 ssh2

    >From a protocol standpoint, that's not "password" authentication, it's
    keyboard-interactive via PAM. Now it happens that PAM uses a password,
    but sshd has know way of knowing that, it could have been a S/Key, a
    token or something.

    The man page isn't all that clear about that in 3.8x, but it's a little
    clearer in 3.9p1. At some point it would be good to extend
    PermitRootLogin to allow a comma-separated list of auth methods or
    something...

    >If I set 'UsePAM no' everything works as expected.
    >
    >In future I' ve to use PAM to get LDAP authentication => what I' ve to
    >do get it working.

    Upgrade to 3.9p1 and disable ChallengeResponseAuthentication.

    -- 
    Darren Tucker (dtucker at zip.com.au)
    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.
    

  • Next message: Chris Nystrom: "Re: SSH pipe probelm"

    Relevant Pages

    • Re: key based authentication except from certain hosts
      ... updated automatically during an OpenSSH (security) update. ... If you're using PAM, the PAM service name is the basename of the binary, ... after sshd is upgraded). ... Good judgement comes with experience. ...
      (comp.security.ssh)
    • Re: SSH and PAM module
      ... >Do ineed to sompile two versions of sshd with two different PAM sshd ... I have two seperate config fles specify options and ports etc.. ... By default OpenSSH's sshd uses its own program name for the PAM service, ... Good judgement comes with experience. ...
      (comp.unix.admin)
    • Re: Problem with openssh 3.7.1p2
      ... If you're using PAM, then then sshd doesn't check itself, it leaves it to ... On Solaris, PAM only started checking for locked accounts in recent ... Good judgement comes with experience. ...
      (SSH)
    • Re: Difference between "PasswordAuthentication yes" and "AllowedAuthentication passwo
      ... > Thats why I assumed the clear text passwd. ... Debian's sshd is built with PAM, so I suspect what you see as logging ... the version of OpenSSH Debian uses doesn't use PAM ... Good judgement comes with experience. ...
      (comp.security.ssh)
    • Re: Forcing new password at login (w/o requiring an old password) (sudo related)
      ... If you're using PAM then the user will be forced to set a new password ... when the existing one expires regardless of the authentication method. ... the user can sudo w/o additional authentication even ... Good judgement comes with experience. ...
      (comp.security.ssh)