title: Puppet - How to chage umask setting for the previlage user
body: <p>for changing the umask setting , i had created the puppet script which insert the line "umask 0027" in the file "/etc/profile" , but it doesn't show the umask value as 0027, when we echo the umask. but when we relogin then it show the value 0027. so it take effect only after relogin.</p>
  
  <p>but we want the immediate effect of the change without relogin , so we added one more line to my puppet script as "source /etc/profile" but it doesnot work and gave the error as below</p>
  
  <p>'source /etc/profile' is not qualified and no path was specified. Please qualify the command or specify a path.</p>
  
  <p>Could somebody help me on this issue ?</p>
  
  <p>my puppet file looks like below</p>
  
  <hr>
  
  <pre><code>exec {"modify-umask-entry":
    command =&gt; "sed -i 's/umask [0-9]\{3,\}/umask 027/g' /etc/profile",
    path    =&gt; "/bin:/usr/bin/",
  }
  
  
  
  exec { "/bin/echo 'umask 027' &gt;&gt; '/etc/profile'":
         unless =&gt; "/bin/grep -Fx 'umask[\t][0-9]{3}' '/etc/profile'",
    # onlyif =&gt; "/bin/grep -i 'umask[ \t][0-9]{3}' /etc/profile | wc -w",
  }
  
  exec {"seeting_new_umask":
    command =&gt; "source /etc/profile",
  }
  </code></pre>
  
  <hr>