Ubuntu 8.04: /var/log/exim4 paniclog file

In my PC with Ubuntu 8.04 i noticed that the log file:
/var/log/exim4/paniclog
is full of the following, repeated, systematic, message:
...
2009-04-19 19:50:01 1Lvb9V-0007D8-Tu failed to open /dev/null: Permission denied (euid=115 egid=126)
2009-04-19 19:55:01 1LvbEL-0007GZ-VM failed to open /dev/null: Permission denied (euid=115 egid=126)
2009-04-19 20:00:02 1LvbJC-0007KN-1O failed to open /dev/null: Permission denied (euid=115 egid=126)
...

What is the cause and what can i do to solve this situation ?
If i try to use the mail command to send something to any email address, i get in the mainlog file
this error:
2009-04-19 20:15:01 1LvbXh-0007WO-7d <= root@lrinetti-fly U=root P=local S=684
2009-04-19 20:15:01 1LvbXh-0007WO-7d failed to open /dev/null: Permission denied (euid=115
 egid=126)

I don't know if these two problems are related.

Best Regards
lrinettiAsked:
Who is Participating?
 
torimarCommented:
Please list the contents of your /etc/fstab file here.
0
 
torimarCommented:
Try typing this in a terminal windows:

sudo chmod 666 /dev/null
0
 
lrinettiAuthor Commented:
I have followed your suggestion, but, at the next boot the /dev/null has
the original permissions:
0 crw-rw-r-- 1 root usbusers 1, 3 2009-04-16 17:26 /dev/null
and the problem arise again, growing the /var/log/exim4/paniclog.
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
torimarCommented:
Not only the permissions are wrong, but the ownership as well: should be "root root".

Let's try recreating the device:

sudo mv /dev/null /dev/nullbk
sudo mknod -m 0666 /dev/null c 1 3


This will rename the old /dev/null and create a new one.
Let's hope that this time the settings survive a reboot.

ps:
Should you encounter more and/or graver errors than before, you can always restore the original device by:
sudo mv /dev/nullbk /dev/null
0
 
lrinettiAuthor Commented:
Hi,
after a reboot the /dev/null is again:
crw-rw-r-- 1 root usbusers 1, 3 2009-04-16 17:26 /dev/null
as before the changes. The file /var/log/exim4/paniclog still presents the:
2009-04-27 11:43:52 1LyNNQ-0004T4-Pc failed to open /dev/null: Permission denied (euid=115 egid=126)
messages.
0
 
lrinettiAuthor Commented:
lrinetti@lrinetti-fly:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
# /dev/sda6
UUID=f31e26d8-0c6a-4f91-b0e6-834a26a34b50 /               ext3    relatime,errors=remount-ro 0       1
# /dev/sda7
/dev/sda3 /mnt/sda3 ext3
UUID=8163385c-1843-405c-8a14-d2193e445edc none            swap    sw              0       0
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto,exec,utf8 0       0
# 2 righe seguenti aggiunte a mano per fix usb con virtualbox su ubuntuforum
# 1002 is the USB group ID
none /proc/bus/usb usbusers devgid=1002,devmode660 0 0
lrinetti@lrinetti-fly:~$
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.