From: steve@Nyongwa.CAM.ORG (Steve M. Robbins) Subject: Re: C News for Linux Date: 28 Sep 1992 14:28:20 GMT
In article <1992Sep25.030123.24385@athena.mit.edu> tytso@ATHENA.MIT.EDU (Theodore Ts'o) writes:
>
> From: steve@Nyongwa.CAM.ORG (Steve M. Robbins)
> Date: 25 Sep 92 00:20:32 GMT
>
> >Modern Unixes can generally use the setuid() system call to set the
> >real and effective user ids to the current effective user id. In
> [ ... ]
> >(and it then invokes relaynews in return). Can this system do
> >setuid(geteuidc)) to change the real uid/gid?
^^^^
>
> no
>
>This should be "yes"; Linux supports System V with Saved UID's
>functionality for setuid(). (It also supports BSD setreuid() as well.)
Unless you are root, you can't set the REAL uid with this command.
Why c-news wants to do this, I don't know; but believe me, I tried 'yes'
first. Granted, one could change the code to use BSD's setreuid(), but
I found it just as easy to let c-news handle things its way.
-- Steve Robbins -- steve@nyongwa.cam.org The World is rather sick and twisted. Why should I be any different?