Re: Disallow users to login via ssh?

From: Jonathan (jonathanNOFISH@sprintmail.com)
Date: 04/23/03

  • Next message: Peter Rehäußer: "Re: Disallow users to login via ssh?"
    From: "Jonathan" <jonathanNOFISH@sprintmail.com>
    Date: Wed, 23 Apr 2003 16:20:07 -0400
    
    

    This could be done really easily with PAM. Linux has a PAM module just for
    this kind of thing; go to:
    http://www.kernel.org/pub/linux/libs/pam
    (although it seems to be down at this moment??)

    Look at the PAM module named pam_listfile. This does exactly what you want.
    It's made for Linux but does compile in Solaris (and probably elsewhere).

    good luck,
    Jonathan

    "Sebastian Schack" <sschack@ki.tng.de> wrote in message
    news:b86qpc$9qt$1@ulric.tng.de...
    > Hi again.
    >
    > After not being able to manage to chroot specific users into their home
    > dirs I decided to want to not let specific users connect to my computer
    > via ssh.
    >
    > I had a look at /etc/ssh/sshd.conf but didn't find anything where I
    > could add UIDs or Usernames that should not be able to login via SSH.
    >
    > Can this be done? If 'yes': how? :)
    >
    > Thanks in advance,
    >
    > Sebastian
    >
    > --
    > "I'm starting with the man in the mirror, I'm asking him to change his
    > ways, And no message could have been any clearer, If you wanna make the
    > world a better place, Take a look at yourself, and then make a change!"
    > - Michael Jackson
    >


  • Next message: Peter Rehäußer: "Re: Disallow users to login via ssh?"

    Relevant Pages

    • SU and Login source code for FC2
      ... I am developing a new PAM module in order to include physical ... This way I really need Login and SU pam aware source codes to recompile ... healthy authentication system. ... Since I am new to Linux I don't know how to get these source ...
      (comp.os.linux.misc)
    • Fedora (or RH) Login and SU source FC2
      ... I am developing a new PAM module in order to include physical ... This way I really need Login and SU pam aware source codes to recompile ... healthy authentication system. ... Since I am new to Linux I don't know how to get these source ...
      (comp.os.linux.development.system)
    • Login and SU sourcecode on FC2
      ... I am developing a new PAM module in order to include physical ... This way I really need Login and SU pam aware source codes to recompile ... healthy authentication system. ... Since I am new to Linux I don't know how to get these source ...
      (comp.os.linux.development.system)
    • General Admin Question
      ... Can you have spaces in group names in Red Hat / Linux? ... I have been trying to integrate a Pam module that auths group names ... I tried to use 'groupadd group\ name' and groupadd "group name" ...
      (comp.os.linux)
    • Re: Will SSH ever support password aging?
      ... >>cannot use password aging because the user is never prompted to change ... >>Are there any known work arounds for this? ... "There is an ssh pam module. ...
      (comp.security.ssh)