I have done
chmod -R 644 .
inside the directory dir
My user's permissions are drw-r--r-- and i'm the owner of the directory
When trying chmod 755 dir, error is popped
chmod: changing permissions of dir Operation not permitted
The same error is popped when doing ls even as root
How to change permission back to 755 and allow its deletion and modification?