Fix bug of known host
[remote-debug.git] / add-user.sh
1 #!/bin/bash
2
3 # Add a new user named debug, with password hard2guess for remote debug
4 # the suanzi-support daemon will be running as this user
5 # run : sudo ./add-user.sh
6
7 USER="debug"
8 PASS="hard2guess"
9
10 echo "Create $USER user"
11 useradd -m "${USER}" || exit 1
12
13 echo "set the password of $USER"
14 echo -e "${PASS}\n${PASS}" | passwd "$USER"  || exit 1
15
16 echo "Done"
17