title: how to give execute permission by umask
body: <p>is it possible to assign execute permission for a file with the help of umask.
   As I google then find umask is not just the difference between 666 and assigned permission but it converts the digits to rwx then compare with umask by converting umask to rwx and the difference is given as assigned permission.</p>
  
  <p>For example:</p>
  
  <p>File have default 666 (<code>rw-rw-rw-</code>), if umask is 002 (<code>-------w-</code>) then write permission will remove from others. while umask 001 (<code>--------x</code>), so it will have no effect on permissions.</p>
  
  <p>So how can I assign execute permission with umask?</p>