日本免费全黄少妇一区二区三区-高清无码一区二区三区四区-欧美中文字幕日韩在线观看-国产福利诱惑在线网站-国产中文字幕一区在线-亚洲欧美精品日韩一区-久久国产精品国产精品国产-国产精久久久久久一区二区三区-欧美亚洲国产精品久久久久

使用Yassp工具包安裝安全的Solaris系統(tǒng)( 四 )


7. 編輯登錄的標(biāo)語文件,對非法的用戶訪問提出警告 。對于telnet和SSH,登錄前的文件為/etc/issue,登錄后的文件是/etc/motd
8. Yassp更改/etc/system文件內(nèi)的參數(shù)對Solaris系統(tǒng)進(jìn)行調(diào)整 。
* Yassp增加對文件描述的字節(jié)限制,rlim_fd_max=1024、rlim_fd_cur=256 。有些應(yīng)用也許會需要更大的值,根據(jù)需要改動 。
* 將小于8的soft-limit增加到256對一些應(yīng)用會有幫助 。Hard-limit不需要改變,仍為1024 。系統(tǒng)管理員需要知道哪些應(yīng)用需要更多的hard-limit值,并對/etc/system做相應(yīng)的改動 。
* 設(shè)置sys:coredumpsize=0從而不產(chǎn)生corefiles 。當(dāng)然有時候,管理員需要corefiles進(jìn)行分析,但是也要注意corefiles可能會泄露敏感的信息 。
* 其它的設(shè)置:
*Increase SVR4 style ptys
set pt_cnt=128
*Attempt to prevent and log stack-smashing attacks
set noexec_user_stack=1
set noexec_user_stack_log=1
*enable advanced memory paging technique
*NOT NEEDED ON Solaris 8:set priority_paging=1
set tcp:tcp_conn_hash_size=16348
*If the NFS_PORTMON variable is set,then clIEnts are required to use
*privileged ports(ports
Set nfssrv:nfs_portmon=1
*max users processes in here too
set maxuprc=150
關(guān)閉記錄動作,刪除yassp安裝目錄
#exit
Script done,file is /yasspinstall.log
#cd; rm -rf /opt/install/yassp
重新啟動,使改動生效
#reboot
重新啟動后,檢查控制臺上的錯誤信息,如果有,更正之 。以root登錄,檢查網(wǎng)絡(luò)聯(lián)接情況,應(yīng)該只有ssh和syslog(Solaris7及以前版本)在監(jiān)聽:
netstat -a
UDP: IPv4
Local Address Remote Address State
-------------------- -------------------- -------
*.* Unbound
TCP: IPv4
Local Address Remote Address Swind Send-Q Rwind Recv-Q State
-------------------- -------------------- ----- ------ ----- ------ -------
*.* *.* 0 0 24576 0 IDLE
*.ssh *.* 0 0 32768 0 LISTEN
【使用Yassp工具包安裝安全的Solaris系統(tǒng)】*.* *.* 0 0 32768 0 IDLE

推薦閱讀