Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Jul 2002 23:15:02 -0400
From:      Brian T.Schellenberger <bts@babbleon.org>
To:        "Balaji, Pavan" <pavan.balaji@intel.com>, "'Peter'" <fbsdq@kuyarov.org>, "'freebsd-questions@FreeBSD.ORG'" <freebsd-questions@FreeBSD.ORG>
Subject:   Re: umask -- tar extracting files with same permissions
Message-ID:  <20020710031503.5048ABA05@i8k.babbleon.org>
In-Reply-To: <3D386AED1B47D411A94300508B11F18703BC5B67@fmsmsx116.fm.intel.com>
References:  <3D386AED1B47D411A94300508B11F18703BC5B67@fmsmsx116.fm.intel.com>

next in thread | previous in thread | raw e-mail | index | archive | help

tar normally works fine on FreeBSD, too, I'm quite sure of that.

Did you make the tar archive under Linx and extract under FreeBSD?  Any 
special options you used?

Something's peculiar about this.

On Tuesday 09 July 2002 12:35 pm, Balaji, Pavan wrote:
| 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

-- 
Brian, the man from Babble-On . . . .   bts@babbleon.org (personal)
                                        http://www.babbleon.org

http://www.eff.org                      http://www.programming-freedom.org 

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?20020710031503.5048ABA05>