Method: Specinfra::Command::Openbsd::Base::User.check_has_login_shell

Defined in:
lib/specinfra/command/openbsd/base/user.rb

.check_has_login_shell(user, path_to_shell) ⇒ Object


3
4
5
# File 'lib/specinfra/command/openbsd/base/user.rb', line 3

def (user, path_to_shell)
  "getent passwd #{escape(user)} | cut -f 7 -d ':' | grep #{escape(path_to_shell)}"
end