1828296 Members
2799 Online
109975 Solutions
New Discussion

Error Messages

 
hanyyu1
Advisor

Error Messages

I use the general user telent login to the linux server , but sometimes there are some error messages will pop to my screen , and I also found these messages in /var/log/messages , how can I disable these messages pop to my screen again ? thx

I already check /etc/syslog.conf , it is normal , and also not found the user login id in all files under the /etc directory , what is wrong in my system ? thx
8 REPLIES 8
Alexander Chuzhoy
Honored Contributor

Re: Error Messages

in file /etc/syslog.conf
line with /dev/console means to show messages on your console.
line with * means to show messages (emergency messages by default) also on your console (among others).
if you'll remark these lines with # at start and restart the syslog service you won't see system messages on your screen.
the command:
service syslog restart
restarts the syslog service
hanyyu1
Advisor

Re: Error Messages

thx reply ,

I tried it but still show the error to the user login ,

this kind of message will pop to my user login in every 5 minutes,

if disable the /dev/console , it seems not pop to the console but still pop to my telnet screen , can suggest how to disable it ? thx
Alexander Chuzhoy
Honored Contributor

Re: Error Messages

at the bottom of syslog.conf you have
*.emerg *



did you diable it also and did you run service syslog restart?
Muthukumar_5
Honored Contributor

Re: Error Messages

grep 'console' /etc/syslog.conf

post this information. You have to redirect emerg or error information to /dev/null device. Try to use differenct message type to /dev/null device.

hth.
Easy to suggest when don't know about the problem!
hanyyu1
Advisor

Re: Error Messages

# Log all kernel messages to the console.
#kern.* /dev/console


thx
Ivan Ferreira
Honored Contributor

Re: Error Messages

Once I installed the linux-abi patch and warning messages where displayed on the terminal and was not controlled by syslog. What is the message that are you getting?
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
hangyu2
New Member

Re: Error Messages

some kinds of system messages like the mount point failure , CD rom failure .... etc.

it is strange that only one user will receive this messages .
Ivan Ferreira
Honored Contributor

Re: Error Messages

What is the configuration of fstab?. Are you using autofs, check your /etc/auto.master?

I "think" that when the user logon tries to use some device, and cannot be mounted, that's why he is the only one that see the message, and is recorded to the syslog.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?