/dev/null chmod reset after reboot

simba

Verified User
Joined
Oct 13, 2012
Messages
54
Hello all.

Can't solve one problem which causes exim to fail.
Every time server is restarted or at some interval /dev/null permissions reset to rw r r .
chmod 666 /dev/null
cmod a+rw /dev/null

After running any of these commands permissions will be:
crw-rw-rw- 1 root root 1, 3 Apr 13 2012 /dev/null

But not for long.

Exim's paniclog complains about it. Anybody having same issue?
 
Hi,

It's a VPS. Reading on google, i came open udev.rules.
In /ect/udev/rules.d/ there is file 60-raw.rules but it's commented out.
I created 40-basic-permission.rules with:
KERNEL=="null", MODE="0666"

but still the same. After reboot it resets to crw-r--r-- 1 root root 1, 3 Apr 13 2012 /dev/null


Thanks for help

P.S. What is the answer for

one three five seven ? Next number in the sequence should be nine, no?
 
You might need to delete MAKEDEV then

p.s. make sure you've got a ready backup copy of your VPS
 
It's live system. I don't want to go extreme :)

For now i put

Code:
chmod 0666 /dev/null

in etc/rc.local

Thanks.
Could admins make me verified user?
 
Introduction: static /dev

In order for container to work, some nodes should be present in container's /dev. For modern distributions, udev is taking care of it. For a variety of reasons udev doesn't make much sense in a container, so the best thing to do is to disable udev and create needed device nodes manually.

http://wiki.openvz.org/Physical_to_container#.2Fdev

You might need then to check it with your hosting company.
 
Back
Top