good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Writing a file as someone elseby hotyopa (Scribe) |
on Dec 14, 2000 at 10:51 UTC ( [id://46587]=perlquestion: print w/replies, xml ) | Need Help?? |
hotyopa has asked for the wisdom of the Perl Monks concerning the following question:
Hi All,
I am implementing a flat file database on a secured server and having a little bit of a problem. The script is currently writing files as user www-data and group www-data. Our sysadmin guy wants to be able to clear the data directory in the future, but can't as he's not the owner of the files. I've tried a system() call to chown after the file has been written, but it isn't working (I suspect because only the superuser can do that). Does anybody know the best way to have the sysadmin guy made the owner of the files as they are written? PS. Its writing directories too. Thanks, Anton
Back to
Seekers of Perl Wisdom
|
|