gdmgreeter refuses to start in fc7

Gianluca Cecchi gianluca.cecchi at gmail.com
Tue Jul 3 22:52:45 UTC 2007


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 at localhost tmp]# cd /tmp
[root at localhost tmp]# mkdir a
[root at localhost tmp]# chmod 755 a
[root at localhost tmp]# ll -d a
drwxr-xr-x 2 root root 4096 2007-07-04 00:34 a
[root at localhost tmp]# cd a
[root at localhost a]# tar jcvf ../a.tar.bz2 ./
./
[root at 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 at localhost a]# cd ..
[root at localhost tmp]# mkdir b
[root at localhost tmp]# chmod 777 b
[root at localhost tmp]# ll -d b
drwxrwxrwx 2 root root 4096 2007-07-04 00:35 b
[root at localhost tmp]# cd b
[root at localhost b]# tar jxvf /tmp/a.tar.bz2
./
[root at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20070704/b664ed86/attachment-0001.htm>


More information about the fedora-list mailing list