Subject: Re: chown
To: Francois Pays <fpays@isicom.fr>
From: The Great Mr. Kurtz <davagatw@mars.utm.edu>
List: port-mac68k
Date: 12/10/1995 19:03:14
It should be possible without granting everyone use of chown.  Only 
*your* program needs priviledges.  Forgive me if I'm way off track here, I 
haven't read enough books on this topic to be certain but....  This seems 
like a tcb program discussion.  The program has to be usable by multiple 
users, but not the chown command, right?  No prob.  Just as  long as the 
program is granted root user authority.  Make it a tcb program.  I don't 
remember how to do that, but....

Once it's listed as part of the trusted computing base, you should be 
able to seteuid (I think) to root and then the program will have root 
user authority, even if it's executed by someone else.

Now, if only I could remember how to set up a program as tcb.

 /---------------------------------------------------------------------\
|David A. Gatwood             And Richard Cory, one calm summer night,  |
|davagatw@mars              Went home and put a bullet through his head.|
|dgatwood@nyx.cs.du.edu              --Edwin Arlington Robinson         |
|http://mars.utm.edu/~davagatw -or- http://nox.cs.du.edu:8001/~dgatwood |
 \---------------------------------------------------------------------/