ree 撰寫於文章 <3VQ286$FzP@bbs.cis.nctu.edu.tw>...
>
>請教各位linux高手
>
>    我就是不小心把root密碼用舊檔蓋掉了所以等於把root密碼改成我不知道的
>    請問這樣要如何解救呢??
>    各位這粉急可以解救一下我嗎??
關了機器沒有﹖如果沒有的話﹐既然你可以蓋掉舊檔﹐那麼你應該也可以進去修改
/etc/passwd﹐把最靠近root的第一和第二個 ':' 之間的字串刪除掉。
或﹐直接用passwd root看看。

如果已經關了機器﹐試試下面的﹕
1, Please try 'linux -s' when it prompts 'LILO boot:'
2, You may (not sure, good luck here) get a 'bash#' prompt
3, Type 'passwd root' to assign root a new password
4, Type 'exit' when done
5, Login as 'root' with the new given password
6, Please remember your new password :)


-----原始郵件-----
寄件者: ree <ree.bbs@cis.nctu.edu.tw>
新聞群組: tw.bbs.comp.linux
日期: Friday, 16 July 1999 AM 11:22
主旨: Re: Root密碼不小心被我......


>> :    用磁片開機.
>> :    然後mount 你的主硬碟..
>> :    再到 etc 目錄底下找你的passwd檔.
>> :    將root使用者的密碼殺掉..
>> :    再重新開機..
>> :    此時你的root就沒有密碼..進去再重設就行囉:)
>> ==========================
>> 介紹一個連軟碟都不必動到的方式
>> 只要在開機時
>> boot:linux init=/bin/sh rw
>> 就可以了
>sorry!!!
>不用磁片開機怎模進去
>boot:   <--??
>我是用radhat 啦
>磁片開機只能進安裝畫面阿
>怎樣可以進指令畫面???
>--
> * Origin: ★ 交通大學資訊科學系 BBS ★ <bbs.cis.nctu.edu.tw: 140.113.23.3>