免费注册 查看新帖 |

Chinaunix

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

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

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

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

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

麻烦大了!

参照/var/sadm/install/content修复部分,

以前有网友写过方法,用脚本解决。

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

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

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

发上来了。

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

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

cq-ha:/ #cat  sam.shi

下面的最关键!!!!
  8 drwxr-xr-x  17 oracle   dba         3584  9ÔÂ 23 09:19 dev
  2 drwxr-xr-x   6 oracle   dba         1024 2004   7ÔÂ 27 devices
  8 drwxr-xr-x  52 oracle   dba         4096  9ÔÂ 23 16:39 etc

  2 drwxr-xr-x  11 oracle   dba          512  9ÔÂ 22 20:09 kernel
  0 -rw-r--r--   1 oracle   dba            0 2004  10ÔÂ 15 l

  2 drwx------   2 oracle   dba          512 2004   7ÔÂ 27 nsmail
  2 drwxr-xr-x  10 oracle   dba          512  9ÔÂ 23 02:56 opt
  2 drwxr-xr-x  33 oracle   dba         1024 2004   8Ô  3 platform
  2 drwxr-xr-x   2 oracle   dba         1024 2004   8Ô  3 sbin
*************************************
16 drwx------  28 oracle   dba         8192 2004   7ÔÂ 27 lost+found
  2 drwxr-xr-x   2 oracle   dba          512 2004   7ÔÂ 27 mnt
  2 dr-xr-xr-x   2 oracle   dba          512 2004   7ÔÂ 27 net
10 -rw-------   1 oracle   dba         4331  9Ô  7 16:21 nohup.out
16 drwxrwxrwt   6 oracle   dba          669  9ÔÂ 23 16:34 tmp
2 drwxr-xr-x   2 oracle   dba          512 2004   7ÔÂ 27 TT_DB
464 -rw-r--r--   1 oracle   dba       228415 2004  10ÔÂ 15 adconfig.log
  2 drwxr-xr-x   5 oracle   dba          512  9ÔÂ 22 23:39 cdrom
  2 drwxr-xr-x   3 oracle   dba          512 2004   9ÔÂ 25 home

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

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

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

其余的参照/var/sadm/install/contents记录的文件属组信息修复的。

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

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

好。谢谢samshi的最后总结。

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

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

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

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP