Re: file compressing and attributes



"Claus" == Claus Hoevelmann <claus.hoevelmann@xxxxxxxxxx> writes:

Claus> Hi
>> Give the full path of the file to tar. e.g. tar czvf
>> foobar.tar.gz /home/foo/foo.bar

Claus> That's the problem. After extracting as root the
Claus> directories' attributes are set to root's uid/gid. Only
Claus> foo.bar is owned by user foo.

Did you try the following?

tar czvf foobar.tar.gz /home/foo/foo.bar /home/foo /home


--
Lee Sau Dan 李守敦 ~{@nJX6X~}

E-mail: danlee@xxxxxxxxxxxxxxxxxxxxxxxxxx
Home page: http://www.informatik.uni-freiburg.de/~danlee
.



Relevant Pages

  • Re: file compressing and attributes
    ... Claus> This works not only for the selected file, ... Claus> other files in the overlaying directories too. ... Claus> equivalent to 'tar czvf foobar.tar.gz /home'. ...
    (comp.os.linux.misc)
  • Re: file compressing and attributes
    ... tar czvf foobar.tar.gz /home/foo/foo.bar ... After extracting as root the directories' ... attributes are set to root's uid/gid. ...
    (comp.os.linux.misc)