參考資料:The Solaris Security FAQ by Peter Baer Galvin
1) (概述--略)
2) 怎樣將Solaris配置得更加強(qiáng)壯?
2.1) 哪些文件的許可權(quán)限需要改變?
有個叫fix-modes的軟件(ftp://ftp.fwi.uva.nl/pub/solaris/fix-modes.tar.gz)可以在 Solaris 2.4和2.5上運(yùn)行并改變系統(tǒng)文件及目錄的存取權(quán)限,這樣會使非ROOT的用戶更難 于更改系統(tǒng)文件或者取得ROOT權(quán)限。
* 在Solaris 2.5下,只要建立一個叫/etc/notrouter的文件就能阻止IP轉(zhuǎn)發(fā),要重新打開它,只要移除 /etc/notrouter并重啟動系統(tǒng)就行了。It's important to note that there is a small time window between when this file is created and when routing is disabled, theoretically allowing some routing to take place.
在Solaris 2.4下,添加一個新的腳本名為/etc/init.d/tmpfix:
#!/bin/sh #ident "@(#)tmpfix 1.0 95/08/14"
if [ -d /tmp ] then /usr/bin/chmod 1777 /tmp /usr/bin/chgrp sys /tmp /usr/bin/chown root /tmp
umask 022 # make sure umask.sh gets created with the proper mode echo "umask 022" > /etc/init.d/umask.sh for d in /etc/rc?.d do ln /etc/init.d/umask.sh $d/S00umask.sh done