user/file permission issues...

Yin Ming yinming at mdc-ds.com
Sat Oct 9 08:27:52 UTC 2004


On Fri, 8 Oct 2004 11:16:41 -0700
"bruce" <bedouglas at earthlink.net> wrote:

> hi..
> 
> i have a file in a dir...
> 
> the file was created as root.
> 
> the permissions/owner/group have been modified to user 'foo' by root..
> chown foo dog.txt
> chgrp foo dog.txt
> chmod 777 dog.txt
> 
> however, when user 'your_foo' tries to delete/cp the file, the sys gives a
> permission error.
> 
> user 'your_foo' is a secondary member of the 'foo' group.
> 
> basically, i'm trying to figure out a way to allow members/users of two
> different groups to be able to delete/modify files in a given dir tree...
Copying ( delete a old one and add the new one in directory) and
deleting a file need a write permission of the parent directory, For
example:

~/DIRA/dog.txt

If you want to do:
cp ~/DIRA/dog.txt ~/DIRB

You must have the write permision of both DIRA and DIRB

As well the deleting.

> 
> thanks
> 
> -bruce


-- 
殷鸣 <yinming at mdc-ds.com>




More information about the redhat-list mailing list