FTP account

Anonymous

I use Red Hat, Apache and ProFTPD. Now I like to create FTP user accounts (via SSH) but only for FTP Access and to only one certain directory (for uploading files). How can be restricted this?



db
db's picture
Re: FTP account

If you only want one, why not just use anonymous ftp?
VSFTPD by default allows anonymous logins and you can only upload I believe.

--

Cheers,
Dave Brown



Anonymous
Re: FTP account

No, I want to create more users. However, I have to enable anonymous access too (in one directory)

please,



db
db's picture
Re: FTP account

I suppose just create them and make their shell in /etc/passwd be :
/bin/nologin instead of /bin/bash
They won't be able to login but can ftp? Not sure if this is the case...anyone?

--

Cheers,
Dave Brown



schultmc
schultmc's picture
Re: FTP account

[quote="db"]I suppose just create them and make their shell in /etc/passwd be :
/bin/nologin instead of /bin/bash
They won't be able to login but can ftp? Not sure if this is the case...anyone?[/quote]

Proftpd can operate with its own passwd and group files, allowing you to create FTP only accounts. I haven't figured out how to disallow normal system users from logging in via FTP though.

The documentation section of www.proftpd.org was pretty helpful last time I setup ProFTPD - it even features some example configurations. I don't have an FTP server currently setup and haven't set one up in a while so I don't think I can be of too much help other than pointing out the documentation.