# Unable to delete a file on different user's directory

I've two user's abc & xyz and the user abc has been added to the group xyz via usermod -a -G xyz abc and here the file permission on home directory of xyz i.e /home/xyz:

drwxrwxr-x 2 xyz xyz 4096 Mar 23 16:13 xyz

Now inside home directory of xyz, there is a file testfile, now when I'm trying to delete the file testfile from user abc, I'm unable to delete the file and getting Permission Denied.

What am I missing? I've read various answers for this but didn't get anything.

2) The account (group membership) of user xyz is modified but the user is not using a new shell and therefore the new group membership is not active yet. Try id -a within the context (shell) of the user which is trying to delete the file to get the current groups
• Can you also provide the ls -l output from the file you are trying to delete? In the question I can only see the directory. – Lambert Mar 23 '15 at 11:53
• Sure, it is -rwxrwxr-- 1 xyz xyz 5 Mar 23 16:13 testfile – Shashank Agrawal Mar 23 '15 at 11:59