The way we did this on our system was:

Create a dummy shell that logs the user out. e.g. /bin/nosh
The contents of this file could be simply:
   echo Go away.
   exit

Set the user's shell to this new dummy shell.

Add this dummy shell to /etc/shells so the FTP server will let them FTP
in. This is required for NcFTPd and WU-FTPd, maybe others.

The user can now log in via FTP, but will get a rude message when they try
to log in via SSH or telnet.

--
Gregor Mosheh
[EMAIL PROTECTED]
On-Site Systems Admin, Humboldt Internet
707.825.4638


On Thu, 12 Aug 1999, Allen Harvie wrote:

> 
> 
> Hi all,
> 
> Would like to know how to set up SSH (2.0.8) to prevent selected users from logging 
>in whilst allowing access to ftp .
> 
> FAQ's, web pointers etc please..
> 
> 
> 

Reply via email to