Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 May 1999 07:11:48 -0400
From:      "Alok K. Dhir" <adhir@forumone.com>
To:        "dissonant" <disowned@flitr.nu>, <freebsd-questions@FreeBSD.ORG>
Subject:   RE: ftp-only script?
Message-ID:  <000b01be97b1$3c327d60$5438b5d8@net>
In-Reply-To: <Pine.BSF.4.05.9905051414100.13161-100000@flitr.nu>

next in thread | previous in thread | raw e-mail | index | archive | help
Just change those users' shell to '/dev/null' and add it to the
'/etc/shells' file.  Or, if you want to be friendlier, make a shell script
that echos 'sorry, only ftp on this account' or some such and save it as
'/etc/ftponly'.  Then set that as the shell and add it to '/etc/shells'.

(ftp will not allow a login to an account with a shell that is not listed in
/etc/shells).

Al

> -----Original Message-----
> From: owner-freebsd-questions@FreeBSD.ORG
> [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of dissonant
> Sent: Wednesday, May 05, 1999 5:15 PM
> To: freebsd-questions@FreeBSD.ORG
> Subject: ftp-only script?
>
>
> Does anyone have a simple shell script to allow certain users to connect
> only via ftp?  Thanks in advance.
>
>
>         [[  M  i  c  h  a  e  l     L  i  e  b  e  r  m  a  n  ]]
>         [[  d i s o w n e d @ l i n d a . p o m o n a . e d u  ]]
>
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
>



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000b01be97b1$3c327d60$5438b5d8>