This is the mail archive of the cygwin@sourceware.cygnus.com
mailing list for the Cygwin project. See the Cygwin
home page for more information.
[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index] [Subject Index] [Author Index] [Thread Index]
ownership after file creation
- To: "CYGWIN mail list" <cygwin@sourceware.cygnus.com>
- Subject: ownership after file creation
- From: "Olle Larsson" <larsson@mcs.anl.gov>
- Date: Mon, 22 Feb 1999 13:53:21 -0600
- Delivered-To: listarch-cygwin@sourceware.cygnus.com
- Delivered-To: mailing list cygwin@sourceware.cygnus.com
- Importance: Normal
- Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
- Sender: cygwin-owner@sourceware.cygnus.com
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@sourceware.cygnus.com