>
> Message: 3
> Date: Tue, 26 Jun 2012 07:17:52 -0400
> From: Lissa Valletta <[email protected]>
> Subject: Re: [xcat-user] Changing passwords with xCat
> To: xCAT Users Mailing list <[email protected]>
> Cc: [email protected]
> Message-ID:
> <
> of476f3ecd.604f9756-on85257a29.003c84a8-85257a29.003e0...@us.ibm.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
>
> The only problem with using chpasswd or passwd, is they will not work with
> xdsh or psh because of the prompting, so if you have a lot of nodes you
> will have to do them one at a time with ssh. One way to get it to run
> with the parallel command is to create a script with the following line or
> something like it. I have been unable to get it to work on the command
> line.
> $cmd = qq~echo $password | passwd testuser --stdin~;
>
> Lissa K. Valletta
> 2-3/T12
> Poughkeepsie, NY 12601
> (tie 293) 433-3102
>
> I get it working with (password in a variable to allow symbols, and double
quote in the xdsh command), e.g:
NPASS='my!New!PassWord'
xdsh all "echo $NPASS | chpasswd -m"
Luis
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user