Map Samba4 Users to thier UNIX UID

This cheat sheet shows how to map a Samba4 user to their corresponding UNIX UID.

Check Users UID

Change the UID Mapping


  • Check your work to make sure the edit took
  • root@thesystem:~ # wbinfo --sid-to-uid S-1-5-21-1002881701-2601196197-2352697156-3105 2013
    root@thesystem:~ # 

    You should be able to consistenly access files from a samba share that is also a NFS export or a local fileystem on a UNIX-like OS without having to constantly adjust owners or use world readable and writable file persmissions.