Web lists-archives.com

umask problem: wrong permissions for new files




cygwin umask does not work as expected:

/tmp: uname -a; umask; rm -f zz; touch zz; ls -l zz
Linux diaspora 4.4.0-119-generic #143-Ubuntu SMP Mon Apr 2 16:08:24 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
0022
-rw-r--r-- 1 framstag users 0 Apr 20 12:00 zz

/tmp: uname -a; umask; rm -f zz; touch zz; ls -l zz
CYGWIN_NT-6.1 WIN-LS0QDOSDIBL 2.10.0(0.325/5/3) 2018-02-02 15:21 i686 Cygwin
0022
-rw-rw----+ 1 admin None 0 Apr 20 12:00 zz

Why do not have new files mode -rw-r--r-- on cygwin?



-- 
Ullrich Horlacher              Server und Virtualisierung
Rechenzentrum TIK         
Universitaet Stuttgart         E-Mail: horlacher@xxxxxxxxxxxxxxxxxxxx
Allmandring 30a                Tel:    ++49-711-68565868
70569 Stuttgart (Germany)      WWW:    http://www.tik.uni-stuttgart.de/
REF:<20180420100357.GA21217@xxxxxxxxxxxxxxxxxxxx>

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple