"Benjamin M Baraga" <[EMAIL PROTECTED]> writes:
> I have a linux (Redhat 5.1) box that is hosting our web page, via Apache. I
> want to give the webmaster FTP only access to the server. How do I create a
> user like this? I don't want him to be able to login to the server, only be
> able to FTP to the /home/http directory. Any help would be appreciated.
Same thing here. I solved the problem in the following way, using ProFTP:
---cut from /etc/proftpd.conf---
<VirtualHost xxx.xxx.xxx.xxx>
User www-data
Group www-data
<Limit LOGIN>
DenyAll
</limit>
<anonymous /var/www>
AnonRequirePassword on
RequireValidShell off
MaxClients 10
<limit LOGIN>
AllowAll
</limit>
User www-data
Group www-data
Useralias webmaster www-data
Userpassword www-data [encrypted_password]
</anonymous>
</virtualhost>
---end_cut from /etc/proftpd.conf---
You can even define multiple ftp-accounts by duplicating the
<anonymous> section, but the have no protection against each
other. (But that wasn't intended in my setup, because we wanted
multiple webmasters to be able to make changes.)
Regards, Ulli