Re: Disable ssh login + enable scp for specific users.
From: Dominik Schleich (dsc_at_tpso.com)
Date: 01/21/04
- Previous message: Martin Sarsale: "Re: Disable ssh login + enable scp for specific users."
- In reply to: Loris Serena: "Disable ssh login + enable scp for specific users."
- Next in thread: Martin Sarsale: "Re: Disable ssh login + enable scp for specific users."
- Reply: Martin Sarsale: "Re: Disable ssh login + enable scp for specific users."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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
- Previous message: Martin Sarsale: "Re: Disable ssh login + enable scp for specific users."
- In reply to: Loris Serena: "Disable ssh login + enable scp for specific users."
- Next in thread: Martin Sarsale: "Re: Disable ssh login + enable scp for specific users."
- Reply: Martin Sarsale: "Re: Disable ssh login + enable scp for specific users."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]