public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* ownership after file creation
@ 1999-02-22 11:53 Olle Larsson
  1999-02-28 23:02 ` Olle Larsson
  0 siblings, 1 reply; 2+ messages in thread
From: Olle Larsson @ 1999-02-22 11:53 UTC (permalink / raw)
  To: CYGWIN mail list

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* ownership after file creation
  1999-02-22 11:53 ownership after file creation Olle Larsson
@ 1999-02-28 23:02 ` Olle Larsson
  0 siblings, 0 replies; 2+ messages in thread
From: Olle Larsson @ 1999-02-28 23:02 UTC (permalink / raw)
  To: CYGWIN mail list

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-02-28 23:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-02-22 11:53 ownership after file creation Olle Larsson
1999-02-28 23:02 ` Olle Larsson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).