6184Permissions and processes
- Jul 2, 2006Hello all,
there's an issue I'm still confused about although I read the Unix
module documentation about it several times, probably
because I couldn't simple code samples.
My question is : can you create within Ocaml a function
execute_with_perm : string->string->process_status
(in the vein of Unix.system)
execute_with_perm comm passwd
executes the command comm, providing the
password passwd to gain the right to do it ?
execute_with_perm "sudo doSomethingDangerous" "abracada"
would allow the (currently logged) user whose passwd is "abracada" to execute
the command "doSomethingDangerous".
- Next post in topic >>