diff --git a/Userland/Services/SystemServer/Service.cpp b/Userland/Services/SystemServer/Service.cpp index 980ab04ed4..2f8d6f57be 100644 --- a/Userland/Services/SystemServer/Service.cpp +++ b/Userland/Services/SystemServer/Service.cpp @@ -299,7 +299,7 @@ Service::Service(Core::ConfigFile const& config, StringView name) m_user = config.read_entry(name, "User"); if (!m_user.is_null()) { - auto result = Core::Account::from_name(m_user.characters()); + auto result = Core::Account::from_name(m_user.characters(), Core::Account::Read::PasswdOnly); if (result.is_error()) warnln("Failed to resolve user {}: {}", m_user, result.error()); else @@ -417,7 +417,7 @@ ErrorOr Service::determine_account(int fd) auto const directory_name = String::formatted("/proc/{}/", creds.pid); auto const stat = TRY(Core::System::stat(directory_name)); - m_account = TRY(Core::Account::from_uid(stat.st_uid)); + m_account = TRY(Core::Account::from_uid(stat.st_uid, Core::Account::Read::PasswdOnly)); return {}; }