Skip to content

Commit

Permalink
nixos/cupsd: Fix permissions on shared directories (#360022)
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewCroughan authored Nov 29, 2024
2 parents a5fb96b + 7389d32 commit 1f33e2a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nixos/modules/services/printing/cupsd.nix
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,7 @@ in
preStart = lib.optionalString cfg.stateless ''
rm -rf /var/cache/cups /var/lib/cups /var/spool/cups
'' + ''
(umask 022 && mkdir -p /var/cache /var/lib /var/spool)
(umask 077 && mkdir -p /var/cache/cups /var/spool/cups)
(umask 022 && mkdir -p ${cfg.tempDir} /var/lib/cups)
# While cups will automatically create self-signed certificates if accessed via TLS,
Expand Down

0 comments on commit 1f33e2a

Please sign in to comment.