From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24088 invoked by alias); 20 Apr 2018 12:47:33 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 125958 invoked by uid 89); 20 Apr 2018 12:46:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=Seven, Everyone, H*F:D*nl, junk X-HELO: lb1-smtp-cloud7.xs4all.net Received: from lb1-smtp-cloud7.xs4all.net (HELO lb1-smtp-cloud7.xs4all.net) (194.109.24.24) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 20 Apr 2018 12:45:57 +0000 Received: from tmp.X1QT3g41mC ([83.162.234.136]) by smtp-cloud7.xs4all.net with ESMTPSA id 9VQ6fM79o8U079VQ7fbA8t; Fri, 20 Apr 2018 14:45:44 +0200 Date: Fri, 20 Apr 2018 12:47:00 -0000 Message-ID: <5cdf9901f2c50f2fa15d7ce5c01c8fdf@smtp-cloud7.xs4all.net> From: Houder Reply-To: cygwin@cygwin.com To: cygwin@cygwin.com Subject: Re: umask problem: wrong permissions for new files References: <20180420100357.GA21217@rus.uni-stuttgart.de> In-Reply-to: <20180420100357.GA21217@rus.uni-stuttgart.de> Content-Type: text/plain; charset=UTF-8; format=fixed User-Agent: mua.awk 0.99 X-CMAE-Envelope: MS4wfN+4W4UUnamUgl0MvJg8QYwpaMSYa5DwdD1F2D6RhXtWZVBG65ErYYns7Dnbz+OCukbkTzBhVwzV5ocUU1E10AFeoreO77NsIP6/lBIACLkBZarLbPwA jifTzABvYt6/GV20wkzIFdeCZyb2upmzmhAtmJ0mc6GmYVQTqpdk299BCiJxDmSysn+0N1WD2N5aMQ== X-SW-Source: 2018-04/txt/msg00248.txt.bz2 On Fri, 20 Apr 2018 12:03:57, Ulli Horlacher wrote: > 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? They do. 64-@@ umask 0022 64-@@ ls -l /tmp total 0 -rw-r--r-- 1 Henri None 0 Apr 20 14:37 junk 64-@@ touch /tmp/junk 64-@@ ls -l /tmp total 0 -rw-r--r-- 1 Henri None 0 Apr 20 14:39 junk 64-@@ getfacl /tmp # file: /tmp # owner: Henri # group: None # flags: --t user::rwx group::rwx other:rwx default:user::rwx default:group::r-x default:other:r-x 64-@@ icacls e:/Cygwin64/tmp e:/Cygwin64/tmp Seven\Henri:(F) Seven\None:(RX,W) Everyone:(RX,W) NULL SID:(RD) CREATOR OWNER:(OI)(CI)(IO)(F) CREATOR GROUP:(OI)(CI)(IO)(RX) Everyone:(OI)(CI)(IO)(RX) Successfully processed 1 files; Failed processing 0 files Remember, it is Windows ... So you have to work a little harder :-) Henri -- 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