Re: gdmgreeter refuses to start in fc7



On Tue, 03 Jul 2007 16:09:16 -0600 Karl Larsen wrote:
Relax. What you think your tar changed is not changed. the permissions you
show are what I have. There is no way tar will change directories.

Karl



It is not so.
See below. We work starting in /tmp. Try yourself.
[root@localhost tmp]# cd /tmp
[root@localhost tmp]# mkdir a
[root@localhost tmp]# chmod 755 a
[root@localhost tmp]# ll -d a
drwxr-xr-x 2 root root 4096 2007-07-04 00:34 a
[root@localhost tmp]# cd a
[root@localhost a]# tar jcvf ../a.tar.bz2 ./
./
[root@localhost a]# tar jtvf ../a.tar.bz2
drwxr-xr-x root/root 0 2007-07-04 00:34:27 ./
(more files following if a contained any files/directories but for the
example it is the directory itself the problem)
[root@localhost a]# cd ..
[root@localhost tmp]# mkdir b
[root@localhost tmp]# chmod 777 b
[root@localhost tmp]# ll -d b
drwxrwxrwx 2 root root 4096 2007-07-04 00:35 b
[root@localhost tmp]# cd b
[root@localhost b]# tar jxvf /tmp/a.tar.bz2
./
[root@localhost b]# ll -d .
drwxr-xr-x 2 root root 4096 2007-07-04 00:34 .


So if you untar, AS ROOT, into a directory an archive that contains the root
directory itself, you overwrite the permissions of the dir.
You (I actually ;-)
- should not use root
- verify archive before extracting
- create archive without the leading ./ dir itself
--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

Relevant Pages

  • Re: whats next for the linux kernel?
    ... >> not root. ... # tar cf ../foo.tar. ... # ls -ld tmp ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: [Fedora] Re: Specifying tmp for tar
    ... Thus, as tar uses /tmp, the / filesystem fills up and I cannot ... How can I specify a tmp directory for tar in my home ... Note that man tar makes no mention of a tmp option. ... If that's the case, why not uncompress the file first with bzip2 somewhere on the file system that actually has space, and then run tar to extract the files? ...
    (Fedora)
  • Re: Specifying tmp for tar
    ... Thus, as tar uses /tmp, the / filesystem fills up and I cannot ... Note that man tar makes no mention of a tmp option. ... I can then simply erase the symlink? ... be after the "mv" command above. ...
    (Fedora)
  • Re: Specifying tmp for tar
    ... Thus, as tar uses /tmp, the / filesystem fills up and I cannot ... How can I specify a tmp directory for tar in my home ... Note that man tar makes no mention of a tmp option. ...
    (Fedora)
  • Re: Specifying tmp for tar
    ... Thus, as tar uses /tmp, the / filesystem fills up and I cannot ... How can I specify a tmp directory for tar in my home ... Note that man tar makes no mention of a tmp option. ...
    (Fedora)