code: def _chattrib(name, key, value, param, root=None):
      '''
      Change an attribute for a named user
      '''
      pre_info = info(name, root=root)
      if not pre_info:
          return False
  
      if value == pre_info[key]:
          return True
  
      cmd = ['groupmod']
  
      if root is not None:
          cmd.extend(('-R', root))
  
      cmd.extend((param, value, name))
  
      __salt__['cmd.run'](cmd, python_shell=False)
      return info(name, root=root).get(key) == valuf _chattrib(name, key, value, param, root=None):
      '''
      Change an attribute for a named user
      '''
      pre_info = info(name, root=root)
      if not pre_info:
          return False
  
      if value == pre_info[key]:
          return True
  
      cmd = ['groupmod']
  
      if root is not None:
          cmd.extend(('-R', root))
  
      cmd.extend((param, value, name))
  
      __salt__['cmd.run'](cmd, python_shell=False)
      return info(name, root=root).get(key) == value
docs: Change an attribute for a named user