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

Re: FTP access without login capabilities?



On Tue, 22 Apr 1997 10:53:16 +1000 "RL Deppeler" (rdepp@cybernex.net.a
u) wrote:

> Does anyone know if it is possible to grant a user ftp access using a
> password/username while not permitting telnet/login access?

Add the user in /etc/passwd with a shell /usr/local/bin/nologin.
Create a shell script /usr/local/bin/nologin like this one:

   #!/bin/sh
   cat <<__EOF__
   No interactive login allowed.
   Only ftp access.
   __EOF__
   sleep 5
   exit 0

Add /usr/local/bin/nologin to /etc/shells.

You're done.

Phil.



--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: