You can specify a range with idmap config * : range 1000-9000000000 The minimum and maximum id for the range are 32bit unsigned integers. So the above setting in smb.conf overflows the value read with sscanf(). We should document the maximum value you can specify in the idmap manpage at least which is 2^32-1 as the maximum (we start from 0).