Add script to add new user debug for remote debugging
[remote-debug.git] / add-user.sh
diff --git a/add-user.sh b/add-user.sh
new file mode 100755 (executable)
index 0000000..f140ec5
--- /dev/null
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+# Add a new user named debug, with password hard2guess for remote debug
+# the suanzi-support daemon will be running as this user
+# run : sudo ./add-user.sh
+
+USER="debug"
+PASS="hard2guess"
+
+echo "Create $USER user"
+useradd -m "${USER}" || exit 1
+
+echo "set the password of $USER"
+echo -e "${PASS}\n${PASS}" | passwd "$USER"  || exit 1
+
+echo "Done"
+