LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-21-2012, 09:19 AM   #1
soumyacs
LQ Newbie
 
Registered: Oct 2009
Posts: 21

Rep: Reputation: 0
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
 
Old 08-21-2012, 03:56 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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
 
Old 08-28-2012, 10:00 AM   #3
soumyacs
LQ Newbie
 
Registered: Oct 2009
Posts: 21

Original Poster
Rep: Reputation: 0
Thanks Tink. It works :-)
 
Old 08-28-2012, 05:24 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Cool - no surprises, as far as I'm concerned ;}
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem in unmounting and removing a volume group sanaz Linux - Newbie 7 08-27-2012 02:10 PM
[SOLVED] User can't access file that is accessible by a group she's in Eredeath Linux - General 2 08-05-2010 09:27 PM
normal user removing a root file? bashyow Linux - Newbie 4 11-02-2008 12:32 PM
Removing user entries from the shadow file kaplan71 Linux - Security 1 01-17-2008 07:03 AM
making a user to run file (group) Paxmaster Linux - General 2 02-11-2005 06:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration