Originally Posted by omegazafer
I created three users user1, user2, user3 in same computer.
User1 created a file in its home/general with permissions rwxrwxrwx(everyboy have all permissions). I changed the user from user1 to user2 in user1 area. I want to use delete the file created by user1 in user1/home by using user2. Briefly user2 removes user1's file but I am getting warning of there is no permission.
deleting a file involves a write access to the directory containing that file. So, to delete a file, you need to have write permission to the directory containing it.
Btw, I don't think your approach isn't a good one. Okay, it's no problem to share directories with other users. But being that generous about "everybody's" permission can be dangerous.
If two or more users work together on a project, I'd rather create a new group and put these users into it. Then, assign the shared directory to that group, and grant the group full access to the directory and the files in it.
[X] Doc CPU