Megalextoria
Retro computing and gaming, sci-fi books, tv and movies and other geeky stuff.

Home » Archive » Atari MiNT Mailing List » Re: seduid scripts
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: seduid scripts [message #6981] Tue, 23 March 1993 00:06
Anonymous
Karma:
Originally posted by: ersmith@netcom.com (Eric R. Smith)

>> I have no particular objection to putting #! interpretation in, but
>> it would have to be "#!\bin\sh" rather than "#!/bin/sh".

>Eric, have you any idea how setuid scripts could be achieved, then?

How about a (setuid root) program that acts as a setuid server; i.e.
whenever exec detects a #! as the first two characters of a file,
it instead execs /bin/scripter (or whatever we want to call it) with
the script file name as the first argument and the other parameters
(if any) following it. /bin/scripter then checks the uid, gid, and
permission bits, does appropriate setuid() and setgid() calls, and
executes the interpreter (after performing any /->\ translations
that are necessary).

Obviously if the script is *not* setuid or setgid then exec can
bypass /bin/scripter and just do the script directly.



  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: tcsh 6.03, BSD sh, mntlib
Next Topic: Re: seduid scripts
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Apr 19 04:00:19 EDT 2024

Total time taken to generate the page: 6.42408 seconds