优秀是一种习惯 , 生活是一种过程 , 放弃是一种智慧 , 缺点是一种恩惠。 我的MSN: qiwang1979@hotmail.com , 希望结交更多喜欢Oracle, Linux,热爱生活的朋友。 欢迎加入Oracle数据库讨论QQ群组 (号码:42235266),希望大家在这里共同进步 !

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

上一篇 / 下一篇  2007-12-01 00:00:00 / 个人分类:Linux/Unix管理

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</etc>$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


TAG:

 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

日历

« 2008-12-05  
 123456
78910111213
14151617181920
21222324252627
28293031   

数据统计

  • 访问量: 39442
  • 日志数: 1485
  • 图片数: 5
  • 书签数: 1
  • 建立时间: 2007-12-10
  • 更新时间: 2008-12-05

RSS订阅

Open Toolbar