Re: file compressing and attributes



Hi

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

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

Claus
.



Relevant Pages

  • 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)
  • Re: R: Linux kernel source archive vulnerable
    ... I didn't tell tar to use some special ... I'm not suggesting extracting random archives as root. ... Keep in mind that there are good reasons to extract the Linux tarball ...
    (Linux-Kernel)
  • Re: permissions changed in tar
    ... In Linux a non-root user CANnot create files ... with any other ownership then "the extracting user", ... As root it should preserve owner/group/attributes without any ...
    (alt.os.linux)
  • Re[2]: accounting with ipfw (gid, uid riles)
    ... > # If the cache is run as root, ... > # UID/GID to the UID/GID specified below. ... > # change to UID to nobody and GID to nogroup. ... Note that if Squid is not started as root then ...
    (FreeBSD-Security)
  • [Full-disclosure] ftpd chdir() while root
    ... Seems to me that ftpd does chdirwhile root, ... UID/GID to the user logging in. ...
    (Full-Disclosure)