2016-01-20 71 views
-1

我試圖登錄到我的Ubuntu終端作爲超級用戶訪問超級用戶,但終端說,來自終端"Cannot execute :No such file or directory"無法在Ubuntu

輸出:

[email protected]:~$ sudo su 
[sudo] password for gowtham: 
Cannot execute gowtham: No such file or directory 
[email protected]:~$ 

其中「的Gowtham」是我的用戶名。

+0

我不知道是怎麼回事,但你可以得到你想要的效果用'sudo -i'。 – skyler

+0

我嘗試了sudo -i, ,但終端說 「找不到命令」 – Gowtham

+0

檢查爲root用戶設置了什麼默認shell:cat/etc/passwd。也許設置一個不存在的默認shell「gowtham」,因此無法執行。 – mnille

回答

0

您的passwd文件可能是錯誤的。嘗試編輯它:

sudo nano /etc/passwd 

編輯從:

root:x:0:0:root:/root:somerandomfile 

root:x:0:0:root:/root:/bin/bash 
+0

非常感謝你,我改變了你的說法,它已經奏效了,現在'sudo su'完全適合我。 – Gowtham