useradd -m tmp -d /home/tmp -s /bin/bash

第一个tmp是用户名,第二个tmp是用户根目录名,/bin/bash是bash环境变量