Many thanks to:
Aki Sasaki
Otto, Doug
Richardson, Gary
Christophe Colle
Tom Lojewski
Stephen W Mclaughlin
Troy Wollenslegel
Christian Pinheiro
Nickolai Zeldovich
Dan Brown
ArtMan
Moore, William
Danny Johnson
Bryan Blackburn
Stephen P Richardson
Sean Quaint
There were three main answers:
- use the -p switch to keep the shell from dropping privileges;
- Can't be done (at all, in Bourne/csh), which is incorrect;
- Use a C wrapper, such as the one included below:
main(){setuid(0);seteuid(0);system("/my/shell/script.sh");}
There were many reiterations of the general thought that it is
a Bad Idea (which I certainly agree with).
Thanks to all!
-j
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:13:24 CDT