From: andrewg@microlise.co.uk (Andrew Gierth)
Subject: Re: Tar and NFS
Date: 1996/06/12 [thread overview]
Message-ID: <4plqq1$iqg@microl4.microlise.UUCP> (raw)
In-Reply-To: 4plend$7cf@aggedor.rmit.EDU.AU
In <4plend$7cf@aggedor.rmit.EDU.AU>,
s9010721@minyos.its.rmit.EDU.AU (Aaron McDonough) writes:
>Hi,
> Does anybody know how to restore files from magnetic tape to an
>NFS mounted disk and properly restore uid's and gid's correctly. Using tar
>(and gtar) the ownership is set back to nobody(the anonymous NFS user)
>instead of the correct users. uid's and gid's are set correctly in the tar
>file and match those on the remote system, but the error still occurs.
>Does anybody know how to get around this problem?
That sounds like the filesystem is not exported with root access to the
client doing the restore - since presumably the restore is being done as
root, all the file accesses are performed as 'nobody' on the server, so
changing the owner may not be allowed.
>Any help will be *very much* appreciated.
Try one of:
- export the filesystem with root access (there are of course security
implications in doing this); see man exports or man exportfs for how
- dd off the tape and pipe it into 'rsh serverhost tar xf -' or some
approximate equivalent
- execute on the server host 'rsh tapehost dd ....' piped into tar xf -
(you get the idea)
There may be other variations on the above themes... :-)
HTH
-- Andrew (andrewg@microlise.co.uk)
"Usenet is like a herd of performing elephants with diarrhea; massive,
difficult to redirect, awe-inspiring, entertaining, and a source of
mind-boggling amounts of excrement when you least expect it." [Gene Spafford]
next prev parent reply other threads:[~1996-06-12 4:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-06-12 4:00 Tar and NFS Aaron McDonough
1996-06-12 4:00 ` Andrew Gierth [this message]
1996-06-19 4:00 ` Dwayne Carter
1996-06-21 4:00 ` Eric Werme
1996-06-12 4:00 ` Wolfram Klaus
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox