[Ilugc] Re: Execting commands as different user
- From: sivaramsk@xxxxxxxxxxxxx (Sivaram Kannan)
- Date: Wed Jan 24 08:13:31 2007
sudo is the best answer, of course. But before hard coding
passwords in an expect script, I would write a C program that execs
/bin/ls, and make the resulting program suid. Less of a security
hole.
to make it more genenric, pass the program as a command line argument.
regards,
siva.
Other related posts: