RE: ftp server with no shell accounts
- From: "Scott Hiemstra" <shiemstra@xxxxxx>
- Date: Thu, 11 May 2006 07:38:51 -0400
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
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"
- References:
- ftp server with no shell accounts
- From: Sean Murphy
- ftp server with no shell accounts
- Prev by Date: Re: Is it recommended to allow all outgoing connections from your firewall??
- Next by Date: Re: Mysql FreeBSD 6.x
- Previous by thread: Re: ftp server with no shell accounts
- Next by thread: Copying a file system w/ tar - symbolic links not copied right.
- Index(es):
Relevant Pages
|