Set uid & gid for clamav

This commit is contained in:
niten 2023-07-30 14:57:45 -07:00
parent 8b21b53e4b
commit 306087355c
1 changed files with 7 additions and 1 deletions

View File

@ -23,9 +23,15 @@ in {
users = { users = {
users.clamav = { users.clamav = {
isSystemUser = true; isSystemUser = true;
uid = config.ids.uids.clamav;
home = cfg.clamav.state-directory;
description = "ClamAV daemon user";
group = "clamav"; group = "clamav";
}; };
groups.clamav = { members = [ "clamav" ]; }; groups.clamav = {
members = [ "clamav" ];
gid = config.ids.gids.clamav;
};
}; };
systemd.tmpfiles.rules = systemd.tmpfiles.rules =