ubuntu 10.04开启root :
先用普通用户登录系统
sudo passwd root //激活root用户
注销,然后选用root就可以登录到桌面了
但是有点遗憾的是,每次都需要自己输入root,而root用户名没有被列出来,在 /etc/gdm/gdm.schemas文件中发现了如下
<schema>
<key>greeter/Include</key>
<signature>s</signature>
<default></default>
</schema>
<schema>
<key>greeter/Exclude</key>
<signature>s</signature>
<default>bin,root,daemon,adm,lp,sync,shutdown,halt,mail,news,uucp,operator,nobody,nobody4,noaccess,postgres,pvm,rpm,nfsnobody,pcap</default>
</schema>
把下边schema中的root去掉,放到上面的那个里面,终于万事大吉,在登陆框里看到root了
修改后成:
<schema>
<key>greeter/Include</key>
<signature>s</signature>
<default>root</default>
</schema>
<schema>
<key>greeter/Exclude</key>
<signature>s</signature>
<default>bin,daemon,adm,lp,sync,shutdown,halt,mail,news,uucp,operator,nobody,nobody4,noaccess,postgres,pvm,rpm,nfsnobody,pcap</default>
</schema>