Comment 6 for bug 317944

On Mon, Jan 19, 2009 at 08:01:29AM -0000, Scott James Remnant wrote:
> Strange that every single device has lost its world ownership
> permission; the only ones I note with it left are:
>
> 23204068 0 srw-rw-rw- 1 root root 0 Jan 16 15:12 /dev/log
> 5862 0 crw-rw-rw- 1 root root Oct 10 16:25 /dev/null
> 1305 0 crw-rw-rw- 1 root root Oct 21 10:25 /dev/urandom

/dev/null and /dev/urandom are the two that I manually corrected in order to
get basic functionality working again. /dev/log I didn't touch, but that
looks like it was recreated during the upgrade (syslogd was presumably
restarted).

> Do you think something might have actually done "find | chmod" and
> escaped and run across /dev for some reason?

I've looked around the filesystem a bit, and nothing looks out of the
ordinary outside of /dev.

You can see in the stat output that only the ctime changed, so it's the
original device node which was created by udev, but has been mangled by
something.

> Do you happen to have system logs from the upgrade time, there may be
> messages that give us a clue what happened.

I have the dist-upgrader logs which look fairly complete, and will attach
those. The timestamps in the log confirm that the ctime on /dev/null was
during the upgrade, and narrows down the possible packages (somewhere from
netbase to gsm-utils):

2009-01-16 13:33:36,223 INFO cache.commit()
2009-01-16 14:08:47,065 DEBUG got a conffile-prompt from dpkg for file: '/etc/services'
2009-01-16 15:00:50,532 WARNING no activity on terminal for 240 seconds (Configuring netbase)
2009-01-16 15:09:13,277 DEBUG got a conffile-prompt from dpkg for file: '/etc/init.d/gsm-utils'

I also searched for other similar reports, but didn't find anything which was
obviously a match:

https://bugs.edge.launchpad.net/ubuntu/intrepid/+source/linux/+bug/290153/comments/67 (intrepid)
http://ubuntuforums.org/showthread.php?t=229938 (dapper to edgy upgrade)
http://ubuntuforums.org/showthread.php?t=1033252 (August 2007)

--
 - mdz