[Chicago-talk] mkdir() question
lembark at wrkhors.com
Thu Dec 2 19:59:12 PST 2010
On Thu, 2 Dec 2010 20:16:56 +0000
"Young, Darren" <Darren.Young at chicagobooth.edu> wrote:
> Can't change ownership of a
> directory to something other than yourself if
> you're not root right?
Depends on the O/S and parent dir mods.
> I've considered the options of setuid-perl
> (argh), running the web server as something
> else (ugh) suexec under Apache or even setting
> the permissions on /export/home to that of
> apache. Though the latter won't solve the
> chown problem.
Write a daemon to monitor the directory and
hack the mods for you. All it needs to do is
scan /home for dir's that don't match their
owner. The last one I wrote took about 15
linws of code with the curlys, if-ladder, and
signal handlers for hup and term.
> Anyone have any other thoughts before I hang
> myself with setuid root?
Please don't hang ypurself.
Steven Lembark 3646 Flora Pl
Workhorse Computing St Louis, MO 63110
lembark at wrkhors.com +1 888 359 3508
More information about the Chicago-talk