def set_change(name, change):
 pre_info = info(name)
 if (change == pre_info['change']):
  return True
 if (__grains__['kernel'] == 'FreeBSD'):
  cmd = ['pw', 'user', 'mod', name, '-f', change]
 else:
  cmd = ['usermod', '-f', change, name]
 __salt__['cmd.run'](cmd, python_shell=False)
 post_info = info(name)
 if (post_info['change'] != pre_info['change']):
  return (post_info['change'] == change)

def set_change ( name , change ) : pre_info = info ( name ) if ( change == pre_info [ 'change' ] ) : return True if ( __grains__ [ 'kernel' ] == 'FreeBSD' ) : cmd = [ 'pw' , 'user' , 'mod' , name , '-f' , change ] else : cmd = [ 'usermod' , '-f' , change , name ] __salt__ [ 'cmd.run' ] ( cmd , python_shell = False ) post_info = info ( name ) if ( post_info [ 'change' ] != pre_info [ 'change' ] ) : return ( post_info [ 'change' ] == change )
sets the date on which the password expires .