• 软件测试技术
  • 软件测试博客
  • 软件测试视频
  • 开源软件测试技术
  • 软件测试论坛
  • 软件测试沙龙
  • 软件测试资料下载
  • 软件测试杂志
  • 软件测试人才招聘
    暂时没有公告

字号: | 推荐给好友 上一篇 | 下一篇

改fireware的口令

发布: 2007-6-08 22:43 | 作者: seanhe | 来源: | 查看: 67次 | 进入软件测试论坛讨论

领测软件测试网
各位老大,我这儿有一台SUN的服务器,安的是solaris5.7 不知是否我操作不当,还是别的原因,造成了没有了root用户,而且我的系统里面只有这一个超级用户,我平时都是远程管理的,现在在本地也看不到login的画面了,系统报错没有了超级用户,也不能telnet到这台机器,我现在很急,不知谁有办法帮我搞定,我不想重装系统,因为要装很多的东西,而且现在很多人在用

 procrus 回复于:2003-10-14 18:20:48
光盘解决

 sword 回复于:2003-10-14 19:05:42
如何解决,因为我没有装过,能不能说详细一点,我从论坛的贴子里找了一些解决方法,但当我插入光盘,按STOP+A 进入后显示boot go 和login三个选项,我试了下命令ok boot cdrom -s但它让我输入firmware的密码,我怎么知道firmware的密码

 race 回复于:2003-10-14 19:08:07
那就没办法了。

 fanfan 回复于:2003-10-14 20:24:17
知道了fireware的口令可以用光盘引导;知道了root可以改fireware的口令,两个都不知道只有找sun公司解决了

 sword 回复于:2003-10-14 20:28:11
我现在两个都不知了,看来只有找SUN了,好像他们也是只给你换芯片,如果换芯片,那就比较麻烦了

 En_route 回复于:2003-10-15 02:34:57
Losing the root password is not uncommon but losing a root account is really bizarre.

Back to eeprom PASSWORD:

(A) 如果不想弄脏你的手, 看来只有找SUN了.


OR

(B) SOME VERY, VERY, VERY SERIOUS "FUN" IF YOU ARE ADVENTUROUS...

Before reading on

***********************************
                     W A R N I N G !!!                                        
        you could lose all your data AND              
                       your job                                                    
***********************************

You have been warned.



"From www.netbsd.org SPARC/port FAQ [See full reference below]" ==>

The PROM wants a password when I abort booting (top):
 
CASE 1:
You need physical access to the machine to erase the password. Power off, power on, hold [L1]+[N], (or [STOP]+[N]) until the PROM prompt. This will reset your PROM to the factory defaults. 

CASE 2:
Alternatively (THIS IS NOT FOR THE FAINT OF HEART), power on, abort, wait for the password prompt, carefully remove the PROM chip, hit return, carefully replace the PROM, enter a new password.

Comments
CASE 1: does NOT always Work.
(My experience: I have tried this in quite a number of occasions on very old SPARC/ULTRASPARC machines)

CASE 2: this method is apparently more effective. 
(My experience: again, only on my spare SPARC/ULTRASPARC machines). 

But you have to check yourself if your are the kind of person for the job. 

For example,

Ask yourself frankly, if in front of the problem of losing root account, 而且现在很多人在用:
 
(1) your hands are not shaky?
(2) your heart beat is still normal?
(3) your life insurance policy will be invalidated if you get electricuted or have an heart attack (remember this method is not for the faint of heart) because of this act?

if any of your answers to Q1 to Q3 is yes, forget it AND 找SUN ba!

But if you still want to try, you still have to figure out how to solve
而且现在很多人在用. For example, do you have a backup server to switch servers?


My advice: 找SUN ba! 



===============================================
REFERENCE

http://www.netbsd.org/Ports/sparc64/faq.html =>

Other sources of information =>

Sun NVRAM/Hostid FAQ - if your machine PROM's battery has gone dead 

