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

RE: [suse-security] Execute a SSH command



Why not just give the user a restricted shell, give them a bin directory in
their home set their environment to the necessary things to run that one
application that you provide in the local bin dir? Sudo is not necessary for
that. Then they could just ssh host command and it would be in their path to
execute.

-----Original Message-----
From: Geoffrey [mailto:esoteric@xxxxxxxxxxxx] 
Sent: Thursday, June 24, 2004 10:58 AM
To: Suse-Security
Subject: Re: [suse-security] Execute a SSH command


Joao Reis wrote:
> Hi Ingo,
> 
> But sudo isn't to be used just in the local machine? I want to 
> remotely
> execute a command, and the user should
> not have permissions to execute any other command, even if he has  
> permissions on the remote to do so.

ssh fred@foobar 'sudo ......'

-- 
Until later, Geoffrey                     Registered Linux User #108567
Building secure systems in spite of Microsoft

-- 
Check the headers for your unsubscription address
For additional commands, e-mail: suse-security-help@xxxxxxxx
Security-related bug reports go to security@xxxxxxx, not here

-- 
Check the headers for your unsubscription address
For additional commands, e-mail: suse-security-help@xxxxxxxx
Security-related bug reports go to security@xxxxxxx, not here