This is the mail archive of the
mailing list for the Cygwin project.
Re: group ownership of files
- From: Igor Pechtchanski <pechtcha at cs dot nyu dot edu>
- To: kiwhan chung <kiwhan at hotmail dot com>
- Cc: cygwin at cygwin dot com
- Date: Wed, 4 Jun 2003 21:40:53 -0400 (EDT)
- Subject: Re: group ownership of files
- Reply-to: cygwin at cygwin dot com
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:
Here is a copy of passwd:
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?
|\ _,,,---,,_ email@example.com
ZZZzz /,`.-'`' -. ;-;;,_ firstname.lastname@example.org
|,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