Re: can non-owner change file group setup?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Filipe Brandenburger wrote:
> Hi,
>
> On Wed, May 13, 2009 at 11:01, John R Pierce <pierce@xxxxxxxxxxxx> wrote:
>   
>> nope.
>>
>> [pierce@xxxx test]$ grep pierce /etc/group
>> postgres:x:26:pierce
>> pierce:x:503:
>> [pierce@xxxx test]$ touch x
>> [pierce@xxxx  test]$ ls -la
>> total 8
>> drwxrwxr-x  2 pierce pierce 4096 May 13 07:58 .
>> drwxr-xr-x 37 pierce root   4096 May 13 07:57 ..
>> -rw-rw-r--  1 pierce pierce    0 May 13 07:58 x
>> [pierce@xxxx test]$ chgrp postgres x
>> chgrp: changing group of `x': Operation not permitted
>>     
>
> It would work if user "pierce" belonged to group "postgres".
>   

Um, I do, I showed that up there.

> But it only works if you are the owner of the file. If you belong to
> the group the file belongs to, it does not work.
>
>   

I was both owner of file AND member of both from and to groups, AND had 
write access to the directory.  still doesn't allow it.   CentOS 5.3, btw.

> I would say the best way to handle group ownership in Linux (and Unix)
> is to make sure files are originally created with the correct groups
> (possibly by using setgid directories).
>   

I concur.


_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux