[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Richard Jones <rich@a...> |
| Subject: | Re: [Caml-list] on ocaml and set-user-id programs |
On Sun, Mar 27, 2005 at 12:01:45PM +0200, Stefano Zacchiroli wrote: > I've wrote an ocaml program that needs to be executed set-user-id root. > > I managed to have it being executed with effective user id 0 only > compiling in native code or in custom bytecode. Both executing it as a > script using "ocamlrun ocaml" and compiling it to non-custom bytecode > make the program having effective user id of the user executing it. > (Example session at the end of this mail) I think the problem is simply caused because your kernel has setuid scripts disabled, for security reasons. According to the second reference below, Linux ignores the setuid and setgid bits on scripts. http://www.faqs.org/faqs/unix-faq/faq/part4/section-7.html http://www.linux.com/howtos/Secure-Programs-HOWTO/processes.shtml Rich. -- Richard Jones, CTO Merjis Ltd. Merjis - web marketing and technology - http://merjis.com Team Notepad - intranets and extranets for business - http://team-notepad.com