Use su -c <cmd> user? -- Nathan Clemons http://www.livemocha.com The worlds largest online language learning community
On Fri, Jun 24, 2011 at 3:06 PM, ssk1287 <kulkarni.swar...@gmail.com> wrote: > I have the following exec in my manifest : > > exec { some_exec: > path => [ "/bin","/usr/bin","/usr/local/bin" ], > command => "EXECUTE COMMAND 1", > onlyif => "EXECUTE COMMAND 2", > logoutput => "on_failure" > } > > I want that the "COMMAND 1" should be executed by "USER 1" and > "COMMAND 2" should be executed by "USER 2". Is there a way to do it ? > I tried giving the "users" parameter, but that seems to apply to both > the commands. > > Thanks in advance, > > -- > 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. > > -- 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.