Web lists-archives.com

Re: [Samba] Resetting permissions on transferred files




On Thu, 21 Mar 2019 14:50:14 +0000
Piers Kittel via samba <samba@xxxxxxxxxxxxxxx> wrote:

> Rowland,
> 
> Thanks for your response.  That's the issue, I'm not sure what other 
> details I can give that would be helpful in this situation!  How do I 
> identify who owns what and how do I propogate this over?  I'm aware
> how to do chmod/chown and find out the uid for Linux users, but I'm
> not sure how it works for Samba - does Samba use the same uid as
> Linux users, or does Samba retain its own list?  It's the exact same
> server setup as I previously discussed.
> 
> Looking up pdbedit -L -v gives the following values for my username
> (kit):
> 
> Old server:
> Unix username:        kit
> NT username:
> Account Flags:        [U          ]
> User SID: S-1-5-21-3690213834-1721161859-1610588051-1116
> Primary Group SID: S-1-5-21-3690213834-1721161859-1610588051-513
> 
> New server:
> Unix username:        kit
> NT username:
> Account Flags:        [U          ]
> User SID: S-1-5-21-456595659-2484967225-2845901235-1104
> Primary Group SID: S-1-5-21-456595659-2484967225-2845901235-513
> 
> As you can see, both SIDs don't match.  how do I synchronise the
> two? I'm happy to do it manually, there's only 5 users.
> 

That explains it a bit further, Samba (and Windows) uses the SID to
identify the domain, so user 'kit' with the SID-RID of
S-1-5-21-3690213834-1721161859-1610588051-1116 isn't the same user as
'kit' with the SID-RID of S-1-5-21-456595659-2484967225-2845901235-1104

That is from a Windows perspective, how Unix treats them depends on
how you are using Samba, so I think it is time we saw your smb.conf, so
please post it.

Rowland
 

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba