code: def set_mindays(name, mindays):
      '''
      Set the minimum number of days between password changes. See man passwd.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' shadow.set_mindays username 7
      '''
      pre_info = info(name)
      if mindays == pre_info['min']:
          return True
      cmd = 'passwd -n {0} {1}'.format(mindays, name)
      __salt__['cmd.run'](cmd, python_shell=False)
      post_info = info(name)
      if post_info['min'] != pre_info['min']:
          return post_info['min'] == mindays
      return Falsf set_mindays(name, mindays):
      '''
      Set the minimum number of days between password changes. See man passwd.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' shadow.set_mindays username 7
      '''
      pre_info = info(name)
      if mindays == pre_info['min']:
          return True
      cmd = 'passwd -n {0} {1}'.format(mindays, name)
      __salt__['cmd.run'](cmd, python_shell=False)
      post_info = info(name)
      if post_info['min'] != pre_info['min']:
          return post_info['min'] == mindays
      return False
docs: Set the minimum number of days between password changes. See man passwd.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' shadow.set_mindays username 7