mhonarc-users

Re: umask and mode of files created by mhonarc rw-------

1999-05-11 11:28:01
Alexandre Farcy wrote
  >  Christopher Lindsey wrote:
  >  > 
  >  > > how can i have my files set to -rwxr-xr-x (755) ?
  >  > 
  >  > When I was using the XBitHack feature of Apache with SSI I
  >  > ended up post-processing the directory that the archives were
  >  > written to; something like:
  >  > 
  >  >    (cd $rcDir ; $mhonarc -umask 022 -rcfile rc -outdir $archiveDir; \
  >  >     find $archiveDir -type f -exec chmod a+x {} \;)
  >  
  >  well that is exactly what i do now, but i don't understand why UMASK
  >  ignores the exec bit... what is the reason for this ? or is it a bug ?
...
  >  well i do "chmod 755 *.html" only from my .procmailrc.
...
  >  Alexandre
  >  --

umask doesn't ignore the exec bit.  The permissions on a new file are
set to (creationmode & ~umask) so if the exec bit is 0 in the
creation-mode setting, it will be 0 in the result.

From man page, "umask 022 removes write permission for group and other
[so] files normally created with mode 777 become mode 755; files
created with mode 666 become mode 644."

- J Waldby

<Prev in Thread] Current Thread [Next in Thread>