On Sat, 16 Oct 1999, Marcus Sundberg wrote:
> Andrew Apted wrote:
> > Don't know about my system (Linux, Libc5), my umasks are 007 (normal
> > user) and 022 (root), but are you suggesting that the autoconf/etc
> > guff does not take umask into account and will fuck up if they are
> > different from some "standard" value (which is news to me) ?
>
> They just do a plain mkdir, which should be subject to normal umask
> processing. Considering that my mkdir uses a mode of 0755 I find it
> strange that you could get 0770 regardless of your umask.
If Andrew's umask is 007 as normal user, and he does a su (ie. not a
'su -'), then the umask will still be 007, no? If this is so, mkdir will
then make dirs with mode 770. Moral: use 'su -' instead of only su.
--
Ketil Froyn The probability of someone
University of Oslo watching you is proportional
Norway to the stupidity of your action.