User rights to update /var/www/

Jay Paulson jpaulson at sedl.org
Fri Aug 26 13:45:58 UTC 2005


> You can use vsftpd for this. As you already mentioned you will have 
> this
> 'problem' with every ftp-server you use...
>
> vsftpd looks standard to the home directory of the user loging in, so 
> if you
> change someone's home dir in /etc/passwd to /var/www, he will go to 
> /var/www
> the next time he logs in... BUT he needs file system rights to enter 
> that
> directory.
>
> The best way to do this is creating some users who are an member of 
> the group
> APACHE/OTHER WEBSERVER runs at. So you can see who has uploaded the 
> file, and
> all works fine!!
>
> Good luck
>
> Joost Waversveld

Or you could create a symlink in the user's home directory to the 
/var/www directory.  Like the above says, just make sure that they have 
the permissions necessary to go to that directory.

jay




More information about the fedora-list mailing list