[SC.LUG] File Perms- help!

Robert Marshall sc at mailman.lug.org.uk
Wed Aug 20 18:11:01 2003


On Wed, 20 Aug 2003, Ian Molton wrote:

> On Wed, 20 Aug 2003 12:16:54 +0100
> Jonathan Dwerryhouse <jon.d@c2internet.net> wrote:
> 
>> 
>> The files file structure is such that the root folder is owned by
>> root, but the folder within is owned by a user that has the same name
>> as the folder itself.  
> 
> home directories?
> 
> tar them up and ftp that. use something like
> 
> tar zcf file.tar.gz <root dir>/
> or
> tar jcf file.tar.bz2 <root dir>/
> 

I thought Jonathan was asking what to do after this point - when the
permissions had been already mangled, a sort of

find . -type d -maxdepth 1 -exec chown -R '{}' '{}' ';'

... I've not tested this....

Robert
-- 
We believe that to err is human. To blame it on someone
else is politics.
-- Hubert H. Humphrey