diff --git a/debian-pkg/debian/tinypilot.postinst b/debian-pkg/debian/tinypilot.postinst index 4c0161065..e6964f990 100755 --- a/debian-pkg/debian/tinypilot.postinst +++ b/debian-pkg/debian/tinypilot.postinst @@ -21,6 +21,9 @@ getent group "${TINYPILOT_GROUP}" > /dev/null || \ # adduser is idempotent, so we don't need to check existence first. adduser \ --system \ + `# We have to specify a shell to override the default /usr/sbin/nologin, ` \ + `# which prevents us from executing commands through "sudo su".` \ + --shell /bin/bash \ --ingroup "${TINYPILOT_GROUP}" \ --home "${TINYPILOT_HOME_DIR}" \ "${TINYPILOT_USER}"