PDA

View Full Version : file ownership in shell


o0O0o.o0O0o
07-09-2008, 03:51 AM
hi ,


I am doing backups by adding a cron job in cpanel likr


/bin/sh ...../backup.sh

Now my hosting provider has given me a directory like

home/backup/test

where i can write all my backups . But the problem that backup space is consuming my main quota which i have been allocated. He was saying that that directory is outside your account so that won't include in you quota.


When i told him that , he said as i am executing cron from cpanel , that puts ownership in the file created , so that why it comes in quota . he said i have to execute cron from Shell so that it don't put ownership.


Is he correct or that shell script has to be executed by root

anarchy3200
07-09-2008, 03:40 PM
What i think he is saying is that you must run the cron as root rather than your web user so as i say in my post in your other thread, you should just need to copy the cron line from your web user to your root users crons.