Set_permisions homedir

snaaps

Verified User
Joined
Jan 29, 2005
Messages
226
Location
Netherlands
Hello,

Is it posible to set all UID and GID in the public_html directory to default with set_permision script?

If not, maby this is a hint...

some files create by Joombla gets the UID and GID apache.
I thouth that when I create a cronjob for set_permisions this problem can easly fixed.

Or are there other soulotions for this problem?
 
Joomla, Mambo, etc., create files/directories owned by the username they run as. The right way to manage these files is using the same program that created them.

However most of us want them owned by the usernames.

We have several clients using Joomla who've asked us to create cronjobs for them, and others who manage everything through Joomla.

(The cronjobs must run as root which is why the users can't create them themselves.)

Jeff
 
do you have a example for the cronjob?

how to setup a cronjob to chown a specific dir to specific user?
 
chown -R username:username /path/to/directory

Note it has to run as root.

man 5 crontab should tell you how to format the actual line; I'd put it in /var/spool/cron/root.

Jeff
 
Back
Top