[aklug] Re: automating remote access using ssh for root level info retrieval?

From: Jiin Jade <jiin@vitalsols.com>
Date: Tue Apr 23 2013 - 18:45:30 AKDT

Maybe something like this in /etc/sudoers:

# Cmnd alias specification
Cmnd_Alias NETCMDS = /bin/netstat -patn

# User privilege specification
automate ALL=(root)NOPASSWD:NETCMDS

On Tue, Apr 23, 2013 at 6:32 PM, Jeremy Austin <jhaustin@gmail.com> wrote:

>
> On Tue, Apr 23, 2013 at 3:34 PM, techno curmudgeon <
> technocurmudgeon@gmail.com> wrote:
>
>>
>> I can probably mickeymouse something to do this, but I'd really rather do
>> it right. (Is ssh even the right approach for this type of activity?)
>> Question is, what is the proper way to do something like this?
>
>
> Sudo can be configured (/etc/sudoers) to allow specific commands for a
> user or group without a password. Use with care.
>
> jermudgeon
>

---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Tue Apr 23 18:45:39 2013

This archive was generated by hypermail 2.1.8 : Tue Apr 23 2013 - 18:45:39 AKDT