HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   right of files after upload with webapp (http://www.howtoforge.com/forums/showthread.php?t=13272)

bgeier 8th June 2007 10:47

right of files after upload with webapp
 
i upload all files per ftp and all works fine.

but if i upload files with a application of apache the files get the user ond group form apache.

->
-rw-rw-rw- 1 xdrusr web6 1648 2007-06-01 11:09 archive_f2.png
-rw------- 1 www-data www-data 248 2007-06-08 10:44 austria.gif

-> the ftp user: xdrusr can't access now the files.

how can i fix this problem?

thanks

bernd

mlz 8th June 2007 16:47

Is this with the web app that comes with ISPConfig? To me the best way is to have the app chown the files to the user, but since neither myself nor my current load of clients has bothered to use the thing, I'm not sure. Guess I'll be playing with the ftp webapp this weekend... :)

falko 9th June 2007 11:32

Quote:

Originally Posted by bgeier
i upload all files per ftp and all works fine.

but if i upload files with a application of apache the files get the user ond group form apache.

->
-rw-rw-rw- 1 xdrusr web6 1648 2007-06-01 11:09 archive_f2.png
-rw------- 1 www-data www-data 248 2007-06-08 10:44 austria.gif

-> the ftp user: xdrusr can't access now the files.

how can i fix this problem?

thanks

bernd

You could make your web application upload the files with 664 permissions instead of 600. Then you can add the user xdrusr to the group www-data. xdrusr will then be able to read/write.


All times are GMT +2. The time now is 00:24.

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