免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: ihekoko
打印 上一主题 下一主题

急啊 求救 [复制链接]

论坛徽章:
0
11 [报告]
发表于 2006-05-18 15:01 |只看该作者
有没人帮帮忙啊
谢谢了
我试过好多方法了
还是没解决

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
12 [报告]
发表于 2006-05-18 17:12 |只看该作者
建议你到solaris版去问问。

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
13 [报告]
发表于 2006-05-18 17:34 |只看该作者
有其它账号的话,登上去su成root,然后再修改。
注意不能
su -
那样仍会调用root的登录shell;应该简单地:
su

论坛徽章:
0
14 [报告]
发表于 2006-05-18 17:59 |只看该作者
楼上的 我试过了
一样是提示 无效的shell

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
15 [报告]
发表于 2006-05-18 18:17 |只看该作者
抱歉,我说错了。;-P
看来你应该重启动到单用户模式或者用cdrom启动。

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
16 [报告]
发表于 2006-05-18 18:22 |只看该作者
也许你可以试试:
su -s /sbin/sh
没有环境测试,不一定行。
好像solaris的su不支持-s选项。又白说了。

[ 本帖最后由 woodie 于 2006-5-18 18:43 编辑 ]

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
17 [报告]
发表于 2006-05-18 18:45 |只看该作者
如果能用root ftp上去,下载/sbin/sh,再把它上传为/sbin/bash试试。

论坛徽章:
7
荣誉版主
日期:2011-11-23 16:44:17子鼠
日期:2014-07-24 15:38:07狮子座
日期:2014-07-24 11:00:54巨蟹座
日期:2014-07-21 19:03:10双子座
日期:2014-05-22 12:00:09卯兔
日期:2014-05-08 19:43:17卯兔
日期:2014-08-22 13:39:09
18 [报告]
发表于 2006-05-18 20:20 |只看该作者
http://www.geocities.com/~gregl/
   Boot the system using the Solaris CD and Installation Boot Disk :

    Insert the Solaris x86 CD in the drive
    Boot with the installation diskette (or 1,000,000 Driver Update Boot diskettes)

Boot from CD :

    Select the cdrom to boot when presented with the available devices

    [] Disk : Target 0
    [x] CD : Target 0

    Press the "F2> key to continue.

Boot to Single user mode from CD :

    When Freedom to select Interactive or Jumpstart installation type the following :

    Select type of installation : Boot -s

    Press the "enter> key to continue.

    Note : You have approxiamately 30 seconds to make this decision before the system boots into interactive installation.

Mount the drive usage :

    # mount /dev/dsk/cxdxsx /a # for IDE drives, replace x with value that reflects your drive

    Or

    # mount /dev/cxtxdxsx /a # for SCSI drives, replace x with value that reflects your drive

Set your terminal mode for editing :

    # TERM=at386;export term

Edit the passwd file and correct the path to the shell account :


    # vi /a/etc/passwd

    Line looks like :

    Root:0:1:Super-User:/:/sbin/ksh

    When completed should look like :

    Root:0:1:Super-User:/:/usr/bin/ksh

Exit vi and save the passwd file :

    : wq!

Un-mount the partition and reboot system :

    # cd /
    # umount /a
    # init 6

论坛徽章:
0
19 [报告]
发表于 2006-05-19 15:49 |只看该作者
楼上的  方法我试过了
不过 mount过程中 提示your mount device is not okey
try fsck first and try again
可是 fsck 我有担心 会丢东西  
上面可是有开发用的数据库啊

论坛徽章:
2
IT运维版块每日发帖之星
日期:2015-12-16 06:20:00数据库技术版块每日发帖之星
日期:2016-04-24 06:20:00
20 [报告]
发表于 2006-05-19 20:31 |只看该作者

乱试

  把硬盘搞下来换到其他电脑上不知道行不行,
  或是用在windows下面的能访问unix文件系统的软件试试。
  纯属乱猜。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP