Home › Forums › OS X Server and Client Discussion › File Serving › SMB users and file ownership issues
- This topic has 14 replies, 9 voices, and was last updated 16 years, 7 months ago by
samxnguyen.
-
AuthorPosts
-
December 3, 2007 at 10:23 pm #370715
Steve3
ParticipantHi all,
I’m having a curious issue with my new 10.5 server installation. Here’s the whole picture:
-Brand new Quad Core Xserve
-Started as Workgroup configuration, but promoted to Advanced
-Bound to Active Directory
-Is OD Master, and the only OD server I have.We organize our file storage here a little differently than others do- I have a script that queries the database for our accounting system, and when new jobs are created in that database, a folder hierarchy is made in the format
Client
–Job Number
—-Department1
—-Department2
—-Department3I have permissions set so that users have full control of content within each DepartmentX folder, but no higher. Under AFP, everything works out exactly as we want it to.
When the same account logs in under SMB (which will only be used by my few Windows clients), I see the following symptoms:
-User could create a folder, but can’t name it differently than the default. You could make New Folder and New Folder (2), but make a folder and try to rename it, Windows responds with a cannot rename, access denied error.
-Same applies for right-click: New Text Document. Default names are acceptable, renaming isn’t allowed.
-New Folder can be opened, and written to. Files here can be saved and renamed at will.I’ve tried setting the DEfault permissions to be both “inherit from parent” and Assigning as Read and Write for everyone, with no luck.
Again, the same user accounts logging in under AFP are fine.
Does anyone have a guess what setting I have wrong here?
Thanks.
December 5, 2007 at 2:28 pm #370726mmacfall
ParticipantI am having the exact same problem…
December 5, 2007 at 7:47 pm #370733Steve3
ParticipantWell, I guess that means either
-we both made the same configuration error
or
-there’s something wrong with SMB on 10.5 Server.December 11, 2007 at 5:25 pm #370764Moofo
ParticipantI have a case open with Apple for this.
There is a bug in 10.5. ACL are not respected in the SMB shares. and worse: if a user has more than 16 groups assigned, he doesn’T get all the permissions that are assigned to him: everygroup after the 16th is ignored.
Result: SMB server is badly broken in 10.5.
If the effective permission inspector says it’s OK, it should be OK. However it’s not…
December 14, 2007 at 7:46 pm #370809Steve3
ParticipantIs running as root new in 10.5?
December 18, 2007 at 7:54 pm #370839skaffen
ParticipantNot much but just want to add that I’ve got the exact same problem on a 10.5.1 OD Master. There was mention of fixes to SMB in 10.5.1 but this problem still seems just the same. I can’t even see anything pertinent in the logs to know where to start digging.
Skaff.
January 11, 2008 at 10:36 pm #371099mooching
ParticipantI think there is also a problem in Leopard Client SMB. I can’t always connect to a SMB share on a 10.5 server from a 10.5 client, and when I can I am locked out and have no read or write permission to the folders on the share. I can connect to the same share with the same user and password from a WinXP, a 10.5 client via AFP, and a 10.4 client via AFP and SMB and the ACL’s are working. Before I upgraded our servers to Leopard we had W2K3 AD with a 10.4 OD and 10.4 clients bound to AD and OD, all users are in AD. Everything was working pretty well, I had SSO from my bound Mac Clients to any share I had access to and they would mount without having to give my password again. I then upgraded our OD to 10.5, I had to rebuild the OD master because it wouldn’t upgrade OD correctly, I was not happy about that, and a couple servers I just did an upgrade on. Now I have what appears to be the same problem for the ACL’s not being passed correctly but also appears to be a 10.5 client issue. I also lost SSO from both 10.4 or 10.5, I have to provide my password to get to access to the shares wether they are housed on a Mac or Windows server.
February 13, 2008 at 1:20 am #371489Moofo
Participant10.5.2 server does not fix the problem ๐
Dammit, when will they fix these major issues ?
February 20, 2008 at 12:58 pm #371593Creops
ParticipantI have the same problem myself.
There are even a thread on it at apple:
http://discussions.apple.com/thread.jspa?messageID=6123688&February 20, 2008 at 3:18 pm #371595Steve3
ParticipantYeah, I started that thread too. ๐
I found a workaround via the mac-os-x-Server list:
> The workaround is to append the following lines to /etc/smb.conf:
>
> [global]
> acl check permissions = no
>
> See smb.conf(8) for a detailed explanation of what Samba is trying to
> do. the problem arises because Darwin ACLs are closer to Windows ACLs
> that to POSIX ACLs, so Samba doesn’t quite get the access check
> correct on Darwin.This will tell SMB to disregard ACL’s. I’m sure there must be some drawback to that, however. But it does make the server useful for Windows clients, which is better than it is now.
February 21, 2008 at 12:40 pm #371624Creops
ParticipantWell as it does seem to somewhat solve the ACL problem, it doesn’t solve the problem with POSIX inherit of group permissions not working.
If I set it to 775 it will be 755, whatever I do! But only over SMB, AFP works fine.. as always…
April 25, 2008 at 11:56 am #372434iAlex
ParticipantHi,
Iยดm hanging here with the same problem. I have set up the server more than one time to see if I made it up.
But it still stays the same. AFP connections OK with all rights, SMB connections with fully different rights.That is not the way I could learn Mac OS X Server.
So my question is now, what is wrong with samba or am I just stupid.April 29, 2008 at 6:30 pm #372509mooching
ParticipantAfter messing with my problem some more I found that one of my users could log into the Mac 10.5.2 server via AFP and see one of the shares they had access to but not the other. The only difference I found was that in the POSIX permissions Other was set to Read only on the working one and set to None on the broken one. I set the broken one to Read only and now the ACL permissions work, they get permissions via ACL’s because they are in AD. It also solved my access privileges for SMB access, we have had to use SMB instead of AFP because for some reason in 10.5.x AFP speeds are dog slow when copying large files.
September 10, 2008 at 6:55 pm #374054samxnguyen
ParticipantI’ve been having similar problems in 10.5.4
I couldn’t figure out for the life of me why one of my users wasn’t getting all of his groups when logged into XP, and why on one share he could write but not delete files.
“acl check permissions = no” seems to have solved it.
-
AuthorPosts
- You must be logged in to reply to this topic.
Comments are closed