Skip to content

Commit

Permalink
Disallow user group read access to mounted network shares
Browse files Browse the repository at this point in the history
  • Loading branch information
rake5k committed Sep 25, 2023
1 parent 768f1b2 commit 0171213
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/base/users/christian.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ in
fsType = "cifs";
credentials = config.age.secrets."${secretSmb}".path;
automount_opts = [ "x-systemd.automount" "noauto" "x-systemd.idle-timeout=60" "x-systemd.device-timeout=5s" "x-systemd.mount-timeout=5s" ];
auth_opts = [ "uid=1000" "gid=100" "credentials=${credentials}" ];
auth_opts = [ "uid=1000" "gid=0" "credentials=${credentials}" ];
options = automount_opts ++ auth_opts;
in
{
Expand Down

0 comments on commit 0171213

Please sign in to comment.