From: KOSAKI Motohiro Date: 2011-11-22T15:21:42+09:00 Subject: [ruby-core:41195] Re: IO.copy_stream creates files with restrictive permissions >>> If I understand correctly, default umask don't allow world writable >>> permission. Thus, if 0664 and 0666 make a different only when users >>> changed umask intentionally. So, I don't think it's good idea to >>> ignore it. >> >> I think the default umask is 0. >> >> http://www.bsdlover.cn/study/UnixTree/V7/usr/sys/h/param.h.html >> #define � � � CMASK � 0 � � � � � � � /* default mask for file creation */ >> >> What do you mean about default umask? > > The umask that almost every Unix distribution has always had in /etc/profile - which is 022. Right. I'm curious is there umask=0 platform in _modern_ OSs.