Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs Date: Wed, 4 Jun 2003 21:40:53 -0400 (EDT) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: kiwhan chung cc: cygwin AT cygwin DOT com Subject: Re: group ownership of files In-Reply-To: Message-ID: Importance: Normal MIME-Version: 1.0 Content-Type: TEXT/PLAIN; FORMAT=flowed; charset=US-ASCII Content-ID: 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 AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT 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 -- 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/