Re: [Spacewalk-list] change root password for all machines in a group

2010-02-04 Thread Ian Forde
On Wed, 2010-02-03 at 21:58 -0600, Daniel Wittenberg wrote: Could you just push a script to /etc/cron.daily so it'll run auto, and have it replace the md5 crypted pass in /etc/shadow? Then you don't have to pass anything in the clear ? Technically, you'd want to use an 'at' job rather

Re: [Spacewalk-list] change root password for all machines in a group

2010-02-03 Thread Edwind Richzendy Contreras Soto
2010/2/4 Michiel van Es michi...@info.nl: Hi, Is it possible to change the root password on all machines in a group? We want to change the root password for al lot of systems, we thought perhaps is spacewalk of some use (since you can install packages, reboot the machines) Is such an

Re: [Spacewalk-list] change root password for all machines in a group

2010-02-03 Thread Jeffrey Watts
I think he means /etc/shadow. There are several approaches, one would be to script the 'passwd' command, using expect or something like it. The downside is that you'll need to have the password in plain text in the script. You could then use Spacewalk to run the script remotely. This is

Re: [Spacewalk-list] change root password for all machines in a group

2010-02-03 Thread Edwind Richzendy Contreras Soto
2010/2/4 Jeffrey Watts jeffrey.w.wa...@gmail.com: I think he means /etc/shadow. Sorry, my mistake, really is a /etc/shadow can send to execute in all machines ( how root ): echo fedora | passwd -d root /dev/null and shall have the root password fedora   There are several approaches, one

Re: [Spacewalk-list] change root password for all machines in a group

2010-02-03 Thread Colin Coe
Shouldn't this be echo 'new_password' | passwd --stdin root You could do this simply with a remote command via the SSM. Just remember that this will be in the spacewalk events for those servers so if you have people with access to spacewalk that shouldn't know the password, they'll be able to

Re: [Spacewalk-list] change root password for all machines in a group

2010-02-03 Thread Ian Forde
On Thu, 2010-02-04 at 10:14 +0800, Colin Coe wrote: Shouldn't this be echo 'new_password' | passwd --stdin root You could do this simply with a remote command via the SSM. Just remember that this will be in the spacewalk events for those servers so if you have people with access to

Re: [Spacewalk-list] change root password for all machines in a group

2010-02-03 Thread Daniel Wittenberg
Could you just push a script to /etc/cron.daily so it'll run auto, and have it replace the md5 crypted pass in /etc/shadow? Then you don't have to pass anything in the clear ? Dan On Feb 3, 2010, at 9:52 PM, Ian Forde wrote: On Thu, 2010-02-04 at 10:14 +0800, Colin Coe wrote: Shouldn't

Re: [Spacewalk-list] change root password for all machines in a group

2010-02-03 Thread Jeffrey Watts
I would hope that the person running the Spacewalk/Satellite server was competent enough to test out changes to shadow before pushing them... If the person running your management server is careless you've got bigger problems. Jeffrey. On Wed, Feb 3, 2010 at 10:08 PM, Colin Coe