[Gllug] File permissions

Gordon Joly gordon.joly at pobox.com
Sun Sep 9 17:40:53 UTC 2001


At 16:41 +0100 2001-09-08, Dylan wrote:
>Hi
>
>How do I copy or move a directory as root, without the new direcory and files
>changing permissions and gaining root as owner and group?
>
>Cheers
>
>Dylan
>


I tend to use tar(1); something like

tar cvf - WHATEVERFILES/DIRSYOUWANT | ( cd NEWPLACE ; tar xf -)

I think this example is in the manual page.

e.g.

cd startdir;
tar cvf - index.html docs/* | ( cd wwwroot ; tar xf -)


Gordo

-- 
Gordon Joly//////////
gordon.joly at pobox.com
http://pobox.com/~or/

-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list