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

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

.check_has_login_shell(user, path_to_shell) ⇒ Object

[View source]

11
12
13
# File 'lib/specinfra/command/solaris/base/user.rb', line 11

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