Ubuntu 12.04 rootÓû§µÇ¼ÉèÖÃ
Ubuntu 12.04ĬÈÏÊDz»ÔÊÐírootµÇ¼µÄ£¬ÔڵǼ´°¿ÚÖ»ÄÜ¿´µ½ÆÕͨÓû§ºÍ·Ã¿ÍµÇ¼¡£ÒÔÆÕͨÉí·ÝµÇ½UbuntuºóÎÒÃÇÐèÒª×öһЩÐÞ¸Ä,ÆÕͨÓû§µÇ¼ºó£¬ÐÞ¸ÄϵͳÅäÖÃÎļþÐèÒªÇл»µ½³¬¼¶Óû§Ä£Ê½,ÔÚÖն˴°¿ÚÀïÃæÊäÈë: sudo -s.È»ºóÊäÈëÆÕͨÓû§µÇ½µÄÃÜÂ룬»Ø³µ¼´¿É½øÈë rootÓû§È¨ÏÞģʽ¡£
È»ºóÖ´ÐÐ: vi /etc/lightdm/lightdm.conf.
Ôö¼Ó greeter-show-manual-login=true allow-guest=false . ÐÞ¸ÄÍêµÄÕû¸öÅäÖÃÎļþÊÇ
[SeatDefaults]
greeter-session=unity-greeter
user-session=ubuntu
greeter-show-manual-login=true #ÊÖ¹¤ÊäÈëµÇ½ϵͳµÄÓû§ÃûºÍÃÜÂë
allow-guest=false #²»ÔÊÐíguestµÇ¼
È»ºóÎÒÃÇÆô¶¯rootÕʺţº
sudo passwd root
¸ù¾ÝÌáʾÊäÈëroottÕʺÅÃÜÂë¡£
ÖØÆôubuntu£¬µÇ¼´°¿Ú»áÓС°µÇ¼¡±Ñ¡ÏÕâʱºòÎÒÃǾͿÉÒÔͨ¹ýrootµÇ¼ÁË¡£
UBUNTUµÄĬÈÏrootÃÜÂëÊǶàÉÙ£¬ÐÞ¸ÄrootÃÜÂë
ĬÈÏrootÃÜÂëÊÇËæ»úµÄ£¬¼´Ã¿´Î¿ª»ú¶¼ÓÐÒ»¸öеÄrootÃÜÂë¡£ÎÒÃÇ¿ÉÒÔÔÚÖÕ¶ËÊäÈëÃüÁî sudo passwd£¬È»ºóÊäÈ뵱ǰÓû§µÄÃÜÂ룬
enter£¬
enter£¬
¶þ¡¢Öն˻áÌáʾÎÒÃÇÊäÈëеÄÃÜÂ벢ȷÈÏ£¬´ËʱµÄÃÜÂë¾ÍÊÇrootÐÂÃÜÂë¡£Ð޸ijɹ¦ºó£¬ÊäÈëÃüÁî su root£¬ÔÙÊäÈëеÄÃÜÂë¾ÍokÁË¡£
Èý ¡¢·ÖÎöûÓÐĬÈϵģ¬ÒòΪÄ㻹û¸ørootÉèÖÃÃÜÂ룬µÚÒ»¸ö user ÊÇÔÚ admin ×é £¬ËùÒÔËû¿ÉÒÔ¸ø root ÉèÖÃÃÜÂë , so
sudo passwd root
[sudo] password for you £º---> ÊäÈëÄãµÄÃÜÂ룬²»»áÏÔʾ
sudo passwd root
[sudo] password for you £º---> ÊäÈëÄãµÄÃÜÂ룬²»»áÏÔʾ
Enter new UNIX password:
--- > ÉèÖÃroot ÃÜÂë
Retype new UNIX password:
Retype new UNIX password:
--> Öظ´
=========================================================================
=========================================================================
Óð²×°Ê±½¨Á¢µÄÓû§µÇ½ºóÔÚShellÖ´ÐÐ
sudo passwd root»Ø³µPassword:
sudo passwd root»Ø³µPassword:
ºóÊäÈë¸Õ½¨Á¢µÄÓû§ÃÜÂë»Ø³µ
Enter new UNIX password:
Enter new UNIX password:
ÕâʱÊäÈëÒªÉèÖõÄrootÃÜÂëÁ½´Î¾Í»á¿´µ½
password updated successfullyÁË£¡
=========================================================================
=========================================================================
°²×°ºó¿ÉÒÔµ½Óû§ºÍ×éÀïÃæÈ¥¸Ä£¬Ëæ±ã¸ÄµÄ¡£ÒªÔڵǼʱÓÃrootµÄ»°£¬¿ÉÒÔÔÚ¡°µÇ¼½çÃ桱Àï¸Ä£¬ÈùÜÀíÔ±µÇ¼ϵͳµÄÑ¡Ïî¾Í¿ÉÒÔÁË