Date: Thu, 11 May 2006 07:38:51 -0400 From: "Scott Hiemstra" <shiemstra@h2.com> To: <freebsd-questions@freebsd.org> Subject: RE: ftp server with no shell accounts Message-ID: <20060511113643.711EF43D7D@mx1.FreeBSD.org> In-Reply-To: <44628357.3020402@calarts.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
> I tried the default ftp server with FreeBSD 5.4 and users > with no shell > accounts but it does not work. > > Does anyone know of a ftp server that users would still have home > directories but no shell access /sbin/nologin and that could still > upload files to there home directories. The default ftpd will work with a little tweaking. 1. touch /bin/ftpshell 2. echo "/bin/ftpshell" >> /etc/shells 3. When you add your users, set their shell to /bin/ftpshell 4. echo USERNAME >> /etc/ftpchroot The users will be able to login via ftp and nothing else because there shell is a crap fake shell. The ftpchroot will lock them into their home directory very effectively. Scott
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060511113643.711EF43D7D>