euglug.org

[Eug-lug] tar up home for a nuke and pave

작성자

카테고리:



horstMon Feb 14 23:03:54 PST 2005

> Date: Mon, 14 Feb 2005 18:26:53 -0800 (PST)
> From: Mr O <notanatheist at yahoo.com>
...>
> Actually it worked quite fine by untarring my home directory
> first. When I did "adduser" it just asked if I wanted to use a
> different directory and I said "no" then it asked if I wanted to
> do a "chown" on the directory and happily it did so. So, all my
  Hey -- good news :-)
  I'd guess that 'adduser' is a user friendly wrapper for the standard(?) 
Unix 'useradd' -- on the latter you won't get a nice dialog: either 1-line 
success, or error & usage message.

Followup Q for kbob: your stressed the -p (preserve) option for tar.
  From some man pages it sounds like the right thing to do.
  From other man pages (solaris 5.8) and web links it sounds like extract 
by root makes this automatically the default.
  From my own experience, since Redhat 7.2 (or maybe even 6.1), extract by 
root always preserved everything -- w/o requesting the -p option.
  So I got curious and tar'ed and untar'ed as root between BSD, solaris and 
mandrake 9.x, and it turned out just right -- w/o the -p option.
Am I mississig something, or is the documentation not up2date, or what?

  - Horst