After spending a day on trying to make something I decided I'd ask to see if anyone has already done this and is willing to share.
On Ubuntu I need to execute a bash script as another user (using suid). Therefore I need a c program with SUID set to execute my shell script.
I was able to get one from the examples available but I need to be able to take and pass a half-dozen options and their values.
If anyone has done this before you please be willing to post the code here as a learning example?
Thanks all -
On Ubuntu I need to execute a bash script as another user (using suid). Therefore I need a c program with SUID set to execute my shell script.
I was able to get one from the examples available but I need to be able to take and pass a half-dozen options and their values.
If anyone has done this before you please be willing to post the code here as a learning example?
Thanks all -