Linux SMB share on Windows causes Issue with Git
Linux commands
pdbedit -v -u arjan
net getlocalsid
net setlocalsid "S-1-5-21-1560130494-3199697218-3152995333"
Windows commands
wmic useraccount get name,sid
Get-Acl "<path_to_shared_file>" | Format-List
Linux Samba User Mapping
[global]
username map = /etc/samba/smbusers
Example of file /etc/samba/smbusers:
john = "John Smith" jsmith john.smith
root = administrator admin