On Thu, 19 Mar 2009 18:11:25 +0500, Mike Renfro <ren...@tntech.edu> wrote:
This will change root passsword)))
>
> nmay wrote:
>
>> When I adds this (exec { "/usr/bin/chpass -p $1$HvjTWzzz$jF.G/
>> mEbh7IOtpCdUPUTO1 pt_":}) in configs so that I`ll have in logs: debug:
>> Executing '/usr/bin/chpass -p $1$HvjTWzzz$jF.G/mEbh7IOtpCdUPUTO1 pt_'
>> notice: //Node[hostname]/virt_users/pt_/Exec[/usr/bin/chpass -p
>> $1$HvjTWzzz$jF.G/mEbh7IOtpCdUPUTO1 pt_]/returns: executed successfully
>> BUT in /etc/master.passwd : "pt_:.G/
>> mEbh7IOtpCdUPUTO1:10006:10006::0:0::/home/pt_:/bin/bash"
>>
>> And now question )
>> How can I call exec and be sure that exec will not cut my string?
>
> Tried quoting or escaping the $ characters? "chpass -p '$1$foo$bar
> pt_'", for example?
>
>



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to