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

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
katelyn
n00b
n00b


Joined: 29 Dec 2005
Posts: 15

PostPosted: Sun Apr 16, 2006 9:36 pm    Post subject: /dev/null permissions problem Reply with quote

I am having the "/dev/null: permission denied" problem that seems to be quite common from searching the forums. I know the problem is normally caused by udev. However, the suggested solution of unmerging udev, deleting /etc/udev and remerging udev did not work. I know that my udev rules file is correct as it contains the line:

KERNEL=="null", NAME="%k", MODE="0666"

However, although I keep chmod'ing /dev/null to 666, something is still changing the permissions to 600 every day:

Code:

shadow ~ $ stat /dev/null
  File: `/dev/null'
  Size: 0               Blocks: 0          IO Block: 4096   character special file
Device: dh/13d  Inode: 1377        Links: 1     Device type: 1,3
Access: (0600/crw-------)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2005-12-11 21:08:43.000000000 +0000
Modify: 2005-12-11 21:08:43.000000000 +0000
Change: 2006-04-16 01:58:33.000000000 +0100


Does anyone have any idea what keeps changing the permissions back?
Back to top
View user's profile Send private message
mirojira
l33t
l33t


Joined: 18 Feb 2006
Posts: 685

PostPosted: Mon Apr 17, 2006 12:03 pm    Post subject: Reply with quote

I am sorry that I can't help. But I am also waiting for any response. I have the same problem with /dev/hdc.
Back to top
View user's profile Send private message
ldima24
n00b
n00b


Joined: 08 Jun 2006
Posts: 7

PostPosted: Sat Jun 10, 2006 8:22 pm    Post subject: Re: /dev/null permissions problem Reply with quote

katelyn wrote:
I am having the "/dev/null: permission denied" problem that seems to be quite common from searching the forums. I know the problem is normally caused by udev. However, the suggested solution of unmerging udev, deleting /etc/udev and remerging udev did not work. I know that my udev rules file is correct as it contains the line:

KERNEL=="null", NAME="%k", MODE="0666"

However, although I keep chmod'ing /dev/null to 666, something is still changing the permissions to 600 every day:

Code:

shadow ~ $ stat /dev/null
  File: `/dev/null'
  Size: 0               Blocks: 0          IO Block: 4096   character special file
Device: dh/13d  Inode: 1377        Links: 1     Device type: 1,3
Access: (0600/crw-------)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2005-12-11 21:08:43.000000000 +0000
Modify: 2005-12-11 21:08:43.000000000 +0000
Change: 2006-04-16 01:58:33.000000000 +0100


Does anyone have any idea what keeps changing the permissions back?


If you have syslog-ng and one of your destinations is /dev/null, then everytime syslog-ng logs message to /dev/null, it will change its permissions to 0600. You can avoid it by defining your destination as follows:

Code:
destination throw_away  { file("/dev/null" perm(0666)); };
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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