I have 2 users test(has access to sudo) and testuser1 (has no access to sudo).
I need to make child3 and file.txt ownership and permissions only for testuser1 (which are created by user test)
/home/test/some_test/parent1/child3/file.txt
However when I do
sudo chown testuser1:testuser1 -R child3
sudo chmod 700 -R child3
I get
drwx------ 2 testuser1 testuser1 4096 Sep 30 00:39 child3
So I can't access to folder as another user (which is correct) but I can't also delete folder as testuser1, only test user can