Explain why folder's permissions differ depending on HOW user is accessing server AFP vs SSH
Posted
by Meltemi
on Server Fault
See other posts from Server Fault
or by Meltemi
Published on 2010-05-22T00:22:42Z
Indexed on
2010/05/22
0:32 UTC
Read the original article
Hit count: 721
Hoping someone can explain what is probably fairly obvious...but confuses me.
Imagine two users with admin privileges on our server (Mac OS X Server 10.5). Call them joe & bob.
both users are members of these groups:
Staff Group ID: 20
Workgroup Group ID: 1025
Shared folder "devfolder" has sharing set as so:
POSIX:
Owner: joe read & write
Group: admin read & write
Other no access
ACL:
Workgroup Allow Read & write
Question is why when looking at same folder does the ownership appear to change depending on who's doing the looking?!? Both looking at same folder on the server:
From Joe's perspective:
xserve:devfolder joe$ ls -l
drwxrwxr-x 6 joe workgroup 204 May 20 19:32 app
drwxrwxr-x 9 joe workgroup 306 May 20 19:32 config
drwxrwxr-x 3 joe workgroup 102 May 20 19:32 db
drwxrwxr-x 3 joe workgroup 102 May 20 19:32 doc
drwxrwxr-x 3 joe workgroup 102 May 20 19:32 lib
And from Bob's perspective (folder mounted on his machine via AFP):
bobmac:devfolder bob$ ls -l
drwxrwxr-x 6 bob _bob 264 May 20 19:32 app
drwxrwxr-x 9 bob _bob 264 May 20 19:32 config
drwxrwxr-x 3 bob _bob 264 May 20 19:32 db
drwxrwxr-x 3 bob _bob 264 May 20 19:32 doc
drwxrwxr-x 3 bob _bob 264 May 20 19:32 lib
Now if Bob connects to server via SSH then his output is identical to Joe's, as expected.
Can anyone tell me what the client is doing in this case and what should be expected when bob creates or updates files in this folder? What tools do I have to better understand this from the command line? Is this normal? Perhaps a "cleaner" way that wouldn't be confusing with "bob _bob"?!?
© Server Fault or respective owner