Why the mode of /dev/null is changed after system reboot?

Kris Kennaway kris at obsecurity.org
Mon Nov 1 12:51:15 PST 2004


On Mon, Nov 01, 2004 at 02:49:48PM -0500, Sven Willenberger wrote:
> On Mon, 2004-11-01 at 09:30 -0800, Kris Kennaway wrote:
> > On Mon, Nov 01, 2004 at 09:19:12AM +0800, Iva Hesy wrote:
> > > I have a gateway running FreeBSD 4.10-p3. Normally, the mode of
> > > /dev/null should be 666, but recently, I find that its mode is changed
> > > to 600 automatically after reboot, I have checked all /etc/rc* and
> > > /usr/local/etc/rc.d/*, but I can't get anything that led to it...:-(
> > 
> > Probably a local error.  Try changing scripts to #!/bin/sh -x and
> > carefully watch (or log) the boot process.  Start with any local
> > scripts you have since it's most likely to be a problem there.
> > 
> > Kris
> 
> Actually I have found this happening on my 4.10 boxen as well. I thought
> it was some one-time glitch and just chmodded the thing back. Didn't
> even think about it until I saw this post. I will try to see if I can
> catch the circumstances surrounding it if it happens again.

It could be a port doing this at startup, but we still need more
debugging..

Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20041101/5abfadd0/attachment.bin


More information about the freebsd-stable mailing list