免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3616 | 回复: 6
打印 上一主题 下一主题

请教2个问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-06-02 21:27 |只看该作者 |倒序浏览
我在工作中遇到了2个问题,想请教一下\r\n一个是可否在/etc/passwd和/etc/shadow中把root用户改成其它的名字,也就是把超级用户改成其它的用户名?windows环境中是可以把administrtor改成别的用户,所以我想知道solaris里是否也可以\r\n\r\n另外一个问题是我想隐藏ssh的版本号,网上的资料一般都是修改banner或是先卸掉原来的ssh,重新编译ssh的源程序,再重新安装。修改banner的办法没有任何效果,而重新编译ssh的源程序,再重新安装太麻烦,有时有的用户环境也不一定允许,请教有什么更好更简单的办法吗?

论坛徽章:
0
2 [报告]
发表于 2008-06-03 07:35 |只看该作者
The 1st question, I think I got it, thank you!\r\n\r\nThe 2nd question, I using Solaris10, but have some soalris 8,9 yet, what shall I do?

论坛徽章:
0
3 [报告]
发表于 2008-06-03 08:16 |只看该作者
The 2nd question, I using Solaris10, but have some soalris 8,9 yet, what shall I do?
Solaris 9 and 10 should come with ssh built-in. Unless you download and install open ssh by yourself, you shouldn\'t  see ssh version number. For Solaris 8, you have to install openssh separately. Where do you see the version number? Is it before or after login? Which version of ssh are you using? In which OS version do you see the ssh version number?

论坛徽章:
0
4 [报告]
发表于 2008-06-03 08:42 |只看该作者
我不想向Brian致敬!但是我找不到理由~~

论坛徽章:
0
5 [报告]
发表于 2008-06-03 09:23 |只看该作者
我不想向Brian致敬!但是我找不到理由~~
There are a lot of people spending their precious time help others such as  风之幻想, race, yuhuohu, 东方蜘蛛 ... So your 致敬 probably should go to all of them.

论坛徽章:
0
6 [报告]
发表于 2008-06-03 11:04 |只看该作者
I got the version number by \r\n\r\ntelnet ip_of_solaris10 22\r\n\r\nthen \r\nI got:\r\n\r\nSSH-2.0-sun_SSH_1.1

论坛徽章:
0
7 [报告]
发表于 2008-06-03 12:07 |只看该作者
I got the version number by \r\n\r\ntelnet ip_of_solaris10 22\r\n\r\nthen \r\nI got:\r\n\r\nSSH-2.0-sun_SSH_1.1
That is a protocol announcement for compatibility. It is not recommended to get rid of it. If you really do, I don\'t think there is a easy way but re-compile the source code. The version number should be defined in usr/src/crypto/openssh/version.h file. \r\n\r\nAnother posibility is to use tcpwrapper, which might be able to suppress the version message. But I never tried it before.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP