2003.01.06
发表于:2007-06-09来源:作者:点击数:
标签:
一、要增加root用的path路径,需要修改那个文件 /etc/profile可以,全系统的 /.profile只控制ROOT的,并覆盖/etc/profile设置 ROOT登录时,首先参考/etc/profile,然后参考/.profile 两者都规定的事以/.profile为准 /.profile默认情况下是没有的,youcancopyo
一、要增加root用的path 路径,需要修改那个文件
/etc/profile可以,全系统的
/.profile只控制ROOT的,并覆盖/etc/profile设置
ROOT登录时,首先参考/etc/profile,然后参考/.profile
两者都规定的事以/.profile为准
/.profile默认情况下是没有的,you can copy one from /ect/skel to /
(the name is /etc/skel/local.profile, you have to rename it)
二、刚学一招truss
不知道怎么回事,无法ftp, 输入正确用户和密码,总是说"login incorrect". 看了
/etc/inetd.conf, 甚至重装了ftp 得包,还是不行。
解决:
打开一窗口,实时监测inetd
truss -fa -t open,fork,exec -p 198 --> 198 为inetd 的PID
打开另一窗口,
ftp 192.168.0.10
监测窗口出现
1276: open64("/etc/shells", O_RDONLY) = 3
去查,果然/etc/shells 有毛病,如是仅有一行
/etc/ftponly
改成
/bin/ksh
/bin/sh
再FTP, 成功也
三、如何查看系统的内存的利用率?
top or prstat (只有solaris8有此命令)
四、 Solaris8(spec)最新补丁
下载路径(可以用flashget等工具下载)
去年10月发现了Sun Solaris /bin/login TTYPROMPT环境变量绕过验证漏,
这个漏洞可以通过环境变量TTYPROMPT绕过验证。 远程攻击者只需在telnet里
给环境变量TTYPROMPT简单定义成长度为6的字符串,然后连接上远程主机,再
输入用户名,后面跟64个" c",最后加一个回车就可以以这个用户直接登陆到
系统而不需要口令验证。
对于安装系统后没有打过补丁的朋友可以用flashget下载这个大补丁(就像
windows的sp2、sp3,打了大补丁就不用打小补丁):
http://sunsolve.sun.com/pub-cgi/patchDownload.pl? target=8_Recommended.zip&method=h
如果不想下载大补丁,也可以用这两个漏洞补丁:110668-03,111085-02
http://sunsolve.sun.com/pub-cgi/patchDownload.pl?target=110668&method=hs
http://sunsolve.sun.com/pub-cgi/patchDownload.pl?target=111085&method=hs
希望对朋友们有帮助
五、增加硬盘的命令?
8用devfsadm这个就可以了,包括了drvconfig的所有功能,7以前的系统用 drvconfig;disk。
mmmmn 回复于:2003-01-06 10:35:52
|
呵呵,你来做总结吗?欢迎
|
maskgod 回复于:2003-01-06 10:35:53
|
鼓励一下。。。
|
mmmmn 回复于:2003-01-06 10:38:56
|
再鼓励一下:)
|
x3y4z5 回复于:2003-01-06 10:41:33
|
欢迎,支持!恢复好的传统。
|
duhengliang 回复于:2003-01-06 11:04:24
|
很不错的工作**!
|
Ice 回复于:2003-01-06 11:08:23
|
十分感谢,两天没有上网,全靠老大的总结了,否则要自己一页页翻了 
|
windowsnt 回复于:2003-01-06 11:13:36
|
sp
|
vipcui 回复于:2003-01-06 11:14:21
|
真的很不错呀
|
superjun 回复于:2003-01-06 11:19:04
|
不看都忘了,好像确实有一段时间没有作总结了。
|
zufuqing5303 回复于:2003-01-06 12:22:34
|
哈哈,做起来还是挺不容易的,大家试试就知道了。不过我还是要坚持的,有错误的地方还要请各位老大能及时指出来。
|
路人甲 回复于:2003-01-06 13:05:17
|
不错,鼓励。 :) 感谢,很多东西不做已经快要忘记了。。。
|
vangogh 回复于:2003-01-06 13:09:54
|
好
|
xiufan 回复于:2003-01-06 14:35:29
|
对我们这些新手很有用呀 非常感谢
|
anber45 回复于:2003-01-06 15:14:38
|
确实不错!
|
hutao 回复于:2003-01-06 15:50:17
|
支持,mmmmn,试试请人家吃吃饭啊!
|
hutao 回复于:2003-01-06 15:53:43
|
支持,mmmmn,是不是请人家吃吃饭啊!
|
milan 回复于:2003-01-06 15:57:45
|
呵呵,总结的最后一行,应该是drvconfig;disks
|
南非蜘蛛 回复于:2003-01-06 16:30:44
|
drvconfig;disks;devlinks;
|
eric-guo 回复于:2003-01-06 16:33:19
|
手都拍红了,能一直下去么?
|
procrus 回复于:2003-01-06 21:05:17
|
鼓励,支持,坚持就是胜利
|
bigbear0118 回复于:2003-01-06 21:23:36
|
好人一生平安。
|
mmhh516 回复于:2003-01-07 09:44:49
|
好东西,支持!
|
zpdpd 回复于:2003-01-07 09:45:03
|
真是一个好的办法啊
|
原文转自:http://www.ltesting.net