[Samba] Resetting permissions on transferred files
Piers Kittel
piers at centrefordeaf.org.uk
Thu Mar 21 14:50:14 UTC 2019
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.
Many thanks!
With kind regards - Piers
On 19/03/2019 12:00, samba-request at lists.samba.org wrote:
> If you setup Samba on the new server exactly the same as on the
> old one
> and ran rsync correctly, you should have got the same permissions.
>
> The problem you have now is that you will have to identify who owns
> what and chown/chmod the folders/files to the new correct owners:groups.
>
> It might help if you gave us more info other than the basic 'it did not
> work' you have already given us.
>
> Rowland
>
>
More information about the samba
mailing list