View previous topic :: View next topic |
Author |
Message |
cwr Veteran
Joined: 17 Dec 2005 Posts: 1969
|
Posted: Sat Feb 25, 2012 10:34 am Post subject: /dev/null type and permissions |
|
|
Every few days something rewrites /dev/null so that it becomes a standard file,
permissions 644, and not a character device, permissions 666. I can't find out
which program is doing this - has anyone else seen the problem?
Thanks - Will |
|
Back to top |
|
|
Yuu Apprentice
Joined: 23 Dec 2008 Posts: 223 Location: France
|
Posted: Sat Feb 25, 2012 12:28 pm Post subject: |
|
|
Hi cwr,
as far as i know, /dev/null should be something like 0666.
I don't know which program made that changes, but I have few ideas :
- a) a recent udev update
- b) a weird syslog-ng rule
For b), it happened few years ago; I added this rule to my /etc/syslog-ng/syslog-ng.conf :
Code: | destination myrule { file("/dev/null"); };
filter f_myrule { program("application.*"); };
log { source(src); filter(f_myrule); destination(myrule); flags(final); }; |
And every time that I restarted my syslog-ng : it changed the chmod
Good luck :] _________________ Main laptop : T8300 cpu | 200 GB hard drive | 2 GB of ram | 8600M GT | Gentoo x86_64
Server : Celeron 220 cpu | 250 GB hard drive | 2 GB of ram | SiS 662 VGA | Gentoo x86_64 |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|