Re: gdmgreeter refuses to start in fc7

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux