免费注册 查看新帖 |

Chinaunix

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

solaris11忘记root密码,如何修改 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-12-07 14:15 |只看该作者 |倒序浏览
solaris11忘记root密码,如何修改

论坛徽章:
2
双鱼座
日期:2014-02-23 12:10:03操作系统版块每日发帖之星
日期:2015-12-17 06:20:00
2 [报告]
发表于 2011-12-07 14:26 |只看该作者
你忘记密码的速度比solaris 11发布的速度都快。。。。

论坛徽章:
0
3 [报告]
发表于 2011-12-07 14:27 |只看该作者
晕死,GA了不到一个月,连密码都忘记了

论坛徽章:
0
4 [报告]
发表于 2011-12-07 14:29 |只看该作者
哈哈,安装好了,好几天没开了,忘记了。。。

论坛徽章:
0
5 [报告]
发表于 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密码,重启后空密码进不去,不好使呀

论坛徽章:
2
双鱼座
日期:2014-02-23 12:10:03操作系统版块每日发帖之星
日期:2015-12-17 06:20:00
6 [报告]
发表于 2011-12-07 14:39 |只看该作者
root::::::::   8个冒号不能少,这样才算清空

论坛徽章:
0
7 [报告]
发表于 2011-12-07 14:44 |只看该作者
都是牛叉的人,solaris 11没摸过,opensolaris也没摸几次,几年没摸solaris 10了

论坛徽章:
0
8 [报告]
发表于 2011-12-07 14:48 |只看该作者

论坛徽章:
2
午马
日期:2015-01-27 11:22:392015年辞旧岁徽章
日期:2015-03-03 16:54:15
9 [报告]
发表于 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/ ... _or_Similar_Problem

论坛徽章:
0
10 [报告]
发表于 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
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP