sun菜鸟 发表于 2011-12-07 14:15

solaris11忘记root密码,如何修改

solaris11忘记root密码,如何修改

东方蜘蛛 发表于 2011-12-07 14:26

:em06:你忘记密码的速度比solaris 11发布的速度都快。。。。

calcm 发表于 2011-12-07 14:27

晕死,GA了不到一个月,连密码都忘记了:dizzy:

sun菜鸟 发表于 2011-12-07 14:29

哈哈,安装好了,好几天没开了,忘记了。。。

sun菜鸟 发表于 2011-12-07 14:37

Boot fromthe Oracle Solaris 11 Express Live CDor 1 fromanOracle Solaris 11 Express AI server.
At the terminal prompt, import the root pool.
# zpool import rpool
Mount the ZFS BE on /a
# beadm mount solaris-1 /a
Modify the BE contents to resolve the boot failure.
For example, review the menu.lst file to determine if the boot entries are correct.
# cat /a/rpool/boot/menu.lst
title solaris
bootfs rpool/ROOT/solaris
title solaris-1
bootfs rpool/ROOT/solaris-1
If a password or shadow entry is preventing a console login, then correct that problem.
# cd /a/etc
# vi passwd
If necessary, set theTERM type.
# TERM=vt100
# export TERM
Update the boot archive
# bootadm update-archive -R /a
Reboot the system.
# init 6

清空shadow文件里面root密码,重启后空密码进不去,不好使呀

东方蜘蛛 发表于 2011-12-07 14:39

root::::::::   8个冒号不能少,这样才算清空:em06:

waily 发表于 2011-12-07 14:44

都是牛叉的人,solaris 11没摸过,opensolaris也没摸几次,几年没摸solaris 10了

qianxia0_ 发表于 2011-12-07 14:48

:mrgreen:

to407 发表于 2011-12-07 15:15

回复 1# sun菜鸟


    你用的ZFS么。。。。

   如果是ZFS可以看这里。。。 话说我为了怕忘root,第一件事情就配了无密码sudo


http://docs.oracle.com/cd/E19963-01/html/821-1448/ggpco.html
http://www.solarisinternals.com/wiki/index.php/ZFS_Troubleshooting_Guide#Recover_from_Lost_Root_Password_or_Similar_Problem

liusu_520 发表于 2011-12-07 20:35

大家好,我今天做了测试,solaris11尽管在/etc/shadow删除了密码,对于Debian的发行版本并不允许你按“无密码”状态登录,在这种情况下,你需要做的是用其他用户(密码已经)的加密后的密码取代root的密码,然后使用该密码重新登录,我已经测试过了,可以用别的用户的密码登陆。
步骤如下:

使用安装盘(sol-11-1111-text-x86.iso)启动系统,选择(3)进入shell
# zpool import -f rpool                        //导入rpool
# zpool list
# beadm mount solaris /a                               //根据be名字修改solaris
# vi /a/etc/shadow
# more /a/etc/shadow                              //确认是否修改成功
# umount -f /a                或直接# reboot
页: [1] 2
查看完整版本: solaris11忘记root密码,如何修改