Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 11th June 2009, 02:15
unclecameron unclecameron is offline
Senior Member
 
Join Date: Apr 2006
Posts: 115
Thanks: 2
Thanked 8 Times in 7 Posts
Default proftpd ftpuser vs. www-data user?

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?
Reply With Quote
Sponsored Links
  #2  
Old 11th June 2009, 17:59
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

I don't think so.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 11th June 2009, 21:36
unclecameron unclecameron is offline
Senior Member
 
Join Date: Apr 2006
Posts: 115
Thanks: 2
Thanked 8 Times in 7 Posts
Default

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.

Last edited by unclecameron; 11th June 2009 at 22:01.
Reply With Quote
  #4  
Old 12th June 2009, 17:12
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

Can you go to the directory that you tried to upload to and post the output of
Code:
ls -la
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 12th June 2009, 18:54
unclecameron unclecameron is offline
Senior Member
 
Join Date: Apr 2006
Posts: 115
Thanks: 2
Thanked 8 Times in 7 Posts
Default

Code:
drwxr-xr-x 22 www-data www-data 4096 2008-09-27 17:34 foldername
inside that folder
Code:
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
Reply With Quote
  #6  
Old 13th June 2009, 10:48
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
 
Default

Can you post the full outputs?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Statistic not working mzo Installation/Configuration 49 20th April 2011 12:19
The system is currently updating the configuration files. warlock General 8 21st February 2009 18:15
550 Sender verify failed Allen15 Installation/Configuration 11 13th February 2009 14:02
Ruby / FastCGI Problem Chad Server Operation 1 8th March 2008 20:38
Problem recieving mail webstergd Installation/Configuration 19 16th December 2005 12:08


All times are GMT +2. The time now is 04:19.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.