This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: group ownership of files

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
-rwxrwxrwx    1 kiwhan   ????????       52 May 29 18:11
-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:

Backup Operators:S-1-5-32-551:551:
Power Users:S-1-5-32-547:547:
Debugger Users:S-1-5-21-1606980848-308236825-725345543-1000:1000:
VS Developers:S-1-5-21-1606980848-308236825-725345543-1001:1001:

Here is a copy of passwd:

ASPNET:unused_by_nt/2000/xp:1002:513:ASP.NET Machine

Thanks for your help.


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.
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?
     |\      _,,,---,,_
ZZZzz /,`.-'`'    -.  ;-;;,_
    |,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: Problem reports: Documentation: FAQ:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]