From: mark@cita.toronto.edu (Mark Bartelt)
Subject: SUMMARY: GACK! DU 4.0d mount() now looks at real (not effective) uid!
Date: 1998/05/20 [thread overview]
Message-ID: <Et93vG.LAG@campus-news-reading.utoronto.ca> (raw)
In-Reply-To: Et7u66.4oD@campus-news-reading.utoronto.ca
Well, I was nearly inundated with responses: Many people suggested
rebuilding the kernel with "options CDFS" in the configuration file.
That wasn't the problem (the kernel already had that configured in).
A lot of people suggested using "sudo". That's likely a worthwhile
thing to look at in any case (it's one of those things that's been
on my "to do" list for a *long* time).
But the easiest solution was essentially ...
Hey, bonehead! If the real uid needs to be zero, why not
just have your wrapper program set the real uid to zero?
So, any or all of ...
setruid(geteuid());
setuid(geteuid());
setruid(0);
setuid(0);
... do the trick quite nicely. Many thanks to ...
Allan E Johannesen <aej@WPI.EDU>
Joshua Rowe <rowe@eksystems.com>
Kevin Hildebrand <hildekca@Glue.umd.edu>
John Hascall <john@iastate.edu>
Ray Bellis <rpb@community.net.uk>
Serguei Patchkovskii <patchkov@acs1.acs.ucalgary.ca>
Lars Bro <lbro@dscc.dk>
... who made the (in retrospect, glaringly obvious) suggestion (but
all of whom were too polite to call me a bonehead!). I *must* stop
posting before my caffeine level is at optimal strength ...
Mark Bartelt 416/978-5619
Canadian Institute for mark@cita.utoronto.ca
Theoretical Astrophysics http://www.cita.utoronto.ca/~mark
"Nur eine Waffel taugt!" -- Parsifal, in an Eggo commercial
prev parent reply other threads:[~1998-05-20 4:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-05-19 4:00 GACK! DU 4.0d mount() now looks at real (not effective) uid! Mark Bartelt
1998-05-19 4:00 ` Serguei Patchkovskii
1998-05-20 4:00 ` Thomas Leitner
1998-05-20 4:00 ` Mark Bartelt [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox