root一些問題 - Linux

Table of Contents

小弟最近灌了一個程式

在/etc/profile.d/ 中新增了一個.sh

之後重開用root登入卻跑入twm 而不是一般的gnome

並且跑出錯誤訊息export : xxxxxx :not avalid identifier

想將此.sh rm

結果所有的bash指令都不能用了 例如ls rm


使用其他使用者帳號登入就沒有事

但是也無法使用sudo 去修改或刪除這個.sh檔

請問這該怎麼解決呢

是該檔案造成路徑錯誤嗎

--

All Comments