Re: [CentOS] can non-owner change file group setup?

2009-05-15 Thread NiftyCluster Tom Mitchell
2009/5/12 mcclnx mcc : > > We are tried to count how many files belong to certain group. Our system > administrator told us "non-owner" can easy change file group name to another. >  I have been tried several combination and never successful (only ROOT can > change file group to other name). > >

Re: [CentOS] can non-owner change file group setup?

2009-05-13 Thread John R Pierce
Filipe Brandenburger wrote: > Did you just add yourself to that group? The processes you run will > not know you are a member of that group until you logout and login > again (open new SSH session, etc.). > > When you issue the "id" command (with no parameters), does it include > the "postgres" gro

Re: [CentOS] can non-owner change file group setup?

2009-05-13 Thread Filipe Brandenburger
On Wed, May 13, 2009 at 11:18, John R Pierce wrote: > Filipe Brandenburger wrote: >>> [pie...@ test]$ grep pierce /etc/group >>> postgres:x:26:pierce >>> pierce:x:503: >> >> It would work if user "pierce" belonged to group "postgres". > > Um, I do, I showed that up there. > > I was both owner

Re: [CentOS] can non-owner change file group setup?

2009-05-13 Thread John R Pierce
Filipe Brandenburger wrote: > Hi, > > On Wed, May 13, 2009 at 11:01, John R Pierce wrote: > >> nope. >> >> [pie...@ test]$ grep pierce /etc/group >> postgres:x:26:pierce >> pierce:x:503: >> [pie...@ test]$ touch x >> [pie...@ test]$ ls -la >> total 8 >> drwxrwxr-x 2 pierce pierce

Re: [CentOS] can non-owner change file group setup?

2009-05-13 Thread Blackburn, Marvin
;s not dead yet." William Lloyd George -Original Message- From: centos-boun...@centos.org [mailto:centos-boun...@centos.org] On Behalf Of Robert Nichols Sent: Tuesday, May 12, 2009 6:51 PM To: centos@centos.org Subject: Re: [CentOS] can non-owner change file group setup? nate wrote:

Re: [CentOS] can non-owner change file group setup?

2009-05-13 Thread Filipe Brandenburger
Hi, On Wed, May 13, 2009 at 11:01, John R Pierce wrote: > nope. > > [pie...@ test]$ grep pierce /etc/group > postgres:x:26:pierce > pierce:x:503: > [pie...@ test]$ touch x > [pie...@  test]$ ls -la > total 8 > drwxrwxr-x  2 pierce pierce 4096 May 13 07:58 . > drwxr-xr-x 37 pierce root

Re: [CentOS] can non-owner change file group setup?

2009-05-13 Thread Les Mikesell
mcclnx mcc wrote: > I don't think that is true: (my login ID are member of DBA and OINSTALL > group) > > $ ls -al > total 13936 > drwxrwxrwt 8 root root4096 May 13 04:02 . > drwxr-xr-x 32 root root4096 Feb 11 15:36 .. > -rwxrwxr-- 1 oracle dba9 May 11 20:50 a

Re: [CentOS] can non-owner change file group setup?

2009-05-13 Thread John R Pierce
nate wrote: > Scott Silva wrote: > > >> But if you only have read access to the original file, can you overwrite it? >> > > If you have write access to the directory yes you should be able > to, if you only have read access to the directory I would expect > not. > nope. [pie...@ te

Re: [CentOS] can non-owner change file group setup?

2009-05-13 Thread John R Pierce
mcclnx mcc wrote: > we plan to count how many files belong to that group. For example HR or > Finance. > not sure why you need to change the file's group to do this. for g in hr finance; do echo $(find . -type f -group $g |wc -l) files in group $g done _

Re: [CentOS] can non-owner change file group setup?

2009-05-13 Thread mcclnx mcc
chgrp: changing group of `aabb': Operation not permitted --- 09/5/12 (二),Les Mikesell 寫道: > 寄件者: Les Mikesell > 主旨: Re: [CentOS] can non-owner change file group setup? > 收件者: "CentOS mailing list" > 日期: 2009年5月12日,二,下午3:38 > nate wrote: > > mcclnx mcc wrote:

Re: [CentOS] can non-owner change file group setup?

2009-05-13 Thread mcclnx mcc
chgrp: changing group of `aabb': Operation not permitted --- 09/5/12 (二),nate 寫道: > 寄件者: nate > 主旨: Re: [CentOS] can non-owner change file group setup? > 收件者: centos@centos.org > 日期: 2009年5月12日,二,下午5:49 > Scott Silva wrote: > > > But if you only have read acce

Re: [CentOS] can non-owner change file group setup?

2009-05-13 Thread mcclnx mcc
we plan to count how many files belong to that group. For example HR or Finance. --- 09/5/12 (二),Filipe Brandenburger 寫道: > 寄件者: Filipe Brandenburger > 主旨: Re: [CentOS] can non-owner change file group setup? > 收件者: "CentOS mailing list" > 日期: 2009年5月12日,二,下午3:13

Re: [CentOS] can non-owner change file group setup?

2009-05-13 Thread William L. Maltby
On Tue, 2009-05-12 at 17:50 -0500, Robert Nichols wrote: > nate wrote: > > Scott Silva wrote: > > > >> But if you only have read access to the original file, can you overwrite > >> it? > > > > If you have write access to the directory yes you should be able > > to, if you only have read access

Re: [CentOS] can non-owner change file group setup?

2009-05-12 Thread Robert Nichols
nate wrote: > Scott Silva wrote: > >> But if you only have read access to the original file, can you overwrite it? > > If you have write access to the directory yes you should be able > to, if you only have read access to the directory I would expect > not. Technically, that's not overwriting.

Re: [CentOS] can non-owner change file group setup?

2009-05-12 Thread nate
Scott Silva wrote: > But if you only have read access to the original file, can you overwrite it? If you have write access to the directory yes you should be able to, if you only have read access to the directory I would expect not. nate ___ CentOS ma

Re: [CentOS] can non-owner change file group setup?

2009-05-12 Thread Scott Silva
on 5-12-2009 12:38 PM Les Mikesell spake the following: > nate wrote: >> mcclnx mcc wrote: >>> We are tried to count how many files belong to certain group. Our system >>> administrator told us "non-owner" can easy change file group name to >>> another. I have been tried several combination and ne

Re: [CentOS] can non-owner change file group setup?

2009-05-12 Thread Les Mikesell
nate wrote: > mcclnx mcc wrote: >> We are tried to count how many files belong to certain group. Our system >> administrator told us "non-owner" can easy change file group name to >> another. I have been tried several combination and never successful (only >> ROOT can change file group to other na

Re: [CentOS] can non-owner change file group setup?

2009-05-12 Thread nate
mcclnx mcc wrote: > > We are tried to count how many files belong to certain group. Our system > administrator told us "non-owner" can easy change file group name to > another. I have been tried several combination and never successful (only > ROOT can change file group to other name). > > Does an

Re: [CentOS] can non-owner change file group setup?

2009-05-12 Thread Filipe Brandenburger
2009/5/12 mcclnx mcc : > Does anyone know how "no-owner" can change file group name? I believe that is not possible. What exactly are you trying to accomplish? Filipe ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/ce

[CentOS] can non-owner change file group setup?

2009-05-12 Thread mcclnx mcc
We are tried to count how many files belong to certain group. Our system administrator told us "non-owner" can easy change file group name to another. I have been tried several combination and never successful (only ROOT can change file group to other name). Does anyone know how "no-owner" ca