Reputation
32,502
Next tag badge:
97/100 score
24/20 answers
Badges
2 77 105
Newest
 Nice Answer
Impact
~1.5m people reached

2d
comment how can I configure Apache so that PHP scripts are run with permissions of the owner of the script?
@mattdm: 1. I obviously didn't mean "run briefly as root, then drop privileges" when I said "run as root." I meant "run continuously as root, so as to be able to call setuid() on scripts to run them as other users. 2. I gave two of those alternatives: C wrapper and sudo.
2d
comment how can I configure Apache so that PHP scripts are run with permissions of the owner of the script?
@user983447: It may, or it may not. That depends on your OS and how it is configured, which you haven't specified. ("Debian" isn't nearly enough information to answer the question.) I've added some alternatives to the original solution that will work on any Unix or Unix-like OS.
2d
revised how can I configure Apache so that PHP scripts are run with permissions of the owner of the script?
rewrote answer to cover the implications of suid scripts better, and to give the C wrapper and sudo alternatives
Jul
1
answered how can I configure Apache so that PHP scripts are run with permissions of the owner of the script?
Jun
30
comment Upgrade Centos to 6.5 not 6.6?
+1 for answering the actual question, but it would be a crying shame if the OP accepted this answer. To do so would be to say, "Yes, I really do want to leave my boxes running known-insecure software."
Jun
30
revised Upgrade Centos to 6.5 not 6.6?
more clarity rearrangements
Jun
30
revised Upgrade Centos to 6.5 not 6.6?
Added FAQ item 30 para; clarified the XFS item
Jun
29
revised Upgrade Centos to 6.5 not 6.6?
added more detail
Jun
29
revised Upgrade Centos to 6.5 not 6.6?
added more detail
Jun
29
answered Upgrade Centos to 6.5 not 6.6?
Jun
28
comment A bash script that can automate git commit message contents
@void.pointer: Added the header line. I didn't know it wasn't part of "git diff" output.
Jun
28
revised A bash script that can automate git commit message contents
added header line
Jun
28
answered A bash script that can automate git commit message contents
Jun
28
comment GNU Make does not ignore failed command
+1, but your answer could be read as saying that make prints the first error line. Better to say that - tells make to ignore the command's status code, which is an entirely different thing from output error message suppression. You might talk about > /dev/null 2>&1.
Jun
26
comment Can all OSS for Linux be built to run on an Illumos based OS like OpenIndiana?
I briefly played with DilOS recently. It seems to work reasonably well. It uses the Debian apt-get package system. The main worry I have with any of these forks is longevity. Which are flashes in the pan, and which will prevail, if any?
Jun
19
reviewed Approve After installing Kali Linux next to Windows 8.1, I can see it (using rEFInd), but it cannot boot
Jun
19
reviewed Approve davfs unknown option because of secrets file
Jun
19
revised Writing drivers for Oracle Solaris
Grammar fixes; moved a link inline; added kernel tag
Jun
19
comment Writing drivers for Oracle Solaris
@Mark: The need for kernel sources to develop drivers is a thing you see only on open-source OSes because...why not? Closed-source OSes necessarily provide a more formalized device driver interface. See the dummy.c example stuff I've just added to the answer. Bottom line: I just built a driver on my Solaris 11.2 VM, so I don't see what else you need.
Jun
19
revised Writing drivers for Oracle Solaris
added dummy.c stuff; clarified first para