View Full Version : Problem: Files/folders created using a web interface have apache:apache ownership.
dachmo
01-27-2005, 05:56 PM
Any files or folders that are created using a script accessed via the webserver are being created with the ownership of apache:apache. According to http://www.directadmin.com/forum/showthread.php?threadid=3002&highlight=apache+user
I was under the impression that they should be created as user:apache. This is leading to some very large problems as users cannot delete the files that they are creating on their accounts. Anyone have any info on how to solve this problem? I'd really like for it to work like it's supposed to and set user:apache since it's more secure than just user:user with wide permissions, so I'm reluctant to run the script in the referenced post.
Thanks for the help!
OS: Fedora Core 3
Apache 1.3.33
DirectAdmin 1.23.3
jmstacey
01-27-2005, 07:04 PM
They are created as user:user on my system.
Debian 3.0
DA 1.23.3
The link you posted is in regards to the public_html directory that is created with every domain, not files uploaded through DirectAdmin's FileManager. You might want to make sure that all public_html directories belong to the right user and group and are chmod'd properly. Other than that I have no other ideas, why files are being created with different permissions on your server.
dachmo
01-28-2005, 02:52 AM
The directories that are created upon account creation have the correct permissions, it's just directories and files that are created via install scripts, or PHP upload scripts, etc. Files uploaded through DA's filemanager have user:user permissions.
jstrzalko
01-28-2005, 01:18 PM
you will need to use suPHP or something similar. I have suPHP .52 running on my box with no problems at all. http://www.suphp.org
Synaps
01-31-2005, 08:31 AM
We encounter the same probleme. We have a permission error with a script trying to write or create a file. And the administrator don't want to use suPHP or something else like that.
OS: Fedora Core 2
Apache 1.3.33
DirectAdmin 1.23.3
Synaps
-- ... --
fusionictnl
01-31-2005, 10:50 AM
This is already being discussed somewhere else around this forum and a lot of other forums.
PHP is ran as the user Apache and by this the process is owned by Apache and by this the files are being written as Apache.
There isn't an easy way to fix this except just running some script that changes the files owned by apache:apache in the users Home dir to user:user.
http://www.directadmin.com/forum/showthread.php?s=&threadid=2420&highlight=php+files+owned+apache
http://www.directadmin.com/forum/showthread.php?s=&threadid=6084&highlight=php+files+owned+apache
Synaps
01-31-2005, 11:09 AM
Thanks a lot for this link.
:rolleyes:
Synaps
-- ... --
Peter
02-19-2005, 07:52 AM
I installed all of this SuPHP, but it doesn't seem to do anything, can you tell me what i should do to make it work and set the permssions correctly?
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.