ownership after file creation
Olle Larsson
larsson@mcs.anl.gov
Mon Feb 22 11:53:00 GMT 1999
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
More information about the Cygwin
mailing list