Disalbe login for service account.

This commit is contained in:
Robin Davies
2021-08-27 14:43:53 -04:00
parent dce115d6c3
commit d696284ba1
+5
View File
@@ -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);