Did you read this post by Nigel W? "samba-tool user add two Passw0rd --uid-number=101 --gid-number=1\ --login-shell=/bin/bash --home-directory=/home/two One thing that tripped me up, --uid is for the username, --uid-number is what we are interested in."