Hi,
I am trying to run shell script through non root user in puppet facts.
Here is my code.
* $cat cis_rhel6_check.rbrequire 'facter'*
*Facter.add("cis_rhel6_check") do setcode do %x[ sh
/tmp/cis_rhel6_check.sh ] endend*
the shell script is in
*drwxrwxrwt. 178 root root tmp*
*ls -ls /tmp/cis_rhel6_check.sh44 -rwxrwxrwx 1 root pe-puppet 43916 May 19
15:28 /tmp/cis_rhel6_check.sh*
*The issue was:*
*sh: /tmp/cis_rhel6_check.sh: No such file or directory*
*help me*
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/2ebf09a3-2924-4698-add2-ecdf1bd3fb1d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.