The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



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

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
password MastaFue UNIX for Dummies Questions & Answers 3 05-07-2008 04:21 AM
password --help: viveksnv Red Hat 3 03-11-2008 09:05 AM
Question about ssh without password rainbow_bean AIX 2 12-03-2007 05:49 PM
SUN LOM password rvrao77 SUN Solaris 2 05-03-2007 08:55 AM
Change password by pushing encrypted password to systems benq70 UNIX for Dummies Questions & Answers 1 09-02-2005 09:08 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-26-2006
vangalli vangalli is offline
Registered User
  
 

Join Date: Jul 2006
Location: Hindusthan ( INDIA )
Posts: 18
question pn Password!!

Hi Unix gurus,
I have one question for you on passowrd:

I have one script which takes care of configuring SSH on some 200 servers. But for 200 times it prompts for password and always I enter the same password for all the 200 servers. I want to know if i can store the password in a variable or a file and whenever system prompts for the password then it must take the password value from the variable or file so that I can avoid typing the password. Please help and advice.

Warm Regards,
RK
  #2 (permalink)  
Old 09-26-2006
Yogesh Sawant's Avatar
Yogesh Sawant Yogesh Sawant is offline Forum Staff  
Part Time Moderator and Full Time Dad
  
 

Join Date: Sep 2006
Location: Rossem, Tazenda
Posts: 1,086
Quote:
Originally Posted by vangalli
I want to know if i can store the password in a variable or a file and whenever system prompts for the password then it must take the password value from the variable or file so that I can avoid typing the password
Yes, that is possible.
  #3 (permalink)  
Old 09-26-2006
vangalli vangalli is offline
Registered User
  
 

Join Date: Jul 2006
Location: Hindusthan ( INDIA )
Posts: 18
hi yogesh!!

could you please give me the syntax for that........... i need it very urgent........
  #4 (permalink)  
Old 09-27-2006
Yogesh Sawant's Avatar
Yogesh Sawant Yogesh Sawant is offline Forum Staff  
Part Time Moderator and Full Time Dad
  
 

Join Date: Sep 2006
Location: Rossem, Tazenda
Posts: 1,086
Quote:
Originally Posted by vangalli
could you please give me the syntax for that........... i need it very urgent........
That depends on how and where you wish to give password. For example, to the passwd command, to ftp, to telnet, to ssh, etc.

You may have to use Expect in some cases.
Closed Thread

Bookmarks

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:53 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0