View Full Version : proftpd ftpuser vs. www-data user?
unclecameron
11th June 2009, 03:15
I have proftpd running for users to upload files to a webserver with many virtual hosts. Currently I've created ftpuser/ftpgroup as non-privileged user for proftpd, but this causes problems with php scripts that need to run as www-data once uploaded. I've added ftpuser to /etc/group for www-data, but this doesn't help. Is there any issue with telling proftpd to use the user/group www-data?
falko
11th June 2009, 18:59
I don't think so.
unclecameron
11th June 2009, 22:36
I tried to do this through
UserOwner www-data
GroupOwner www-data
but that needs to be in a <Directory> container I think, anyway, it didn't work.
I then changed the ftpgroup table in msql to:
groupname: www-data
gid: 33
members: www-data
and my user login in the ftpuser table to:
uid: 33
gid: 33
and I still get "permission denied" when attempting to upload, the folder is owned by
www-data.www-data
and I can login okay. There are no errors in the logs.
falko
12th June 2009, 18:12
Can you go to the directory that you tried to upload to and post the output of ls -la?
unclecameron
12th June 2009, 19:54
drwxr-xr-x 22 www-data www-data 4096 2008-09-27 17:34 foldername
inside that folder
drwxr-xr-x 9 www-data www-data 12288 2008-08-16 17:36 somefolder
-rw-r--r-- 1 www-data www-data 6 2008-08-16 17:36 somefile.txt
falko
13th June 2009, 11:48
Can you post the full outputs?
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.