magic numbers (suid shell scripts)

Peter Knoppers knop at dutesta.UUCP
Sun Apr 8 23:53:06 AEST 1984


We have a PWB/UNIX system running on some PDP11/45's.  Our shell is
altered to operate on set-uid scripts.  The shell is set-uid to root.
On entry it checks the mode of the script.  If the s-bit is set, the
shell does a setuid to the user id of the file, if not the shell
changes its privileges back to those of the real user.

Peter Knoppers, Delft Univ. of Technology
..!{decvax,philabs}!mcvax!dutesta!knop
-- 
Peter Knoppers, Delft Univ. of Technology
..!{decvax,philabs}!mcvax!dutesta!knop



More information about the Comp.unix.wizards mailing list