Linux - Networking This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
01-09-2002, 04:47 PM
|
#1
|
|
LQ Newbie
Registered: Dec 2000
Location: South Florida
Distribution: True 64
Posts: 5
Rep:
|
uid battle: Apache v/s script's owner
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.
-
Kires
I'm an idiot. What's your excuse?
|
|
|
|
01-18-2004, 02:34 PM
|
#2
|
|
LQ Newbie
Registered: Sep 2003
Location: Romania
Distribution: Linux Mint
Posts: 29
Rep:
|
I have the exact same problem.
Sorry for bringing up such an old topic, but I did a search and I found this, and I didn't want to start another because it already existed.
So, anyone knows how to solve this problem?
|
|
|
|
01-19-2004, 01:38 PM
|
#3
|
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
You can either:
1) Get your script to chmod them 777 (not very safe on a shared server)
2) Use another script to delete them.
|
|
|
|
01-19-2004, 03:43 PM
|
#4
|
|
LQ Newbie
Registered: Dec 2003
Distribution: Gentoo
Posts: 25
Rep:
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 10:01 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|