[Omaha.pm] Net::SSH::Perl and sudo or su
Christopher Cashell
topher-pm at zyp.org
Thu Dec 6 16:31:43 PST 2007
On Dec 6, 2007 5:08 PM, Tony Simons <webmaster at tvortex.net> wrote:
> Q. So this is our goal, right? To create /etc/serialnumber on the remote
> host?
> A. Absolutely
Would it be possible to approach this from a different side and handle
it via permissions? Create a group on the box(es) where the file
lives, for writing to the file. Then make the file setgid to that
group, and writable by that group. Then add the user account the
script will be run from (or that it logs in as) to the group. This
could remove the requirement for sudo/su.
--
Christopher
More information about the Omaha-pm
mailing list