diff options
| author | Michael Hoang <enzime@users.noreply.github.com> | 2023-12-23 22:41:58 +1100 |
|---|---|---|
| committer | Michael Hoang <enzime@users.noreply.github.com> | 2023-12-23 22:41:58 +1100 |
| commit | 850eabce441b39375cafb07fb779a8c0fa263bdd (patch) | |
| tree | 0ef1d10019cc96e1c7a5421a2ee8e88ad2c121b6 | |
| parent | 010a625bd74bc623153344f52f71cc965b31d75a (diff) | |
etc: add known hash for `/etc/shells`
| -rw-r--r-- | doc/known-files/9d5aa72f807091b481820d12e693093293ba33c73854909ad7b0fb192c2db193 | 11 | ||||
| -rw-r--r-- | modules/system/shells.nix | 4 |
2 files changed, 15 insertions, 0 deletions
diff --git a/doc/known-files/9d5aa72f807091b481820d12e693093293ba33c73854909ad7b0fb192c2db193 b/doc/known-files/9d5aa72f807091b481820d12e693093293ba33c73854909ad7b0fb192c2db193 new file mode 100644 index 0000000..c3977df --- /dev/null +++ b/doc/known-files/9d5aa72f807091b481820d12e693093293ba33c73854909ad7b0fb192c2db193 @@ -0,0 +1,11 @@ +# List of acceptable shells for chpass(1). +# Ftpd will not allow users to connect who are not using +# one of these shells. + +/bin/bash +/bin/csh +/bin/dash +/bin/ksh +/bin/sh +/bin/tcsh +/bin/zsh diff --git a/modules/system/shells.nix b/modules/system/shells.nix index b3ecf30..9399327 100644 --- a/modules/system/shells.nix +++ b/modules/system/shells.nix @@ -41,5 +41,9 @@ in ${concatStringsSep "\n" cfg.shells} ''; + environment.etc."shells".knownSha256Hashes = [ + "9d5aa72f807091b481820d12e693093293ba33c73854909ad7b0fb192c2db193" # macOS + ]; + }; } |
