免费注册 查看新帖 |

Chinaunix

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

哪位大虾救我一命, 在线等 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-09-23 16:30 |只看该作者 |倒序浏览
我用telnet登录到一个用户user后, su到root后, 在根目录/下,做了一个动作:chown -R user:dba *, 然后, 发现不能telnet到服务器上去了, 以登陆的用户也不能用su切换到其他用户上去了。ftp也不能用任何用户登陆了。\r\n5555555555555555~~~~~~~~~~~~现在该怎么办?

论坛徽章:
0
2 [报告]
发表于 2005-09-23 16:33 |只看该作者

哪位大虾救我一命, 在线等

麻烦大了!\r\n\r\n参照/var/sadm/install/content修复部分,\r\n\r\n以前有网友写过方法,用脚本解决。

论坛徽章:
0
3 [报告]
发表于 2005-09-23 16:35 |只看该作者

哪位大虾救我一命, 在线等

samshi 兄弟你也是重庆的呀,有电话吗?我们可以电话联系吗?我的是60775430。我急需解决这个问题。

论坛徽章:
0
4 [报告]
发表于 2005-09-23 16:37 |只看该作者

哪位大虾救我一命, 在线等

怎么解决?能说具体点吗?

论坛徽章:
0
5 [报告]
发表于 2005-09-23 17:01 |只看该作者

哪位大虾救我一命, 在线等

/>;ls -sal\r\n总数 1542\r\n   2 drwxr-xr-x  31 root     root        1024  9月 23 05:28 .\r\n   2 drwxr-xr-x  31 root     root        1024  9月 23 05:28 ..\r\n   2 -rw-------   1 root     other        511  9月 23 05:28 .TTauthority\r\n   2 -rw-------   1 root     other        750  9月 23 05:28 .Xauthority\r\n   2 drwxr-xr-x   2 root     other        512 2004   8月  2 .acrobat\r\n   2 -rw-r--r--   1 root     other        237 2004   8月  3 .acrosrch\r\n   2 drwxr-xr-x  15 root     other        512  9月 23 05:28 .dt\r\n  10 -rwxr-xr-x   1 root     other       5111 2004   7月 27 .dtprofile\r\n   2 drwxr-xr-x   3 root     other        512 2004   7月 27 .iiim\r\n   2 drwxr-xr-x   3 root     other        512 2004   7月 27 .java\r\n   2 drwxr-xr-x   3 root     other        512 2004   8月 26 .nbjava\r\n   2 drwx------   5 root     other        512  9月 22 20:35 .netscape\r\n   2 -rw-r--r--   1 root     other          6 2004   8月 27 .rhosts\r\n   2 -rw-------   1 root     other        156 2004   9月  8 .sh_history\r\n   4 -rw-r--r--   1 root     other       1244 2004   8月 26 .smc.properties\r\n   2 -rw-r--r--   1 root     other         75 2004   8月  2 .vconsole.properties\r\n   2 drwxr-xr-x   2 root     other        512 2004   9月 15 .vnc\r\n   2 drwxr-xr-x   2 oracle   dba          512 2004   7月 27 TT_DB\r\n 464 -rw-r--r--   1 oracle   dba       228415 2004  10月 15 adconfig.log\r\n   2 lrwxrwxrwx   1 root     root           9 2004   7月 27 bin ->; ./usr/bin\r\n   2 drwxr-xr-x   5 oracle   dba          512  9月 22 23:39 cdrom\r\n   8 drwxr-xr-x  17 oracle   dba         3584  9月 23 09:19 dev\r\n   2 drwxr-xr-x   6 oracle   dba         1024 2004   7月 27 devices\r\n   8 drwxr-xr-x  52 oracle   dba         4096  9月 23 16:39 etc\r\n   2 drwxr-xr-x   3 oracle   dba          512 2004   9月 25 home\r\n   2 drwxr-xr-x  11 oracle   dba          512  9月 22 20:09 kernel\r\n   0 -rw-r--r--   1 oracle   dba            0 2004  10月 15 l\r\n   2 lrwxrwxrwx   1 root     root           9 2004   7月 27 lib ->; ./usr/lib\r\n  16 drwx------  28 oracle   dba         8192 2004   7月 27 lost+found\r\n   2 drwxr-xr-x   2 oracle   dba          512 2004   7月 27 mnt\r\n   2 dr-xr-xr-x   2 oracle   dba          512 2004   7月 27 net\r\n  10 -rw-------   1 oracle   dba         4331  9月  7 16:21 nohup.out\r\n   2 drwx------   2 oracle   dba          512 2004   7月 27 nsmail\r\n   2 drwxr-xr-x  10 oracle   dba          512  9月 23 02:56 opt\r\n   2 drwxr-xr-x  33 oracle   dba         1024 2004   8月  3 platform\r\n 938 dr-xr-xr-x 163 root     root      480032  9月 23 17:17 proc\r\n   2 drwxr-xr-x   2 oracle   dba         1024 2004   8月  3 sbin\r\n  16 drwxrwxrwt   6 oracle   dba          669  9月 23 16:34 tmp\r\n   2 drwxr-xr-x   4 root     root         512  9月 22 23:00 u01\r\n   2 drwxr-xr-x   9 root     root         512 2004  10月 11 u05\r\n   2 drwxr-xr-x  39 root     sys         1024 2004   8月 26 usr\r\n   2 drwxrwxrwx  34 root     sys          512 2004   7月 27 var\r\n   0 dr-xr-xr-x   6 root     root         512  9月 23 05:28 vol\r\n   2 -rw-r--r--   1 root     other        258 2004  10月 15 wmes_user.sh\r\n   2 dr-xr-xr-x   2 root     root         512 2004   7月 27 xfn

