LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Problem while removing file by group user (https://www.linuxquestions.org/questions/linux-newbie-8/problem-while-removing-file-by-group-user-4175423232/)

soumyacs 08-21-2012 09:19 AM

Problem while removing file by group user
 
Hi,

I am experiencing a problem while removing the a file by group user.
For example - I have two users say A and B. One CSV file is created by A user with 774 (rwxrwxr--)permission. The directory(the csv file is created inside this) permission is set to 755(rwxr-xr-x). Now, user B and A are in same group. But I am unable to remove the file by B user as it is giving “Permission Denied” error. The umask has been set to 002 for user A. Could anybody please suggest how can I solve this issue. Is there any problem with the permission?

Thanks in advance

Tinkster 08-21-2012 03:56 PM

Easy. Make the dir 775. Write access to the file merely means that the
user can modify its content. Deleting the file mean modifying its
container, the directory it resides in, and the right to do that you
didn't grant him.



Cheers,
Tink

soumyacs 08-28-2012 10:00 AM

Thanks Tink. It works :-)

Tinkster 08-28-2012 05:24 PM

Cool - no surprises, as far as I'm concerned ;}


All times are GMT -5. The time now is 07:56 AM.