Re: vsftpd with shell set to /bin/false

chris-usenet_at_roaima.co.uk
Date: 11/26/04

  • Next message: Stephan Seitz: "Re: runlevel 2 vs 3 vs 5 deprecated in sarge?"
    Date: Fri, 26 Nov 2004 13:01:07 +0000
    To: debian-user@lists.debian.org
    
    

    Ruben van Engelenburg <NOSPAM@nospam!.nl> wrote:
    > I was installing vsFtpd om my Debian server today and found out that
    > users can't login if their shell is set to /bin/false. [...]
    > Is there a way to change this behaviour [...]

    Add your "shell" to the list in /etc/shells (see "man shells" for some
    details).

    Actually, I prefer to use a trivial /usr/local/sbin/nologin, which writes
    a "Not authorised" type message to stdout and waits for three seconds
    before exiting:

            cat <<! >nologin.c && CFLAGS=-O3 LDFLAGS=-s make nologin
            #include <stdio.h>

            main() {
                puts ("This account is currently not available");
                sleep (3);
                exit (0);
            }
            !

    Chris

    -- 
    To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: Stephan Seitz: "Re: runlevel 2 vs 3 vs 5 deprecated in sarge?"