Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com From: "Olle Larsson" To: "CYGWIN mail list" Subject: ownership after file creation Date: Mon, 22 Feb 1999 13:53:21 -0600 Message-ID: <000b01be5e9c$ffc59300$72ad8992@violin.mcs.anl.gov> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 Importance: Normal X-Mimeole: Produced By Microsoft MimeOLE V4.72.3155.0 Hi, I experienced a bizarre problem, originating in that a file created under Cygwin B20.1 is given the admin group as owner if my user account is part of the administrator group (NT4.0, SP4). I looked through the email archives and found an explanation to the phenomenon (below). Are there any plans on some additional functionality in the CygWin libraries that I can make use of to overcome this problem? Meanwhile, I guess inserting chgrp(filename,geteuid(),getegid()); everywhere a file is created will have to do... Thanks, /Olle From http://www.cygnus.com/ml/gnu-win32/1998-Sep/0162.html : This is a win32-ism. When a user who is a member of the BUILT-IN Administrators group creates a file, ownership of the file is set to the BUILT-IN Administrators group. The Win32 API layer is doing this, not the NT kernel and not NTFS. -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com