diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-06-16 21:31:59 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-06-16 21:31:59 -0400 |
commit | 2b96926eef130a4a1fecd6fe476f22e25716bf6e (patch) | |
tree | 84a5dce633b06e20a6de88d947d9df82937bd3b3 /scripts/meta-normalize-stdio | |
parent | 1e57cf41c56a8988bf73ea4d5c52b9cefc1b7d0d (diff) |
respect /usr/bin/nologin as a shell
Diffstat (limited to 'scripts/meta-normalize-stdio')
-rwxr-xr-x | scripts/meta-normalize-stdio | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/meta-normalize-stdio b/scripts/meta-normalize-stdio index 5611ae6..c55487f 100755 --- a/scripts/meta-normalize-stdio +++ b/scripts/meta-normalize-stdio @@ -126,6 +126,7 @@ shell = lambda {|name, sh| else @valid_shells ||= open("/etc/shells").read.split("\n") .find_all{|line| /^[^\#]/ =~ line} + .append("/usr/bin/nologin") unless @valid_shells.include?(sh) warning "shell not listed in /etc/shells: #{sh}" end |