Resetting owners of user files

spottraining

Verified User
Joined
Jun 19, 2007
Messages
40
Hi
I updated my servers to latest DirectAdmin. And I get system notifications:
http://www.directadmin.com/features.php?id=1052

Solution there is simple, but at my case - ......

I have lot of domains, where files are uploaded trough webscripts. It mean, that all these files are owned by apache and resetting owner file by file and directory by directory - this is nonsense. Is there some automated version, what checks the user files and resetting the owners. I find from Knowledgebase only for DA files solution, but not for user files.
 
It should be easy enough to write one; we did something similar a long time ago that would run every minute, changing ownership of all files for a given user, from the apache user to the site's user.

Now, however, we find it easier to run suPHP, which runs everything as the user.

Note also that changing user permissions could keep some paranoid software from running.

Jeff
 
Its easy enough to do with the find command and a small shell script.
 
Back
Top