[plug] file options

Cameron Patrick cameron at patrick.wattle.id.au
Fri May 30 08:45:46 WST 2003


On Wed, May 28, 2003 at 10:11:11PM +0800, Craig Dyke wrote:
| 
| I want everyone to be able to read this file or add extra lines but not
| delete
| what is already there???
| 

Chmod the file so that only one user can write to it and everyone can
read it.  Make a setuid (not setuid root!!) wrapper script that takes as
input the extra lines to add and appends them to the file.  That way the
only write access that others users have is via the script.

Working out how to make a script run setuid, and in particular doing so
securely, is left as an exercise for other list members :)

Cameron.



More information about the plug mailing list