Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/dev/null type and permissions
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
cwr
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1969

PostPosted: Sat Feb 25, 2012 10:34 am    Post subject: /dev/null type and permissions Reply with quote

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
View user's profile Send private message
Yuu
Apprentice
Apprentice


Joined: 23 Dec 2008
Posts: 223
Location: France

PostPosted: Sat Feb 25, 2012 12:28 pm    Post subject: Reply with quote

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 :lol:


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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
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