idea for script - cheking passwords


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting idea for script - cheking passwords
# 1  
Old 03-17-2008
PHP 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... Smilie

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  
Old 03-17-2008
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  
Old 03-18-2008
Could some one help me on this...?
# 4  
Old 03-18-2008
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  
Old 03-18-2008
I think you've asked the same question before, please read the answers there, or post more info.
# 6  
Old 03-21-2008
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..!
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

I have no idea what is wrong with my simple script.

I am doing a simple "recycle bin" script. It is to check and see if the directory .TRASH exists within the home directory. If not then it makes the directory then appends a date and time to file and then finally moves the file in. However, when I run this script, it is not making the directory as... (5 Replies)
Discussion started by: iamdeman
5 Replies

2. UNIX for Advanced & Expert Users

When did UNIX start using encrypted passwords, and not displaying passwords when you type them in?

I've been using various versions of UNIX and Linux since 1993, and I've never run across one that showed your password as you type it in when you log in, or one that stored passwords in plain text rather than encrypted. I'm writing a script for work for a security audit, and two of the... (5 Replies)
Discussion started by: Anne Neville
5 Replies

3. Solaris

Changing Passwords with a script.

We are real strict when it comes to passwords. Every 60 days the admins have to change passwords on all of the accounts. And there is pretty strict enforcement of the type of passwords chosen. This is a tedious and monotonous job. Ww don't use NIS or LDAP, so this has to be done on each machine. ... (5 Replies)
Discussion started by: brownwrap
5 Replies

4. Shell Programming and Scripting

need a new idea for a script

Hi all, I now have project in UNIX Solaris and I want to have some new ideas to execute it, so I hope you help me finding new ideas in scripting or some infrastructure .bye (1 Reply)
Discussion started by: hard_revenge
1 Replies

5. Shell Programming and Scripting

script for changing passwords

Hello, We are running aix 5.3. We're looking for a script that can change passwords, taking 2 arguments ( old password, new password ). I am wondering if this can be done with a here document, or some generic scripting method. Or, if I would have to download expect. Alternatively I wonder... (3 Replies)
Discussion started by: fwellers
3 Replies

6. Shell Programming and Scripting

Bash script idea using cUrl -- possible?

I have an alias already in my .bash_profile to download files using cUrl's -o (output to file, user provides the file name) option. I find I'm using it quite a bit, so I wanted to write a script to run "curl -o", taking the necessary inputs - file name and URL from which to download - and then... (3 Replies)
Discussion started by: SilversleevesX
3 Replies

7. Shell Programming and Scripting

Script Idea's / Help

Hi there, I'm pretty new to scripting and wondering if anyone had any idea's, scripts or snippets on how I can do the following. I basically want a shell script that will look at all the files in a directory and find all the names and addresses in them then output them to the screen nicely... (12 Replies)
Discussion started by: mrpugster
12 Replies

8. Shell Programming and Scripting

not null cheking of an argument in perl

Hi, I have to check whether an argument say $ARGV is not null in an if operator. Please let me know the operator. It would be great if you write a psuedo code. Thanks in advance Ammu (4 Replies)
Discussion started by: ammu
4 Replies

9. Shell Programming and Scripting

Limitations of awk? Good idea? Bad idea?

Keeping in mind that I'm relatively comfortable with programming in general but very new to unix and korn/bourne shell scripts.. I'm using awk on a CSV file, and then performing calculations and operations on specific fields within specific records. The CSV file I'm working with has about 600... (2 Replies)
Discussion started by: yongho
2 Replies
Login or Register to Ask a Question