Why the mode of /dev/null is changed after system reboot?
Dmitry Morozovsky
marck at rinet.ru
Mon Nov 1 22:08:25 PST 2004
On Mon, 1 Nov 2004, Sven Willenberger wrote:
SW> > > I have a gateway running FreeBSD 4.10-p3. Normally, the mode of
SW> > > /dev/null should be 666, but recently, I find that its mode is changed
SW> > > to 600 automatically after reboot, I have checked all /etc/rc* and
SW> > > /usr/local/etc/rc.d/*, but I can't get anything that led to it...:-(
SW> >
SW> > Probably a local error. Try changing scripts to #!/bin/sh -x and
SW> > carefully watch (or log) the boot process. Start with any local
SW> > scripts you have since it's most likely to be a problem there.
SW>
SW> Actually I have found this happening on my 4.10 boxen as well. I thought
SW> it was some one-time glitch and just chmodded the thing back. Didn't
SW> even think about it until I saw this post. I will try to see if I can
SW> catch the circumstances surrounding it if it happens again.
I remember I stepped into this once or twice in the past. Bad umask at
mergemaster/MAKEDEV time possibly?
Sincerely,
D.Marck [DM5020, MCK-RIPE, DM3-RIPN]
------------------------------------------------------------------------
*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck at rinet.ru ***
------------------------------------------------------------------------
More information about the freebsd-stable
mailing list