Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Important file group membership "bug" (if you upgrade from Tiger)

Important file group membership "bug" (if you upgrade from Tiger)
Thread Tools
Senior User
Join Date: Nov 2002
Location: US
Status: Offline
Reply With Quote
Oct 31, 2007, 10:14 PM
 
In short, in Tiger the group ID and user ID are the same. If your name is "foo", in Terminal if you type "ls -l" (sans the quotes) you'll see something like this:

...
drwxr-xr-x 6 foo foo 204 Oct 31 20:02 Desktop
...

Unfortunately Leopard now uses group "staff" for non-root users, so you should see this instead

...
drwxr-xr-x 6 foo staff 204 Oct 31 20:02 Desktop
...

The serious problem is that Finder doesn't know the group "foo" (the gid is not even in /etc/group). People have been reporting Finder crashes when trying to change file permission on any file with "(unknown)" group membership. You can find the detailed description and solution in this thread:

Apple - Support - Discussions - File permissions/users/sharing ...
(Last edited by fortepianissimo; Oct 31, 2007 at 10:49 PM. )
     
Grizzled Veteran
Join Date: Mar 2004
Status: Offline
Reply With Quote
Nov 2, 2007, 03:43 PM
 
Originally Posted by fortepianissimo View Post
In short, in Tiger the group ID and user ID are the same.
Unfortunately Leopard now uses group "staff" for non-root users.
 
Whoa whoa whoa. Hold on Nelly!. This is old news, ***in reverse***.
Cheetah, Puma and Jaguar used ``staff ' ' to group all users. Panther
did away with that scenario for the more secure paradigm (with each
user having their own group).



Originally Posted by fortepianissimo View Post
The serious problem is that Finder doesn't know the group "foo" (the gid is not even in /etc/group).
 
Well of course it wouldn't be in /etc/group. No user's group ever WAS there.
We had it in NetInfo's database... and now Leopard phased that out in favor
of Directory Services.



Originally Posted by fortepianissimo View Post
People have been reporting Finder crashes when trying to change file permission on any file with "(unknown)" group membership. You can find the detailed description and solution in this thread: <Apple Discussions>
 
Well, that kluge might bandage the Finder symptom... but it's a far cry from
being the "proper" fix. Somewhere along the upgrade path, these users didn't
get their NetInfo transferred into Directory Services. *THAT* is where the OS
[and Finder] will learn about humans and the groups they are members of.
[Not /etc/group]

Try this in Terminal:

dscl . -list /Groups PrimaryGroupID | awk '{ print $2,$1 }' | sort -n | pr -t -3 -w 108

If (human) user groups don't appear at the end of that list, then their settings
weren't carried over by the upgrade procedure. Mine sure were. (I backed up
to a disk that honored (not ignored) ownerships & permissions, erased the HD,
ran a clean install, and finished off by importing users using Migration Assistant).

-HI-
(Last edited by Hal Itosis; Nov 2, 2007 at 03:53 PM. )
-HI-
     
Grizzled Veteran
Join Date: Mar 2004
Status: Offline
Reply With Quote
Nov 2, 2007, 04:08 PM
 
Now here's a post at Apple Discussions that looks to be on the right track:
Apple - Support - Discussions - Finder crashes when attempting to add ...

[I didn't try it, since I don't need to... but at least it *looks* right.]
-HI-
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 05:06 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2