Method: Specinfra::Command::Base::User.get_maximum_days_between_password_change

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

.get_maximum_days_between_password_change(user) ⇒ Object


37
38
39
# File 'lib/specinfra/command/base/user.rb', line 37

def get_maximum_days_between_password_change(user)
  "chage -l #{escape(user)} | grep '^Maximum.*:' | awk -F ': ' '{print $2}'"
end