sybeck2k
Dec 9 2007, 05:33 AM
Hi everyone,
I just arrived at theplanet.com, I'm setting up my new server. I'm almost done, only 1 really stupid thing I can't set right....I need to setup anf FTP server to access just the /var/www folder. I have tried to install first vsftpd and pure-ftpd after, everything fine, created the user, set the home folder as /var/www...i can login, but I cannot write anything on the folder. /var/www/html is in group and user root (the default setup of my server). Can anyone help me in having a user working in pure-ftp to write in /var/www/html folder?
thanks anyone in advance!
(I tried google search for help...but nothing I found was useful....))
Jeff
Dec 10 2007, 09:46 PM
How about simply changing the ownership of the www folder to match your user?
James Jhurani
Dec 10 2007, 09:58 PM
change the user ownership to that of your user, and set the group ownership to apache. Next put the user and apache in the same group to allow the group to read the files, but not write.
I do the same thing for apache, but I use sftp/scp to transfer files, or I edit the content on my server itself.
[root@core www]# ls -l | grep html
drwxr-x--- 16 james apache 4096 Dec 4 13:33 html
[root@core www]# su -l james
[james@core ~]$ id
uid=500(james) gid=500(james) groups=48(apache),500(james)
[james@core ~]$
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.