LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 12-31-2007, 12:58 AM   #1
vaalu
Member
 
Registered: Jun 2007
Posts: 54

Rep: Reputation: 15
Post changing passwords in bulk


hey
i have obtained the root password of the network of our college computer..could some body tell me how to change the root password of all the systems simultaneously from the system i am using..as for your knowledge our college network has the same user name and password for all the computers..if any body could help me please tell me how to do it
regards
 
Old 12-31-2007, 01:11 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
Quote:
Originally Posted by vaalu View Post
hey
i have obtained the root password of the network of our college computer..could some body tell me how to change the root password of all the systems simultaneously from the system i am using..as for your knowledge our college network has the same user name and password for all the computers..if any body could help me please tell me how to do it
regards

On a basic network,I think that the password on an individual machine can be changed only by logging in to that machine as root. Are you perhaps talking about some kind of domain password?

Can you give some details about the network? (and confirm that the systems admin knows what you are doing.)
 
Old 12-31-2007, 06:15 AM   #3
ghostdog74
Senior Member
 
Registered: Aug 2006
Posts: 2,695
Blog Entries: 5

Rep: Reputation: 240Reputation: 240Reputation: 240
if your college computers all have SSH installed (or telnet service turned on), you could write scripts to automate the process of changing passwords remotely.
 
Old 01-01-2008, 12:58 AM   #4
vaalu
Member
 
Registered: Jun 2007
Posts: 54

Original Poster
Rep: Reputation: 15
yes all the computers in my college have ssh installed and i have changed the passwords of three computers by using the ssh command..but i am not much familiar with shell scripting, so could you tell me the format of a script tat can chanfe the passwords in bulk?
regards
 
Old 01-01-2008, 01:31 AM   #5
ghostdog74
Senior Member
 
Registered: Aug 2006
Posts: 2,695
Blog Entries: 5

Rep: Reputation: 240Reputation: 240Reputation: 240
here's one approach.

1) Store all your servers whose password needs to be change in a file
eg 10.10.0.1
10.10.1.2
2) in your script:

for line in open the text file for reading
do
ssh user@$line command_to_change password
done
 
Old 01-02-2008, 06:04 AM   #6
muazfarooqaslam
LQ Newbie
 
Registered: Dec 2007
Posts: 22

Rep: Reputation: 15
you can easily do this using "expect". Search on google and you will find readymade expect scripts for this.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing RHEL su passwords... bcleary Red Hat 3 06-12-2007 11:30 AM
chrooted users changing their passwords btmiller Linux - Security 2 07-16-2005 01:08 PM
Changing Passwords dboogie Linux - Newbie 2 05-02-2004 10:45 PM
Changing passwords - URGENT Lloydlec Linux - Security 1 03-16-2004 07:22 AM
Changing Passwords TheRealDeal Linux - General 3 01-20-2004 11:01 PM


All times are GMT -5. The time now is 02:57 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration