Re: permissions
Posted in 1992
>> From uunet!rmy.emory.edu!informix-list-owner Thu Mar 26 11:42:08 1992 >> From: uunet!hector.cc.bellcore.com!warren (saccente,warren j) >> To: informix-list@rmy.emory.edu >> Subject: Re: permissions >> Sender: uunet!rmy.emory.edu!informix-list-owner >> >> Tony Heskett writes (in response to my original email and >> Jonathan Leffler response): >> >> >Things to remember are >> > >> >b) C-progs that need to run on a variety of Unix boxes tend >> > to need a selection from setuid, setgid, setresuid, setresgid ... >> > For a one-off, though, it should be dead easy. man setuid and >> > go from there. >> >> The problem with this is that (in att universe) setuid only sets the effective >> user id (unless root is running) and informix users the real user id. In >> ucb there is a setreuid to set the real userid; but unfortunately, we run in >> att. Still should work. In UCB, you can chown the executable to the desired runtime ID and set the setuid bit. In System V, you can chown the executable to root, set the setuid bit, and call setruid() within the application to switch the real uid to root also (and from there, change both to any other uid you choose). I'm sure I've done this before. >> Thanks, >> >> Warren J. Saccente -- Alan Denney aland@informix.com {pyramid|uunet}!infmx!aland I says, "Earl, this hill can spill us you better slow down or you're gonna kill us just make one mistake, and it's the Pearly Gates for them 85 crates of U.S.D.A.-approved cluckers. You wanna hit second gear, please?" -- 'C. W. McCall', "Wolf Creek Pass"