sudo command remotely | Unix Linux Forums | Shell Programming and Scripting

  Unix/Linux Go Back    


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

sudo command remotely

Shell Programming and Scripting


Tags
unix commands

Closed Linux or Unix Question    
 
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: 12 October 2014, 10:11 AM EDT
Location: H3X
Posts: 2,151
Thanks: 10
Thanked 118 Times in 111 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 Linux or Unix Question

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Unix or Linux Image 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 06:54 AM
ssh foo.com sudo command - Prompts for sudo password as visible text. Help? fluoborate Shell Programming and Scripting 9 11-02-2011 03: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 05:09 PM
running command remotely to populate local variable hcclnoodles Shell Programming and Scripting 3 11-20-2008 11:02 AM
Remotely executing awk command bishweshwar Shell Programming and Scripting 1 07-14-2007 06:20 PM



All times are GMT -4. The time now is 08:00 PM.