summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-06-16 21:31:59 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-06-16 21:31:59 -0400
commit2b96926eef130a4a1fecd6fe476f22e25716bf6e (patch)
tree84a5dce633b06e20a6de88d947d9df82937bd3b3
parent1e57cf41c56a8988bf73ea4d5c52b9cefc1b7d0d (diff)
respect /usr/bin/nologin as a shell
-rwxr-xr-xscripts/meta-normalize-stdio1
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