LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 10: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, 04:56 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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, 11:00 AM   #3
soumyacs
LQ Newbie
 
Registered: Oct 2009
Posts: 21

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

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 03:10 PM
[SOLVED] User can't access file that is accessible by a group she's in Eredeath Linux - General 2 08-05-2010 10:27 PM
normal user removing a root file? bashyow Linux - Newbie 4 11-02-2008 01:32 PM
Removing user entries from the shadow file kaplan71 Linux - Security 1 01-17-2008 08:03 AM
making a user to run file (group) Paxmaster Linux - General 2 02-11-2005 07:14 PM


All times are GMT -5. The time now is 03:52 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration