diff --git a/usr/lib/security-misc/permission-hardening-undo b/usr/lib/security-misc/permission-hardening-undo index 73b871f..594a11e 100755 --- a/usr/lib/security-misc/permission-hardening-undo +++ b/usr/lib/security-misc/permission-hardening-undo @@ -33,8 +33,8 @@ undo_all() { stat -c "%n %a %U %G" "$file_name" || true - chmod "$mode" "$file_name" || exit_code=202 - chown "${owner}:${group}" "$file_name" || exit_code=203 + chown "${owner}:${group}" "$file_name" || exit_code=202 + chmod "$mode" "$file_name" || exit_code=203 stat -c "%n %a %U %G" "$file_name" || true