[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Fwd: scp, no ssh



No way.
/bin/true will log you out right away,
and therefore you cannot start scp.
I've doublechecked this yesterday, and
even tried to put "exit " into the .bashrc
*This* did work fine, no ssh anymore, but scp
works. But! unforunatelly the user can scp
an new .bashrc or use ssh and rm to remove it.

So I'd say: No way, indeed.

Cheers, Marcel


 On 9 Jan 2002, at 21:19, Tim Quinlan wrote:

> how about setting the user's shell to /bin/true.  this
> allows ftp, but no login shell.  so it may work for scp as
> well.
>
> ----------  Forwarded Message  ----------
> Subject: scp, no ssh
> Date: Wed, 9 Jan 2002 09:49:10 +0100
> From: Robert Janusz <zjjanusz@cyf-kr.edu.pl>
> To: debian-isp@lists.debian.org
>
>
> How to allow, for some users' IPs, only scp and no ssh?
>
>
> --
> To UNSUBSCRIBE, email to debian-isp-request@lists.debi
> an.org
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
>
> -------------------------------------------------------
>
>
> --
> To UNSUBSCRIBE, email to debian-isp-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
>



--
   __
 .´  `.
 : :' !   Enjoy
 `. `´   Debian/GNU Linux
   `-   Now even on the 5 Euro banknote!



Reply to: