root帳號消失了該怎麼辦? - Linux

Ula avatar
By Ula
at 2009-09-09T22:58

Table of Contents

我朋友在將執行了mount別台主機的時候

因為等待時間有點長 就按了ctrl c

結果root帳後就消失了

su - root的指令會出現 user root does not exist 的訊息

然後觀察了一下/etc的passwd

發現root 被改成ROOT 變成大寫了

可是用 su - ROOT 嘗試登入 卻也不是原來的密碼

不知道有沒有人遇過類似的問題 或知道怎麼解決

我使用的是red hat 的系統

謝謝!!!

--
Tags: Linux

All Comments

Lucy avatar
By Lucy
at 2009-09-11T19:49
single mode 把root的password清掉?

for裡面的背景執行

Regina avatar
By Regina
at 2009-09-09T22:37
我想直接執行一行指令 # for ((i=1;iandlt;=100;i++)); do ping 192.168.0.and#34;$iand#34; -c 5; done 就是從192.168.0.1一直ping到192.168.0.100,各ping五次 想說改用背景執行的話,就可以不用限制五次, ...

ubuntu8.04無法上網

Elma avatar
By Elma
at 2009-09-09T20:36
剛剛在終端機打sudo lshw後跑出了很多的資訊 其中network部分如下: *-network description: Ethernet interface product: 3c940 10/100/1000Base-T [Ma ...

ubuntu8.04無法上網

Margaret avatar
By Margaret
at 2009-09-09T18:20
最近在一台電腦上剛裝ubuntu8.04 應該是使用wubi的方式安裝的 已經可以進去作業系統了 但是目前開啟firefox沒辦法連線(有線,使用XP可以上網) 我是用中華電信ADSL上網 所以在網路設定的地方選點對點-andgt;PPPoE-andgt;輸入帳號密碼 完成之後右上角那個兩個電腦的 ...

dd

Olga avatar
By Olga
at 2009-09-09T17:22
我想把 root partition 換到新的硬碟上 新的比舊的大 (30GB --andgt; 70GB) 這樣可以用 dd 指令嗎? copy 完之後是不是還是只有30GB的硬碟空間? 另外有 40GB 的 free space? - ...

請問sed 取代 ' 的語法

Eartha avatar
By Eartha
at 2009-09-09T12:49
※ 引述《ffrr (冰色太陽)》之銘言: : 得到b.txt的內容為 and#39;hand#39;and#39;tand#39;and#39;tand#39;and#39;pand#39;and#39;:and#39;and#39;/and#39;and#39;/and#39; : 請問要怎麼才能把 an ...