Chown ???

Uwe Kiewel ml at kiewel-online.ch
Tue Apr 7 20:58:37 UTC 2009


Craig White wrote:
> On Tue, 2009-04-07 at 16:33 -0400, Jim wrote:
>> I have a user /home/user directory that ended up with the wrong OWNERS 
>> of his files , I know what cause it, it was my mistake, but I'm having 
>> problems of get Folders, Files assigned to "michael" who is the real owner.
>> As SU and in /home/michael folder I'am running the command;
>>
>> chown -R michael:michael *
>>
>> But it is not changing to owner "michael"   in SOME of the folders and 
>> files in his 'home' folders.
>> What command would I use ??
> ----
> should work...
> 
> chmod -R michael:michael /home/user/michael

assuming you're takling about chown

> 
> cd /home/user/michael
> find . ! -user michael
> 
> will return all files/folders not owned by 'user' michael

if there are any files:

find . ! -user michael -exec chown michael:michael {} \;

HTH,
	Uwe




More information about the fedora-list mailing list