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
Script to Check for Unix/Linux Passwords lucknowm Shell Programming and Scripting 1 05-29-2008 09:08 PM
not null cheking of an argument in perl ammu Shell Programming and Scripting 4 06-05-2007 09:58 AM
Limitations of awk? Good idea? Bad idea? yongho Shell Programming and Scripting 2 06-08-2005 05:18 PM
Perl script - changing passwords thehoghunter Shell Programming and Scripting 3 05-03-2002 10:11 AM
Changing Users Passwords Via Script? PJolliffe UNIX for Advanced & Expert Users 3 04-10-2002 08:54 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-17-2008
bullz26 bullz26 is offline
Registered User
  
 

Join Date: Feb 2008
Posts: 78
Thumbs down idea for script - cheking passwords

Hi All,

I am looking for scripts where i need check normal user password and root password for more 100 servers from single server...!


let me explin it what exacltly i need...!

i need to do password audit for more than 600 boxes...

for one normal user and root password also... Just login to all the server and checking the passwords whether its working or not

u can guess i how boring job is this..!

just i need a script for this..! could some one help me for this...?
  #2 (permalink)  
Old 03-17-2008
drl's Avatar
drl drl is offline Forum Advisor  
Registered User
  
 

Join Date: Apr 2007
Location: Saint Paul, MN USA / BSD, CentOS, Debian, OS X, Solaris
Posts: 699
Hi.

I would probably use expect for this. It's not a trivial program to learn, but it seems right for this task. There is a long man page, and also a book from O'Reilly, Exploring Expect, by Don Libes ... cheers, drl
  #3 (permalink)  
Old 03-18-2008
bullz26 bullz26 is offline
Registered User
  
 

Join Date: Feb 2008
Posts: 78
Could some one help me on this...?
  #4 (permalink)  
Old 03-18-2008
joeyg's Avatar
joeyg joeyg is offline Forum Staff  
modérateur
  
 

Join Date: Dec 2007
Location: Home of 17-time world champion Boston Celtics
Posts: 1,311
Question What are you trying to accomplish?

Are you saying that there are common passwords for root and a generic user on over 600 of your servers? And, that you want to embed them in a script?

So, something like:

Code:
while read zf
  do
   rlogin $zf -l root
   echo "logged into $zf as root"
   rlogin $zf -l any_user
   echo "logged into $zf as any_user"
done < list_servers
  #5 (permalink)  
Old 03-18-2008
sysgate's Avatar
sysgate sysgate is offline Forum Advisor  
Unix based
  
 

Join Date: Nov 2006
Location: Bulgaria
Posts: 1,318
I think you've asked the same question before, please read the answers there, or post more info.
  #6 (permalink)  
Old 03-21-2008
bullz26 bullz26 is offline
Registered User
  
 

Join Date: Feb 2008
Posts: 78
Plz help me..! password

Hi All,

What i want is need to check the passwords whether its working or not..

if its wirking..! "working"
else "not working"

through script for almost 600 servers

plz some one help me..!
Sponsored Links
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 07:53 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
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