

def enable_auto_login(name):
    "\n    .. versionadded:: 2016.3.0\n\n    Configures the machine to auto login with the specified user\n\n    :param str name: The user account use for auto login\n\n    :return: True if successful, False if not\n    :rtype: bool\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt '*' user.enable_auto_login stevej\n    "
    cmd = ['defaults', 'write', '/Library/Preferences/com.apple.loginwindow.plist', 'autoLoginUser', name]
    __salt__['cmd.run'](cmd)
    current = get_auto_login()
    return (current if isinstance(current, bool) else (current.lower() == name.lower()))

dataset/ETHPy150Open saltstack/salt/salt/modules/mac_user.py enable_auto_login/original