From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,58927b269bde52da X-Google-Attributes: gidfee84,public 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 Message-ID: #1/1 X-Deja-AN: 354909993 Sender: nntp@campus-news-reading.utoronto.ca (News) References: Reply-To: mark@cita.utoronto.ca X-Nntp-Posting-Host: rorqual.cita.utoronto.ca Organization: Canadian Institute for Theoretical Astrophysics Newsgroups: comp.unix.osf.osf1 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 Joshua Rowe Kevin Hildebrand John Hascall Ray Bellis Serguei Patchkovskii Lars Bro ... 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