RE: ftp server with no shell accounts



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"



Relevant Pages

  • Re: Backup auf ftp Server streamen, LogFiles
    ... FTP Server: ... Wie kann ich denn hier stdout bzw. den stderr noch mitloggen? ... die angelegten Files sind leer. ... Shell ist sh. ...
    (de.comp.os.unix.shell)
  • RE: Visual Basic 6 and HTTPS
    ... because I dont have a FTP server in my case. ... Uses a shell command ... Dim ftpFolder As Folder ... I need a little help about VB6 and HTTPS. ...
    (microsoft.public.vb.general.discussion)
  • bad list during ftp session
    ... Periodically I facing some strange problem with my ftp server. ... Some files and dirs are not listed by ls command, ... in the shell all looks Ok. ...
    (FreeBSD-Security)
  • Re: Email accounts on FreeBSD 5.1-RELEASE
    ... > I want to setup accounts on my box so users can retrieve emails by accessing ... Is like when I wanted to give someone access to my ftp server I just ... > created an account and took out the shell part in the passwd file. ...
    (freebsd-current)
  • Re: ftp nologin problem
    ... > don't have a shell and I've defined his shell as nologin then the ftp server does ... > not logon and give the following error ... > 530 Login incorrect. ...
    (freebsd-questions)