[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Omaha.pm] Net::SSH::Perl and sudo or su



On Dec 6, 2007 5:08 PM, Tony Simons <webmaster@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