Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Jul 2002 09:35:08 -0700 
From:      "Balaji, Pavan" <pavan.balaji@intel.com>
To:        "'Peter'" <fbsdq@kuyarov.org>, "'freebsd-questions@FreeBSD.ORG'" <freebsd-questions@FreeBSD.ORG>
Subject:   RE: umask -- tar extracting files with same permissions
Message-ID:  <3D386AED1B47D411A94300508B11F18703BC5B67@fmsmsx116.fm.intel.com>

next in thread | raw e-mail | index | archive | help
Hi,

tar works fine on Linux -- not sure what the problem with FreeBSD is? You
can however use "rdist" instead:

create a file called 'distfile'

/usr/mydir -> ( machine1 machine2 machine3 )
install /home/usr/mydir;
except /usr/mydir/dontcopyfile1;
except /usr/mydir/dontcopyfile2;

And run "rdist". On my machine rsh gives a problem, so I use "rdist -P ssh",
to force it to use ssh. You can check other options on man rdist. The above
distfile copies the directory /usr/mydir on the current machine to the
directory /home/usr/mydir to the destination machines (machine1 machine2
machine3) recursively and preserving the permissions and ownerships.
'except' tells the command to skip copying those files -- you can disregard
that if you need to copy all files.


Pavan Balaji,
CIS Graduate Student,
Ohio State University

"Being happy doesn't mean that everything is perfect... It just means that
you have decided to see beyond the imperfections"  --  Rash


> -----Original Message-----
> From: Peter [mailto:fbsdq@kuyarov.org]
> Sent: Tuesday, July 09, 2002 3:08 AM
> To: freebsd-questions@FreeBSD.ORG
> Subject: umask -- tar extracting files with same permissions
> 
> 
> Hello,
> 	One one machine my name is peter while on another it's 
> peterk -- I have a website [cgi and all] on the peterk 
> one....I tar zcvf that site and uploaded it to the peter one. 
>  On the peter one my umask is at 0137 .. I untarred the 
> site...well.....all the files got screwed up...like my cgi's 
> were made unexcetuable, my directories unlistable, world 
> writeable files unwriteable, etc. -- what am I doing wrong? I 
> would like to be able to move files from one computer to 
> another retaining permissions [chmod] [owner/group I don't 
> care - whoever untars it].  Can someone please explain to me 
> how this works and what I'm doing wrong/right/what should I be doing?
> 
> 						Thanks
> 							Peter
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
> 

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D386AED1B47D411A94300508B11F18703BC5B67>