阅 读 文 章

[分享]刚学一招truss

[来源:网上转载 (http://www.chinaunix.net) | 作者:网友(laoxia) | 时间:2007-05-27 | 浏览:人次 ]


不知道怎么回事,无法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, 成功也

WHY 出现这个现象?俺只记得前天上机时喝了一瓶啤酒 :emn2: 



 boyu 回复于:2003-01-04 07:29:16

谢谢laoxia



 josephxd 回复于:2003-01-04 07:54:11

謝謝了.


 iricyan 回复于:2003-01-04 09:57:57

faint!

laoxia喝酒也不告诉偶!你的签名又改了!

呵呵!偶也知道了!/bin/truss!


 linz 回复于:2003-01-04 10:27:30

good
呵呵就这样偷学了不少东西


 llc107 回复于:2003-01-04 10:38:24

下回登录时用用户名“BEER”,口令:“tasty”就好了 :-P


 hbbeger 回复于:2003-01-04 19:21:49

good


 procrus 回复于:2003-01-04 19:25:47

又多了一个工具:)
谢谢laoxia


 bigbear0118 回复于:2003-01-04 20:01:45

高手


 hutao 回复于:2003-01-04 23:49:16

感谢laoxia:)


 race 回复于:2003-01-05 10:04:34

老下,多写点嘛


 laoxia 回复于:2003-01-05 10:16:11

等俺下次喝完啤酒D


 race 回复于:2003-01-05 10:21:02

我送你1箱百威


 mmmmn 回复于:2003-01-05 12:08:13

Cool Commands 
Peter Baer Galvin 

There are so many commands in Solaris that it is difficult to separate the cool ones from the mundane. For example, there are commands to report how much time a program spends in each system call, and commands to dynamically show system activities, and most of these commands are included with Solaris 8 as well as Solaris 9. This month, I’m highlighting some of the commands that you might find particularly useful. 

Systems administrators are tool users. Through experience, we have learned that the more tools we have, the better able we are to diagnose problems and implement solutions. The commands included in this column are gleaned from experience, friends, acquaintances, and from attendance at the SunNetwork 2002 conference in September. “The /procodile Hunter” talk by Solaris kernel developers Brian Cantrill and Mike Shapiro was especially enlightening and frightening because Cantrill wrote code to illustrate a point faster than Shapiro could explain the point they were trying to illustrate! 
论坛热门帖子: [lch203] 写得蛮好的linux学习笔记(10-21)
[黑马制造] 学习java的30个目标(10-19)
[笑傲股林] 做测试半年了,有点迷茫,应该再学些什么提高自己的测试水平和测试能力呢?(10-19)
[udp8589] 大家用google的来吱一声? 用百度的~~也来报道下?(10-18)
[沂偌掳兆] 本人总结的一些认为C++比较经典的书籍,希望对大家有用(10-18)
TAG标签: 回复 进程 一个 Solaris 显示 命令 可以 这个 使用 O_RDONLY

最新评论 共有0位网友发表了评论

发表评论

评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名:(注册)
密码:
验证码:
匿名发表

网站地图友情连接交流论坛网站投稿广告服务联系我们留言本站长统计
Some rights reserved: www.chmhome.com, 鄂ICP备07010232号 E-mail:chinakafei@live.com,QQ:552766
中国咖啡技术网(Chmhome):国外编程技术书籍,中文编程手册,经典编程文章,交流技术,技术软件下载,计算机论文,毕业论文.