owner/group of files confused

Jason Zions jason_zions@interix.com
Mon Sep 7 18:17:00 GMT 1998

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.

Jason Zions
Softway Systems Inc., http://www.interix.com
Interix: makes an NT system look an awful lot like a UNIX system

-----Original Message-----
From: Matthew O. Persico [ mailto:mpersico@erols.com ]
Sent: Saturday, September 05, 1998 9:49 PM
To: gnu-win32@cygnus.com
Subject: owner/group of files confused


I have a weird situation:

The output of mkpasswd -l is this:

donna::1001:513:Donna M. Persico::/bin/sh
matthew::1000:513:Matthew O. Persico::/bin/sh

and is the contents of /etc/passwd

The output of mkgroup -l is:


and is the contents of /etc/group

The output of mkpasswd -g is this:

Backup Operators::551:0:::
Power Users::547:0:::

and is the contents of nothing.

I am logged into NT 4.0 SP3 as matthew. When this account 'touch'es a
new file and the account is set up under NT's administration tools as
being in the Users group, the new file is owned by matthew.
Unfortunately, because of some crufty piece of security software I need
for remote loging into work, I must also put 'matthew' in the NT
Administrators group, again using NT's user admin tools. After I do
that, when the account 'matthew' 'touch'es a file, is it owned by user

Now, there is no 544 user, and no 544 group as defined by /etc/group BUT
there is a 544 de-facto group snarfed from the NT view of things, as
evidenced by the fact the mkpasswd -g output.

It appears that the code that assigns ownership to filesystem objects is
confused vis-a-vis the multiple groups that the user is in in the NT
world, the user account itself and the /etc files.

Any suggestions?

#!/usr/bin/perl -- Matthew O. Persico
print "Just Another Perl Neophyte\n";
## Simplicity is a blessing when you're 
## supporting the program at 2AM
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

More information about the Cygwin mailing list