Hey all... I'm trying to slap together a quick & dirty CMS for a
client and I'm having trouble writing back to the files. All
permissions default to 644, and I'd like to be able to write to any
file without having to change them away from their default settings.
My plan is to chmod the file 646, write to it, close it, and then
chmod it back to 644, but I'm getting errors that I can't chmod the
file becuase I (the web server) don't own it. So, I'm trying to chmod
using exec, but that doesn't seem to work either...
Anyone run into an issue like this and/or seen a workaround?
I can't change anything about the server configuration, so I need to
do this all from the script level.
Hello,
You could:
- Run the script as root user (not very secure).
- Change the owner of the file with chown.
- Change the group of the file with chown then chmod ug+wr to make the
file group write/readable.
Thanks
Robin....
Thanks!
-Rob
--
Rob Maurizi | rhm design
email@hidden
www.rhmdesign.com
_______________________________________________
web-development mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/web-development
Do not post admin requests to the list. They will be ignored.
_______________________________________________
web-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/web-development
Do not post admin requests to the list. They will be ignored.