UNIX Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsUNIX Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old July 15th, 2004, 10:40 AM
meenac meenac is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 17 meenac User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 m 13 sec
Reputation Power: 0
script to copy a file on multiple machines

Hi All,

I need to copy a startup file in /etc/rc2.d directory in approximately 70 sun workstations. I would like to write a korn shell script for this.

Since /etc/rc2.d has write permissions only to root, I need to login as root. How do I login to a remote host within a script?

Any help would be appreciated.

thanks,
Meena

Reply With Quote
  #2  
Old July 15th, 2004, 12:28 PM
jim mcnamara jim mcnamara is offline
......@.........
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jun 2004
Posts: 1,307 jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 4 h 28 m 57 sec
Reputation Power: 48
Remote permissions or security policy may already be in your way. rcp is a security hole.

Investigate:
Code:
rcp   user_name@hostname:pathname/filename \
        user_name@hostname2:pathname/filename


your company policy on remote access for rcp may be be a problem.

You can use FTP, remsh or rlogin as well to do what you need. Chances are, because of security, that it may be easier to do this manually unless you will have to do this often.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsUNIX Help > script to copy a file on multiple machines


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway