in reply to Program changing users
The safest way appears to be to make a suid wrapper program in C (shouldn't be much work) and let that execute the script for you.
Option 2 is to use sudo or su -c:
if the user in question has sudo powers.sudo program options
Anyway, 95% of the time you don't want all of this anyway, because if YOU can't write to a specific directory, you shouldn't be able to run a program that can. Except for the exceptions, ofcourse.
|
|---|