This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: group ownership of files
- From: "kiwhan chung" <kiwhan at hotmail dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 05 Jun 2003 07:56:33 -0700
- Subject: Re: group ownership of files
- Bcc:
Igor,
Thank you for replying. Appending ' mkgroup -d' output did not help at all.
I think I need to explain a bit. The group and mkpasswd files are
modified by me in vain attempt to get the group ownership sync. It
obviously did not solve my problem.
The unmodified output of 'mkpasswd -l -c' is:
SYSTEM:S-1-5-18:18:
None:S-1-5-21-1606980848-308236825-725345543-513:513:
Administrators:S-1-5-32-544:544:
Backup Operators:S-1-5-32-551:551:
Guests:S-1-5-32-546:546:
Power Users:S-1-5-32-547:547:
Replicator:S-1-5-32-552:552:
Users:S-1-5-32-545:545:
Debugger Users:S-1-5-21-1606980848-308236825-725345543-1000:1000:
VS Developers:S-1-5-21-1606980848-308236825-725345543-1001:1001:
mkgroup_l_d:S-1-5-32-544:10544:
The unmodified out of 'mkgroup -l -c' is:
SYSTEM:*:18:544:,S-1-5-18::
Administrators:*:544:544:,S-1-5-32-544::
Administrator:unused_by_nt/2000/xp:500:513:U-ABPC\Administrator,S-1-5-21-1606980848-308236825-725345543-500:/home/Administrator:/bin/bash
ASPNET:unused_by_nt/2000/xp:1002:513:ASP.NET Machine
Account,U-ABPC\ASPNET,S-1-5-21-1606980848-308236825-725345543-1002:/home/ASPNET:/bin/bash
Guest:unused_by_nt/2000/xp:501:513:U-ABPC\Guest,S-1-5-21-1606980848-308236825-725345543-501:/home/Guest:/bin/bash
kiwhan:unused_by_nt/2000/xp:11900:10544:kiwhan,U-NIS\kiwhan,S-1-5-21-494817750-61625731-1489575960-1900:/cygdrive/c:/bin/bash
BTW, what do * as in 'SYSTEM:*:' and 'kiwhan:unused_by_nt/2000/xp:' mean?
Thank you.
---------------------------------------------------------------
We are what we repeatedly do.
Excellence, then, is not an act, but a habit. Aristotle
===-505-665-5079-=======================-kiwhan@hotmail.com-===
----Original Message Follows----
From: Igor Pechtchanski <pechtcha@cs.nyu.edu>
Reply-To: cygwin@cygwin.com
To: kiwhan chung <kiwhan@hotmail.com>
CC: cygwin@cygwin.com
Subject: Re: group ownership of files
Date: Wed, 4 Jun 2003 21:40:53 -0400 (EDT)
On Wed, 4 Jun 2003, kiwhan chung wrote:
I have been using Cygwin for about a month now without any problem. My
computer crashed and when I rebooted, even though it started at my home
directory, now the home was defined as '/cydgrive/c/cygwin/home/kiwhan' and
not just '/home/kiwhan' I scratched my head and poked around and found out
that my passwd file was corrupted somehow and
mkpasswd -l -c > /etc/passwd
mkgroup -l -c > /dtc/group
made everything ok.
Now, I lost group ownership to the files I previously made. What I'd like
to know is:
Is there any way to have all the files grouped in one group? After many
tries, I now have ????? for group name, and that's all I can get.
Currently, my files look like:
-rw-r--r-- 1 kiwhan ???????? 16092 May 22 15:46 cygcheck.txt
-rw-r--r-- 1 kiwhan Administ 27272 Jun 4 16:35 cygcheck2.txt
-rw-r--r-- 1 kiwhan ???????? 4737 Jun 3 16:35 declare.txt
-rw-rw-rw- 1 kiwhan ???????? 4443 Jun 4 12:25 declare2.txt
drwxr-xr-x+ 3 kiwhan ???????? 0 May 30 14:37 geant451
-rwxrwxrwx 1 kiwhan ???????? 988 May 27 15:50 kded.exe.stackdump
-rwxrwxrwx 1 kiwhan ???????? 1085 May 27 15:50
kdeinit.exe.stackdump
-rwxrwxrwx 1 kiwhan ???????? 52 May 29 18:11
kdesktop.exe.stackdump
-rwxr-xr-x 1 kiwhan ???????? 685 May 27 14:24 xinitrc
The file with correct group ownership -- cygcheck2.txt -- is made after the
group ownership change, but the rest of the files that were made before the
crash indicates that they are grouped to an undefined group.
Here is a copy of group:
SYSTEM:S-1-5-18:18:
None:S-1-5-21-1606980848-308236825-725345543-513:513:
Administrators:S-1-5-32-544:544:
Backup Operators:S-1-5-32-551:551:
Guests:S-1-5-32-546:546:
Power Users:S-1-5-32-547:547:
Replicator:S-1-5-32-552:552:
Users:S-1-5-32-545:545:
Debugger Users:S-1-5-21-1606980848-308236825-725345543-1000:1000:
VS Developers:S-1-5-21-1606980848-308236825-725345543-1001:1001:
alpha:S-1-5-32-544:10544:
Here is a copy of passwd:
SYSTEM:*:18:544:,S-1-5-18::
Administrators:*:544:544:,S-1-5-32-544::
Administrator:unused_by_nt/2000/xp:500:513:U-ABPC\Administrator,S-1-5-21-1606980848-308236825-725345543-500:/home/Administrator:/bin/bash
ASPNET:unused_by_nt/2000/xp:1002:513:ASP.NET Machine
Account,U-ABPC\ASPNET,S-1-5-21-1606980848-308236825-725345543-1002:/home/ASPNET:/bin/bash
Guest:unused_by_nt/2000/xp:501:513:U-ABPC\Guest,S-1-5-21-1606980848-308236825-725345543-501:/home/Guest:/bin/bash
kiwhan:unused_by_nt/2000/xp:11900:544:kiwhan,U-NIS\kiwhan,S-1-5-21-494817750-61625731-1489575960-1900:/cygdrive/c:/bin/bash
Thanks for your help.
Kiwhan
Kiwhan,
I see your user is a domain user, and you have at least one domain group.
You may have to do an "mkgroup -d >> /etc/group", just to pull in other
domain groups. I'd bet that if you did "ls -ln cygcheck.txt", you'd see a
group id >10000, which indicates a domain group.
Igor
P.S. It'd be interesting to find out why mkgroup created two entries with
the same SID, but thought that one was a domain group... Pierre?
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha@cs.nyu.edu
ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster." -- Patrick Naughton
_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8.
http://join.msn.com/?page=features/junkmail
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/