Help - Search - Members - Calendar
Full Version: /var/log/messages record question.
The Planet Forums > Operating Systems > Red Hat Linux > Red Hat HOWTOs
Lim
Hi all, i have a question about /var/log/messages

Last time i can use command /last to check who is login to server by ssh, ftp etc. but recently after i asked a guy help me secure my server. I found that i unable to see the user login record in /log/message, i only can watch root ssh login record. i tried restart syslog, but nothing help.
iambarry
QUOTE (Lim)
Hi all, i have a question about /var/log/messages  

Last time i can use command /last to check who is login to server by ssh, ftp etc. but recently after i asked a guy help me secure my server. I found that i unable to see the user login record in /log/message, i only can watch root ssh login record. i tried restart syslog, but nothing help.

Try looking in /var/log/secure.

/etc/syslog.conf controls what/where syslog messages go. Most syslog messages are typically configured to go to /var/log/messages.

On my RHEL system, syslog.conf configures authpriv messages to go to /var/log/secure with the following line:
authpriv.* /var/log/secure

--Barry
Lim
This is the cntent in syslog

root@host [~]# /etc/syslog.conf
-bash: /etc/syslog.conf: Permission denied
root@host [~]# pico /etc/syslog.conf
GNU nano 1.2.3 File: /etc/syslog.conf

# Log all kernel messages to the console.
# Logging much else clutters up the screen.
#kern.* /dev/console

# Log anything (except mail) of level info or higher.
# Don't log private authentication messages!
*.info;mail.none;authpriv.none;cron.none /var/log/messages

# The authpriv file has restricted access.
authpriv.* /var/log/secure

# Log all the mail messages in one place.
local0.notice;local0.debug;mail.*;mail.none;mail.info;local0.info /var/log/maillog


# Log cron stuff
cron.* /var/log/cron

# Everybody gets emergency messages
*.emerg *

# Save news errors of level crit and higher in a special file.
uucp,news.crit /var/log/spooler

# Save boot messages also to boot.log
local7.* /var/log/boot.log
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.