From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1020c6,23d057eea2283ea,start X-Google-Attributes: gid1020c6,public X-Google-Thread: 1164f8,23d057eea2283ea,start X-Google-Attributes: gid1164f8,public X-Google-Thread: fee84,23d057eea2283ea,start X-Google-Attributes: gidfee84,public X-Google-Thread: f678f,23d057eea2283ea,start X-Google-Attributes: gidf678f,public From: andrewg@microlise.co.uk (Andrew Gierth) Subject: Re: Tar and NFS Date: 1996/06/12 Message-ID: <4plqq1$iqg@microl4.microlise.UUCP>#1/1 X-Deja-AN: 159758419 x-nntp-posting-host: microl.demon.co.uk references: <4plend$7cf@aggedor.rmit.EDU.AU> organization: Microlise Engineering Ltd. reply-to: andrewg@microlise.co.uk (Andrew Gierth) newsgroups: comp.sys.dec,comp.unix.admin,comp.unix.osf.osf1,comp.unix.osf.misc 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]