Need ideas: moving stuff to server
Collins Richey
crichey
Sat May 14 23:11:31 PDT 2005
On 5/14/05, Bill Campbell <linux-sxs at celestial.com> wrote:
> On Sat, May 14, 2005, Michael Hipp wrote:
> >Ok, I can imagine a script that does such. But how do I cross the "su"
> >barrier. I issue a command on the client that starts a script on the
> >server with several params sent across. But the script is running as me.
> > How I enable it to do su things automatically?
>
> man sudo
>
A slightly more expanded version:
1. Setup /etc/sudoers on your target system to allow root mode
execution for your non-root user without a password. You do get
logging of each sudo command issued.
2. Allow only ssh access with keys (no passwords).
3. Encode your script lines that require root access as 'sudo cmdname ...'
4, Viola.
--
Collins
When I saw the Iraqi people voting three weeks ago, 8 million of them,
it was the start of a new Arab world.... The Berlin Wall has fallen.
- Lebanese Druze leader Walid Jumblatt
More information about the Linux-users
mailing list