linuxÔõôËø¶¨Óû§
ÎÊÌ⣺ÔõÑùÔÚ linux ÖÐËø¶¨Óû§£¿°ì·¨£ºÒÔ³¬µÈÓû§È¨Ï޵Ǽ¡£Ê¹Óà passwd ÏÂÁîËø¶¨Óû§¡£°´ enter ¼ü¶ø²»ÊäÈëÃÜÂë¡£Ôٴΰ´ enter ¼üÈ·ÈÏËø¶¨¡£
ÔõÑùÔÚ Linux ÖÐËø¶¨Óû§
Ëø¶¨Óû§µÄÔµ¹ÊÔÓÉ
Ëø¶¨Óû§ÕË»§Óм¸¸öÔµ¹ÊÔÓÉ£¬ÀýÈ磺
±ÜÃâδ¾ÊÚȨ»á¼û
×èÖ¹¿ÉÒÉÔ˶¯
×ñÊØÇå¾²ºÏ¹æÒªÇó
Ëø¶¨Óû§µÄ°ì·¨
¿ÉÒÔʹÓÃÒÔÏ°취Ëø¶¨ Linux Óû§£º
ʹÓó¬µÈÓû§È¨Ï޵Ǽ
ÒÔ root Óû§Éí·Ý»ò¾ßÓÐ sudo ȨÏÞµÄÓû§Éí·ÝµÇ¼¡£
ʹÓà passwd ÏÂÁîËø¶¨Óû§
ÔËÐÐÒÔÏÂÏÂÁ
passwd username
µÇ¼ºó¸´ÖÆ
°´ Enter ¼ü¶ø²»ÊäÈëÃÜÂë
µ±ÌáÐÑÊäÈëÐÂÃÜÂëʱ£¬Ö»Ðè°´ Enter ¼ü¼´¿É¡£
È·ÈÏËø¶¨
Ôٴΰ´ Enter ¼üÒÔÈ·ÈÏËø¶¨¡£
½âËøÓû§µÄ°ì·¨
Òª½âËøÒÑËø¶¨µÄÓû§£¬Çëƾ֤ÒÔÏ°취²Ù×÷£º
ʹÓó¬µÈÓû§È¨Ï޵Ǽ
ÒÔ root Óû§Éí·Ý»ò¾ßÓÐ sudo ȨÏÞµÄÓû§Éí·ÝµÇ¼¡£
ʹÓà passwd ÏÂÁî½âËøÓû§
ÔËÐÐÒÔÏÂÏÂÁ
passwd -u username
µÇ¼ºó¸´ÖÆ
ÆäËûÒªÁì
³ýÁËʹÓà passwd ÏÂÁÉÐÓÐһЩÆäËûÒªÁì¿ÉÒÔËø¶¨Óû§£º
usermod ÏÂÁʹÓà usermod -L username ÏÂÁî¡£
chattr ÏÂÁʹÓà chattr +i /home/username ÏÂÁÓû§Ö÷Ŀ¼±ê¼ÇΪ²»¿É±ä¡£
×¢ÖØ£º
ÔÚËø¶¨Óû§Ö®Ç°£¬ÇëÈ·±£ÄúÓÐÀíÓÉÕâÑù×ö£¬²¢¾ß±¸Êʵ±µÄȨÏÞ¡£
Ëø¶¨Óû§²¢²»»áɾ³ý»ò½ûÓÃËûÃǵÄÕÊ»§¡£
ÈôÊÇÄúËø¶¨ÁË×Ô¼ºµÄÓû§£¬Äú½«ÎÞ·¨Ê¹ÓøÃÕÊ»§µÇ¼£¬Ö±µ½Ëü±»½âËø¡£
ÒÔÉϾÍÊÇlinuxÔõôËø¶¨Óû§µÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