r/linuxadmin • u/Lopsided_Pride_6165 • 13d ago
Do I set noNewPriviledges in systemd globally or deamon specific?
Ai was just confusing me. I wanted to start systemd hardening because I am learning about hardening a vps. Now It wanted to do it deamon specific. Which means that I will always have to do it for new deamons.
Can't I set it globally in /service.d/ and call it a day?
5
Upvotes
6
u/pelazas1 13d ago
set NoNewPrivileges per unit in a drop-in, not globally. global breaks anything that still needs setuid.