if not salt.utils.platform.is_windows():
        # ssh-keygen creates a new file, thus a chown is required.
        if os.geteuid() == 0 and user:
            uinfo = __salt__['user.info'](user)
            os.chown(full, uinfo['uid'], uinfo['gid'])