ubuntu 10.10 root 禁用了,怎樣啟用呢?
1.sudo vi /etc/gdm/gdm.schemas
(建議使用 ‘:set nu’ 指令設定行号,更友善)
把裡面的内容:
69 <schema>
70 <key>greeter/Include</key>
71 <signature>s</signature>
72 <default></default>
73 </schema>
74
75 <schema>
76 <key>greeter/Exclude</key>
77 <signature>s</signature>
78 <default>bin,root,daemon,adm,lp,sync,shutdown,halt,mail,news,uucp,operator,nobody,no body4,noaccess,postgres,pvm,rpm,nfsnobody,pcap</default>
修改成:
69 <schema>
72 <default>root</default>
78 <default>bin,daemon,adm,lp,sync,shutdown,halt,mail,news,uucp,operator,nobody,no body4,noaccess,postgres,pvm,rpm,nfsnobody,pcap</default>
即把root的位置調換了一下
2. 設定root使用者密碼:
sudo passwd root
輸入新的 UNIX 密碼:
重新輸入新的 UNIX 密碼:
passwd:已成功更新密碼
3. 登出後, 重新登入 就可以看到root使用者了。