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

755 permissions of /tmp



Hi!

I'm sorry, I've erased the mail from Brian White about the nasty bug that
caused /tmp to have permission 755, so I can't make a reply. I've found the
way to reproduce this. Namely, it happens when one tries to unpack a .deb file
in /tmp as a root. Here is the transcript:
  blackshark# pwd
  /tmp
  blackshark# ls -l
  total 19
  -rw-r--r--   1 root     root        17968 Jun 26 20:40 hello_1.3-14.2.deb

  blackshark# ls -ld /tmp
  drwxrwxrwx   3 root     root         9216 Jun 26 20:41 /tmp

  blackshark# dpkg -x hello_1.3-14.2.deb .

  blackshark# ls -ld /tmp
  drwxr-xr-x   4 root     root         9216 Nov 16  1997 /tmp

  blackshark# ls -l
  total 20
  -rw-r--r--   1 root     root        17968 Jun 26 20:40 hello_1.3-14.2.deb
  drwxr-xr-x   5 root     root         1024 Nov 16  1997 usr

The situation is, of course, largely artificial, but still possible. The
reason is that ./ is included into data.tar.gz part of .deb:
  blackshark# tar tfzv data.tar.gz 
  drwxr-xr-x root/root         0 1997-11-16 19:27 ./
  drwxr-xr-x root/root         0 1997-11-16 19:27 usr/
  drwxr-xr-x root/root         0 1997-11-16 19:27 usr/doc/
  drwxr-xr-x root/root         0 1997-11-16 19:27 usr/doc/hello/
  -rw-r--r-- root/root      2412 1997-11-16 19:27 usr/doc/hello/copyright
  -rw-r--r-- root/root      2295 1997-11-16 19:27 usr/doc/hello/changelog.gz
  -rw-r--r-- root/root      1542 1997-11-16 19:27 usr/doc/hello/changelog.Debian.gz
  drwxr-xr-x root/root         0 1997-11-16 19:27 usr/bin/
  -rwxr-xr-x root/root      5440 1997-11-16 19:27 usr/bin/hello
  drwxr-xr-x root/root         0 1997-11-16 19:27 usr/info/
  -rw-r--r-- root/root      8779 1997-11-16 19:27 usr/info/hello.info.gz

I still have no ideas about the second part of that bug: 750 permissions of
/lib (or /usr/lib). Probably, I should try to unpack hello somewhere else :-).

 --- Shurik.


--  
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: