LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-15-2012, 02:53 PM   #1
walkerl
LQ Newbie
 
Registered: May 2012
Posts: 1

Rep: Reputation: Disabled
PDSH to manage multiple servers


I hope this is in the correct place.
I am in a new enviroment that has about 50-60 Linux boxes and prior to me getting here, they would change the root password by logging into each box and changing the password....ugh!

I trying to setup on server which will have ssh client keys for password less access to all of the servers and on this box. I want to run the pdsh command to change the root passwd. We did this at a previous employer, but it was in place when I got there,so I'm not sure how it was done.

I currently have keys in place on a test box and can login, without issue, but when I try to do "pdsh -w machinename passwrd root" it just hangs... I'm sure I'm doing something wrong.
 
Old 05-15-2012, 07:00 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Since you are only connecting to a single machine, use ssh directly. (only one machine listed after -w argument)
Code:
ssh root@machine 'passwd root'
It would be better to log into the machine as your regular user. and then su'ed to root. Changing the root password could lock you out, so it may not be a task to automate. Changing passwords, or editing sshd_conf, or changing rsa/dsa keys, you want to keep your original session open, and try logging in on a second session to test your changes.

As an aside, you might want to look at using cf engine to centrally manage 50 hosts.
 
  


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
multiple X-servers, multiple graphics adapters, single-seat (kind of tutorial) bluebox Linux - Desktop 6 06-07-2017 08:20 AM
Dual Apache Servers, one for fail over - how to manage at network level bskrakes Linux - Networking 2 07-10-2009 02:36 PM
how do servers manage client in linux heygokul Linux - Newbie 3 01-04-2009 03:18 AM
Using NIS to manage logins across my servers? Swakoo Linux - Server 2 01-22-2008 11:40 PM
Multiple Blade servers booting from multiple disk drives simultaneously NGC_cheryl Linux - Enterprise 0 11-26-2007 08:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:59 AM.

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