[i.e. ==> 
http://www.squirrel.com/squirrel/sun-nvram-hostid.faq.html ]

Frequently Asked Questions about Sun NVRAM/hostid == Q7

http://www.netbsd.org/Ports/sparc/faq.html#prom-passwd
@The PROM wants a password when I abort booting (top):-

You need physical access to the machine to erase the password. Power off, power on, hold [L1]+[N], (or [STOP]+[N]) until the PROM prompt. This will reset your PROM to the factory defaults. 
Alternatively (this is not for the faint of heart), power on, abort, wait for the password prompt, carefully remove the PROM chip, hit return, carefully replace the PROM, enter a new password. 



http://www.squirrel.com/squirrel/sun-nvram-hostid.faq.html 
@ Odds and Ends:-

Resetting the NVRAM (when Stop-N doesn't do it)
You might want to do this to recover from the loss of an NVRAM password (in full security mode) or if you mess up your nvramrc. I think that the safest thing to do is pay the $20 for a new Timekeeper chip. But several people have reported to me success hot-swapping the NVRAM (i.e. removing and installing a new chip when the system is on).

dowdy@cs.colorado.edu (Stephen Dowdy) writes:
> (this may apply to other SPARC models.)
> IPC --  remove NVRAM, power-up without.  *carefully* hot-plug it in when OK
>     prompt comes up (after it says CHECKSUM failure).  do:
>         OK set-defaults
>         OK set-defaults
>     then power-cycle
>
> SS2 --  you need to boot from a good NVRAM, then hot-swap the "bad" one
>     and "set-defaults".  Only if the L1-N (or is it L1-D) thingy
>     doesn't work for you.


===============================================

 sword 回复于:2003-10-15 16:39:24
thanks En_route,I want to try it

 race 回复于:2003-10-15 17:18:26
明天有空找个机器的OK加个口令,看看能用什么办法进去。

 En_route 回复于:2003-10-15 17:36:55
[quote="sword"]thanks En_route,I want to try it[/quote]

I like your decison.

Below is my experience with my SparcStation 4 (only the real date replaced by 200x and my real name by En_route). Hope that it gives you more "ammunition" for the task.

Looking back: DanDa, shou you ding (VERTICAL pull), xin you xi -- like any real professional !

BTW: the title of the posting should be more appropriately called Re-setting the eeprom password or
Relaiming a machine secured by a passworded eeprom

This becomes a "JiBenGong" for shoping around 2-hand unix machines, in particular sun machines -- low-end or even high-end(if you can absorb the consequence of failure). 

=============================================
The PROM wants a password when I abort booting (top) 
[Extracted from http://www.netbsd.org NetBSD/SPARC FAQ]

You need physical access to the machine to erase the password. Power off, power on, hold [L1]+[N], (or [STOP]+[N]) until the PROM prompt. This will reset your PROM to the factory defaults.

Alternatively (this is not for the faint of heart), power on, abort, wait for the password prompt, carefully remove the PROM chip, hit return, carefully replace the PROM, enter a new password.


200x.11.05: This morning, I tried the faint of heart. 

Step 1:  After booting and before it settled, I “[stop] + [a]” the SUN SPARCstation 4 machine. The machine prompted for b=boot, c=continue, n=new commands:

Step 2: I key-ed in ‘n’, and as frustrated as before, SS4 requested for a PROM password which I did not have..

Step 3:  With the machine still running, I used a pair of clippers to pull out the PROM IC( Good GOD, quite forcefully, for this was my first trial, and the whole operation sounded bizarre at least for the non-EE engineer) .

Step 4: I then key-ed in ‘n’ again. The machine responded with the ‘ok’ prompt instead of asking for the PROM password.

Step 5: I put the PROM IC back in its slot and key-ed in the command ‘password’. I then enter the new password (8 chars) and re-keyed in again the password as requested by the machine for confirmation. 

Step 6: So I reboot and THANK GOD, I have my own PROM password for my SS4 machine. I can now install Solaris, Linux, or NetBSD as I wish with the boot cdrom command. And added to my knowledge, what an eeprom does!

En_route 200x.11.05

 fanfan 回复于:2003-10-15 19:42:45
我还是觉得eprom加口令太危险了,万一忘掉可就麻烦了

第二种方法听过,也不敢去试,公家的机器搞坏了可赔不起

 gang5415 回复于:2003-10-15 19:52:24
密码应该存放在firmware的NVRAM里,所以建议你首先找个没有密码的NVRAM,然后替换系统现有的NVRAM,启动系统到Ok,然后带电拔掉NVRAM,然后直接把有密码的NVRAM插上去,
OK set-defaults
如果系统提示The IDProm is not invalid,那么你也不必吊它。
俺对付这种由于设置错误而进入不了系统的问题,全部是采用这种办法高顶的。你试试吧。

 sword 回复于:2003-10-18 15:13:24
谢谢各位的帮忙,现在我把passwd已经去掉了,但现在机器一起动出现:
system test failed
reboot with command boot
boot device:net file and args
using onboard Transceivier - link up
time out waiting for ARP/RARP Packet
time out waiting for ARP/RARP Packet
time out waiting for ARP/RARP Packet
time out waiting for ARP/RARP Packet
...........
我查看了一下env设置,里面boot-device=disk net应该是对的呀,现在不知怎么解决了,那位老大帮忙看看

 Johnunix 回复于:2003-10-18 15:55:47
# reset

or 

# boot cdrom

 gang5415 回复于:2003-10-18 18:08:05
悄悄的问一下,你的密码是如何去掉的?关注ing!!!!

 iricyan 回复于:2003-10-18 18:29:00
zzzzzzzz
最后是用那个方法解决的。。。。

 fanfan 回复于:2003-10-18 18:48:37
改成boot disk

 En_route 回复于:2003-10-18 18:49:39
[quote="sword"]谢谢各位的帮忙,现在我把passwd已经去掉了,但现在机器一起动出现:
system test failed
reboot with command boot
boot device:net file and args
using onboard Transceivier - link up
time out waiting fo..........[/quote]

If the problem persists, please post the result of banner at ok prompt -- This is to check if the physical mac address (8:0:20:ab:cd:ef) has been erased.

 sword 回复于:2003-10-19 13:25:50
我去掉passwd的方法是,先记下ethnet address和hostid,然后关机
1,把nvram拆下,反插
2,开机,几秒钟,使nvram的内容擦除
3,然后关机,再正确插上,开机
4,这时开机会自动进入OK 模式,键入新的 NVRAM 参数: 
ok 0 0 mkp 
ok 8 0 20 nn nn nn hostid mkpl 
ctl-d 
ctl-r 

ok banner 
这将重新设置没有passwd的nvram的内容 ,如果还是有passwd,重复做一下。
另外,我可以从OK模式启动boot disk,但它还是报错说我没有root用户,我从安装光盘启动 boot cdrom -s ,然后mount /dev/dsk/c0t0d0s0 /mnt 
发现我的passwd 和shadow里面root用户都在,也没有什么错,而且我把其中的一个普通用记变成了超级用户,重新启动,还是报没有root,现在该怎么办

 sunmarmot 回复于:2003-10-19 19:22:07
算你们狠~~~~~

 minechina 回复于:2003-10-20 12:59:59
[quote:2b0b04f02f="sword"]谢谢各位的帮忙,现在我把passwd已经去掉了,但现在机器一起动出现:
system test failed
reboot with command boot
boot device:net file and args
using onboard Transceivier - link up
time out waiting fo..........[/quote:2b0b04f02f]

你看EPROM里,还有两项有NET这样的地方,一个是GIAG***,是另外一个我忘了是怎么写的了,你把它改成DISK就行了。

延伸阅读

文章来源于领测软件测试网 https://www.ltesting.net/


关于领测软件测试网 | 领测软件测试网合作伙伴 | 广告服务 | 投稿指南 | 联系我们 | 网站地图 | 友情链接
版权所有(C) 2003-2010 TestAge(领测软件测试网)|领测国际科技(北京)有限公司|软件测试工程师培训网 All Rights Reserved
北京市海淀区中关村南大街9号北京理工科技大厦1402室 京ICP备10010545号-5
技术支持和业务联系:info@testage.com.cn 电话:010-51297073

软件测试 | 领测国际ISTQBISTQB官网TMMiTMMi认证国际软件测试工程师认证领测软件测试网