> 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