[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] C question
- Subject: [ale] C question
- From: jdp at algoloma.com (JD)
- Date: Thu, 22 May 2014 21:20:13 -0400
- In-reply-to: <CAOXayVtN7Zh=Wofb=xh+PopCsm_iy5bp6tFE1_tRp=TintC8Mw@mail.gmail.com>
- References: <CAOXayVtf4ZhA=V3KBJjZYnVzjZ1u-8J403_xJmtAVrCsec3xcA@mail.gmail.com> <CADvA-dkzWAhFFiJ4zVaXMj=5ttjRnC3qLSfM5VxLULbrXrOibA@mail.gmail.com> <CAOXayVsRTGFWOtpdKsPrgekVKVrOXU73tJV=35PzXj7JqhUb-Q@mail.gmail.com> <CADvA-dnqpFKnaqmLVtysCgz3nRE9mVNujMfrnp40n9hYg53Aeg@mail.gmail.com> <CAOXayVtN7Zh=Wofb=xh+PopCsm_iy5bp6tFE1_tRp=TintC8Mw@mail.gmail.com>
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.