[CentOS] chown command goof up

Tue Feb 13 17:50:29 UTC 2007
David A. Woyciesjes <david.woyciesjes at yale.edu>

Ross S. W. Walker wrote:
>> -----Original Message-----
>> From: centos-bounces at centos.org 
>>
>> Ross S. W. Walker wrote:
>>>> -----Original Message-----
>>>> From: David Woyciesjes [mailto:david.woyciesjes at yale.edu] 
>>>>
>>>>    So if I'm following this right, then I just need to run 
>>>> rpm --setugids `rpm
>>>> -qa` as root, from /, and this should set the owner & groups 
>>>> on all files,  as
>>>> appropriate? Except for of course the files in /home?
>>>>     As for my original plan, I saw krename in yum. At first 
>>>> glance, that looks
>>>> like it should do what I wanted. Anyone have experience with it?
>>> Not sure what krename does, but yes an rpm --setugids `rpm 
>> -qa` and an
>>> rpm --setperms `rpm -qa` will reset all file perms and 
>> ownership for all
>>> files managed under RPM.
>>>
>>> I gave a simple awk command to reset the perms in /home in 
>> an earlier
>>> post, basically using awk to parse the passwd fields and 
>> then issuing a
>>> shell statement with them.
>> 	Thanks Ross. I didn't do anything with file permissions 
>> (that I'm aware 
>> of), so I shouldn't have to use the --setperms, right?
>>
>> 	Just tried rpm --setugids `rpm -qa`, and got "sh: line 
>> 2: package: 
>> command not found". Now to figure out where that one comes from...
> 
> Make sure popt is installed, which version of CentOS is this?

CentOS 4. Not finding it in Yumex...

-- 
--- David Woyciesjes