Text File

Aucbvax.4470 fa.unix-wizards utzoo!decvax!ucbvax!unix-wizards Thu Oct 15 23:13:12 1981 setuid/getuid >From jeff@lll-unix Thu Oct 15 22:04:24 1981 We too have run into the problem of needing a setuid program to create a file as the real user and not as the effective user AND then continue to run as the effective user. Setuid(getuid()) is good but once.

To solve this we added a 'resex' system call that enables a program to RESet its real and effective ids to EXec status.

Also, a companion to being able to reset the real user and group ids to what they were on an exec, is the ability to set the real uid and gid from the effective ids (the compliment to the current setuid/setgid). We called this 'setre', SET the Real id from the Effective id. This call is used for making setuid programs, and all of their children, take on all of the characteristics, real and effective, of the setuid/setgid user.

lll-unix runs V6.

----------------------------------------------------------------- gopher://quux.org/ conversion by John Goerzen <jgoerzen@complete.org> of http://communication.ucsd.edu/A-News/

This Usenet Oldnews Archive article may be copied and distributed freely, provided:

1. There is no money collected for the text(s) of the articles.

2. The following notice remains appended to each copy:

The Usenet Oldnews Archive: Compilation Copyright (C) 1981, 1996 Bruce Jones, Henry Spencer, David Wiseman.