Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Here's the issue:
Apache runs as uid "www". Which is as it should. The scripts run by Apache create files that are owned by www, and cannot be deleted by me, the owner of the scripts. The milieu here is a colo'd box, with a real bastard of an admin who's not about to give me sudo, (can't say I blame him, I know just enough to make the box go all explodey) or let me masquerade as www. What I'm trying to pull out of some orifice is a way to have Apache run scripts as the userid of ther daddy, (me) or at least have the files created by said scripts owned by me. Can this be done without conjuring a C wrapper, or my running my own copy of Apache on the box? Maybe some relative of the most holy "setuid bit", that would work on cgi/perl scripts. Or maybe some arcane line in the .htaccess. or httpd.conf I've overlooked.
You could install the scripts setuid, if you're absolutely certain they won't change anything they're not supposed to. That way, with luck, they should run as your user, and you'll be able to delete them. Alternatively, see if you can get the script to create its files as 775, and get your friendly sysadmin to add you to the owning group.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.