How about this? useradd -c "execute reboot" -d /root -g 0 -p initialPasswd -s /usr/bin/poweroff -o -u 0 poweroff ...all on one line, of course.