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?


-- 
Mike Renfro  / R&D Engineer, Center for Manufacturing Research,
931 372-3601 / Tennessee Technological University -- ren...@tntech.edu

--~--~---------~--~----~------------~-------~--~----~
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