如何讓Linux不記錄使用者(telnet,ssh等)登陸資訊(適合實時監控OS)
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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 如何在Linux 讓Telnet root使用者可以登入Linux
- linux ssh免登陸Linux
- 用觸發器記錄資料庫使用者登陸資訊觸發器資料庫
- linux os 監控Linux
- Linux配置SSH免密登陸(公私鑰登陸)Linux
- Linux SSH免密登陸Linux
- Linux SSH 無法登陸Linux
- 資料庫會話記錄使用者登陸的密碼資訊資料庫會話密碼
- 思科路由器:開啟telnet和ssh遠端登陸路由器
- RHCE課程-系統管理部分|5、linux的遠端登陸,telnet.sshLinux
- Linux Centos 普通使用者無法登陸SSH 問題LinuxCentOS
- Linux CentOS普通使用者無法登陸SSH問題LinuxCentOS
- linux 關閉只允許SSH登陸(允許使用者名稱、密碼登陸)Linux密碼
- 記錄ORACLE使用者登入資訊Oracle
- Netdata---Linux系統效能實時監控平臺部署記錄Linux
- SSH安全登陸原理:密碼登陸與公鑰登陸密碼
- ssh只能遠端登陸到普通使用者,不能以root遠端登陸
- linux 設定ssh無密碼登陸Linux密碼
- Linux 伺服器使用 SSH 連線 實現免登陸Linux伺服器
- 使用ssh-keygen,實現免密碼登陸linux密碼Linux
- 在Linux中,如何實時監控網路流量?Linux
- ssh設定使用者從指定的IP登陸
- 普通使用者ssh無密碼登陸失敗密碼
- 如何 SSH 登入到 Linux 上的特定目錄Linux
- Linux中如何設定SSH金鑰提升登陸安全性Linux
- [SSH服務]——一個SSH無密碼登陸實驗密碼
- ssh免密碼登陸密碼
- Linux伺服器批量ssh免密登陸Linux伺服器
- linux下ssh/scp無金鑰登陸方法Linux
- 開啟SUSE Linux的SSH密碼登陸Linux密碼
- 哪種代理適合價格監控?
- Linux全攻略–遠端登入管理-Telnet與SSHLinux
- root使用者ssh無法登陸到伺服器伺服器
- ssh方式登入雲伺服器時設定別名登陸伺服器
- 【RAC】lsnrctl 工具不適合管理監聽
- 解決方案: scp/ssh 的登陸提示很慢 (Linux)Linux
- Linux 修改SSH埠 和 禁止Root遠端登陸Linux
- 配置SSH免密碼登陸密碼