• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 807
  • Last Modified:

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
0
lrinetti
Asked:
lrinetti
  • 3
  • 3
1 Solution
 
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
 
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
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 
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
 
torimarCommented:
Please list the contents of your /etc/fstab file here.
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

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now