From d696284ba1f9e81fa0e63516149b04b04a0a68de Mon Sep 17 00:00:00 2001 From: Robin Davies Date: Fri, 27 Aug 2021 14:43:53 -0400 Subject: [PATCH] Disalbe login for service account. --- src/ConfigMain.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ConfigMain.cpp b/src/ConfigMain.cpp index 2ed01f5..d765513 100644 --- a/src/ConfigMain.cpp +++ b/src/ConfigMain.cpp @@ -172,6 +172,11 @@ void Install(const std::filesystem::path &programPrefix, const std::string endpo { // throw PiPedalException("Failed to create service account."); } + // lock account for login. + SysExec("passwd -l " SERVICE_ACCOUNT_NAME); + + + // Add to audio groups. SysExec(USERMOD_BIN " -a -G jack " SERVICE_ACCOUNT_NAME); SysExec(USERMOD_BIN " -a -G audio " SERVICE_ACCOUNT_NAME);