Unix/Linux Go Back    


Shell Programming and Scripting Unix shell scripting - KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and shell scripts and shell scripting languages here.

sudo command remotely

Shell Programming and Scripting


Tags
unix commands

Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 07-01-2008
pvamsikr pvamsikr is offline
Registered User
 
Join Date: Jan 2008
Last Activity: 30 March 2013, 1:54 PM EDT
Posts: 23
Thanks: 0
Thanked 2 Times in 2 Posts
Unix or Linux Question sudo command remotely

Hi,

can any one of you help me how to run sudo commands/scripts remotely...
Sponsored Links
    #2  
Old Unix and Linux 07-01-2008
danmero danmero is offline Forum Advisor  
 
Join Date: Nov 2007
Last Activity: 31 July 2016, 9:42 AM EDT
Location: H3X
Posts: 2,163
Thanks: 11
Thanked 122 Times in 115 Posts
Please read http://www.unix.com/unix-dummies-que...om-forums.html before posting, especially rule number 5.
The basic concept is:

Code:
ssh user@host "sudo run your commands/scripts remotely..."

Sponsored Links
    #3  
Old Unix and Linux 07-01-2008
ravibhure ravibhure is offline
Registered User
 
Join Date: Jul 2008
Last Activity: 4 June 2013, 4:32 AM EDT
Location: Pune
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
ssh user@remoteaddress '/usr/bin/sudo commandname'
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
ssh execute command remotely Damon_Qu Shell Programming and Scripting 1 11-17-2011 05:54 AM
ssh foo.com sudo command - Prompts for sudo password as visible text. Help? fluoborate Shell Programming and Scripting 9 11-02-2011 02:18 PM
Unable to use the Sudo command. "0509-130 Symbol resolution failed for sudo because:" Chloe123 UNIX for Dummies Questions & Answers 1 12-21-2009 04:09 PM
running command remotely to populate local variable hcclnoodles Shell Programming and Scripting 3 11-20-2008 10:02 AM
Remotely executing awk command bishweshwar Shell Programming and Scripting 1 07-14-2007 05:20 PM



All times are GMT -4. The time now is 12:30 PM.