Ketil Froyn wrote:
>
> 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.
No, as mkdir (as of GNU fileutils 4.0 at least) uses a mode of 0755
the resulting mode would be 0750 if the umask was 0007.
//Marcus
--
-------------------------------+------------------------------------
Marcus Sundberg | http://www.stacken.kth.se/~mackan/
Royal Institute of Technology | Phone: +46 707 295404
Stockholm, Sweden | E-Mail: [EMAIL PROTECTED]