Re: Disable ssh login + enable scp for specific users.

From: Dominik Schleich (dsc_at_tpso.com)
Date: 01/21/04

  • Next message: Jonathan Crowe: "Re: [Fwd: Re: disconnecting when idle problem]"
    Date: Wed, 21 Jan 2004 12:41:51 +0100
    To: Loris Serena <lserena@paddypower.com>
    
    

    Loris Serena wrote:

    > Hello list,
    >
    > Here is what I need to achieve on a per-user basis:
    >
    > 1. disallow user-xyz to login via ssh to a specific box;
    > 2. let user-xyz be able to scp to said box;
    > 3. let anybody else ssh to said box and then su - user-xyz.
    >
    > Is there any way of doing this?
    >
    > Thanks in advance
    >
    > Loris
    >
    Hi Loris
    principally it should be enough to set the loginshell of user-xyz to an
    invalid path (e.g. /bin/none or so) in your /etc/passwd

    Its not tested, just what i think, but i hope it helps anyway

    Dominik


  • Next message: Jonathan Crowe: "Re: [Fwd: Re: disconnecting when idle problem]"