ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 如何让Linux不记录用户(telnet,ssh等)登陆信息(适合实时监控OS)

如何让Linux不记录用户(telnet,ssh等)登陆信息(适合实时监控OS)

原创 Linux操作系统 作者:tolywang 时间:2007-12-01 00:00:00 0 删除 编辑

root用户修改配置,可以登陆 /etc/syslog.conf , 加入 auth.none

# Don't log private authentication messages!
*.info;mail.none;news.none;authpriv.none;cron.none;auth.none /var/log/messages


所有系统相关Log配置,都可以通过/etc/syslog.conf 来设置。

-------------------------------------------------------------------------------------------------------

node1$cat 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;news.none;authpriv.none;cron.none;auth.none /var/log/messages

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

# Log all the mail messages in one place.
mail.* /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

#
# INN
#
news.=crit /var/log/news/news.crit
news.=err /var/log/news/news.err
news.notice /var/log/news/news.notice
# Start of lines added by LSSV - DO NOT DELETE OR CHANGE THIS LINE
# installed by poin.srv on Wed Jul 14 12:10:18 CST 2004
daemon.notice /dev/console
daemon.notice /nsr/logs/messages
daemon.notice operator
local0.notice /nsr/logs/summary
local0.alert root, operator
# End of lines added by LSSV - DO NOT DELETE OR CHANGE THIS LINE

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/35489/viewspace-85066/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
Oracle , MySQL, SAP IQ, SAP HANA, PostgreSQL, Tableau 技术讨论,希望在这里一起分享知识,讨论技术,畅谈人生 。

注册时间:2007-12-10

  • 博文量
    5595
  • 访问量
    13385068