Aduke.2121 net.games.emp utzoo!decvax!harpo!duke!cjp Thu May 6 12:48:34 1982 Re: sri-unix.1410: redirection to file There is a simple solution to the problem of keeping a protected data file for use by a program, and still having the users of the program able to write to their own files. The program should be run setuid to the owner of the protected file. Within the program, the first thing it does is open that file, and the second thing is setuid(getuid()). The protected file remains open, but all further actions occur with the user's permissions. Are you listening, esquire!psl? Charles Poirier (duke!cjp) ----------------------------------------------------------------- gopher://quux.org/ conversion by John Goerzen 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.