6 Jul
2009
6 Jul
'09
8:30 p.m.
-----Original Message----- From: dOCtoR MADneSs [mailto:doctor at makelofine.org]
You could try something like this : in local-client.cfg add a section for this host : [my_host] file:
sudo ls /your/fileand in hobbit-clients.cfg add a line in your host section : HOST=my_host FILE /your/file YOUR_SWITCHESanyone disagree with it ?
Somewhat of a security risk; when using sudo, I recommend using full path to the executable: sudo /bin/ls /your/file
and in your /etc/sudoers file:
Hobbit may run /bin/ls but flags are not allowed
hobbit ALL = NOPASSWD: /bin/ls [!-]*
t09trbrxs# su - hobbit hobbit at t09trbrxs:~> sudo /bin/ls /root/.ssh/authorized_keys /root/.ssh/authorized_keys hobbit at t09trbrxs:~> sudo /bin/ls --color=always /root/.ssh/authorized_keys hobbit's password: hobbit at t09trbrxs:~>