论坛徽章:
0
6 [报告]
发表于 2005-09-23 17:06 |只看该作者

哪位大虾救我一命, 在线等

cq-ha:/ #cat  sam.shi \r\n\r\n下面的最关键!!!!\r\n  8 drwxr-xr-x  17 oracle   dba         3584  9Ô 23 09:19 dev \r\n  2 drwxr-xr-x   6 oracle   dba         1024 2004   7Ô 27 devices \r\n  8 drwxr-xr-x  52 oracle   dba         4096  9Ô 23 16:39 etc \r\n\r\n  2 drwxr-xr-x  11 oracle   dba          512  9Ô 22 20:09 kernel \r\n  0 -rw-r--r--   1 oracle   dba            0 2004  10Ô 15 l \r\n\r\n  2 drwx------   2 oracle   dba          512 2004   7Ô 27 nsmail \r\n  2 drwxr-xr-x  10 oracle   dba          512  9Ô 23 02:56 opt \r\n  2 drwxr-xr-x  33 oracle   dba         1024 2004   8Ô  3 platform \r\n  2 drwxr-xr-x   2 oracle   dba         1024 2004   8Ô  3 sbin \r\n*************************************\r\n 16 drwx------  28 oracle   dba         8192 2004   7Ô 27 lost+found \r\n  2 drwxr-xr-x   2 oracle   dba          512 2004   7Ô 27 mnt \r\n  2 dr-xr-xr-x   2 oracle   dba          512 2004   7Ô 27 net \r\n 10 -rw-------   1 oracle   dba         4331  9Ô  7 16:21 nohup.out \r\n 16 drwxrwxrwt   6 oracle   dba          669  9Ô 23 16:34 tmp \r\n2 drwxr-xr-x   2 oracle   dba          512 2004   7Ô 27 TT_DB \r\n464 -rw-r--r--   1 oracle   dba       228415 2004  10Ô 15 adconfig.log \r\n  2 drwxr-xr-x   5 oracle   dba          512  9Ô 22 23:39 cdrom \r\n  2 drwxr-xr-x   3 oracle   dba          512 2004   9Ô 25 home

论坛徽章:
0
7 [报告]
发表于 2005-09-27 11:13 |只看该作者

哪位大虾救我一命, 在线等

这个问题最后解决了,是用光盘boot cdrom -s进去修复的,\r\n参照另外一台服务器修改了大部分文件和目录的属主,用了七八十次find,生成文件目录清单。用utral edit的列模式将清单生成chown user:group  file-or-directory-name 的格式,然后ftp到该服务器跑。\r\n\r\n其余的参照/var/sadm/install/contents记录的文件属组信息修复的。

论坛徽章:
0
8 [报告]
发表于 2005-09-27 11:19 |只看该作者

哪位大虾救我一命, 在线等

好。谢谢samshi的最后总结。

论坛徽章:
0
9 [报告]
发表于 2005-09-27 19:21 |只看该作者

哪位大虾救我一命, 在线等

谢谢!Samshi的帮忙!希望以后和大家多交流,我的QQ13937021。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP