[ale] C question

JD jdp at algoloma.com
Thu May 22 21:20:13 EDT 2014


On 05/22/2014 07:37 PM, Robert L. Harris wrote:
> The reason for the "system" is just to see what value I'm getting out.  
> 
> I have a perl script doing a bunch of processing which will be run by a couple
> different users.  One aspect of the perl script is to connect to another machine
> and run a command as a specific user.  Instead of having others know the passwd,
> etc.  I have a hostkey set up from my server as a non-privledged user to another
> system.  I want to have the C program setuid to the non-privledged user, ssh to
> the second server and run 1 command with the only variable being XXXXX.  More
> convoluted than I want but the safest method I can come up with to get just the
> output I need from the second server.

This sounds like a job for sudo to me.  I must be reading it wrong.
sudo isn't just for root/admin needs.


More information about the Ale mailing list