LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 11-07-2006, 08:43 AM   #1
fritzyboi
LQ Newbie
 
Registered: May 2005
Posts: 1

Rep: Reputation: 0
Talking Change root password periodically script!


Is it possible via a bash script working from one Red Hat Linux box to change the passwords on another 50 boxes?

Is there an easy way of changing multiple Red Hat Machines root password without my having to log into every single one of them.
 
Old 11-07-2006, 10:50 AM   #2
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Thats some task to do. Maybe this could work.

Make it possible that you login via ssh without having to promt a pasword. check out

http://wiki.met.tamu.edu/index.php?t...ing_a_Password

to do this.

then change the password on main machine and copy line from /etc/shadow to file.

make bash script that replaces root line from /etc/shadow with the line you saved to file. (use sed for that)

via scp copy bash and file with new password to box and

*somehow execute bash file*

last two steps with a bash script.

Dunno if its possible to remote execute a bash script, but should be. The other thing is if the hash of the shadow file will the interperted the same on all machines.

But it's worth a try
 
  


Reply



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
How could normal user obtain root password or change root password ckamheng Debian 18 02-18-2009 10:28 PM
change Root Password even if the password in the grub is also set sheelnidhi Linux - General 6 08-30-2006 07:27 AM
how do i change my root password? _leah_ Linux - Security 3 01-16-2005 03:33 PM
Password change for root? akihandyman Mandriva 1 08-25-2004 10:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 03:37 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration