尊龙凯时人生就是搏

ÔÚ Debian Öн«Óû§Ìí¼Óµ½ SUDOERS ×éµÄ 2 ÖÖÒªÁì

sudoers ×éÔÚ debian linux ÖÐÊÎÑÝ×ÅÖÁ¹ØÖ÷ÒªµÄ½ÇÉ« £¬ÊÚÓèÓû§ÖÎÀíȨÏÞ¡£½«Óû§Ìí¼Óµ½ sudoers ×éʹËûÃÇÄܹ»ÒÔ root ȨÏÞÖ´ÐÐÏÂÁî £¬´Ó¶øΪËûÃÇÌṩÐëÒªµÄÖÎÆÊÎö¼ûȨÏÞÒÔÔÚ debian ϵͳÉÏÖ´ÐÐÖÖÖÖʹÃü¡£

ÔÚ×°Öà Debian Linux µÄÀú³ÌÖÐ £¬ÈôÊÇÄ㽫 root ÕÊ»§µÄÃÜÂë±£´æΪ¿Õ £¬ÄÇôϵͳÖеĠ½¨ÉèµÄµÚÒ»¸öÓû§ ½«ÓµÓÐÖÎÀíȨÏÞ¡£¿ÉÊÇ £¬ÈôÊÇÄãÉèÖÃÁË root ÃÜÂë £¬ÄÇôÓû§Ãû½«²»¾ßÓÐ sudo ȨÏÞ¡£Òò´Ë £¬ÔÚʹÓÃÓû§ÕÊ»§Ö´ÐÐÖÎÀíʹÃüʱ £¬Äã¿ÉÄÜ»áÓöµ½ÒÔÏÂÀàËƵĹýʧ¡£

<username> is not in the sudoers file. This incident will be reported.</username>

µÇ¼ºó¸´ÖÆ

½«Óû§Ìí¼Óµ½ SUDOERS ×é֮ǰ

±¾ÎÄÖ¼ÔÚÌṩÓйØÔÚ Debian ÖÐÏò SUDOERS ×éÌí¼ÓÓû§µÄ·Ö²½Ö¸ÄÏ £¬È·±£Äã¿ÉÒÔÓÐÓõØÖÎÀíÓû§È¨ÏÞºÍϵͳÇå¾²¡£

ÔõÑù½«Óû§Ìí¼Óµ½ Debian ÖÐµÄ SUDOERS ×é

Òª½«Óû§Ìí¼Óµ½ Debian ÖÐµÄ SUDOERS ×é £¬Çëƾ֤ÒÔϼòÆÓ°ì·¨²Ù×÷£º

µ¥»÷¡°Öնˡ±Í¼±ê»òʹÓÿì½Ý¼ü Ctrl+Alt+T £¬·­¿ª Debian ϵͳÉϵÄÖնˡ£

ʹÓÃÒÔÏÂÏÂÁîÇл»µ½ root Óû§£º

su -

µÇ¼ºó¸´ÖÆ µÇ¼ºó¸´ÖÆ

ϵͳ½«ÌáÐÑÄãÌṩ root ÃÜÂë¡£ÊäÈë root ÃÜÂë²¢°´»Ø³µ¼ü¡£

ÒÔ root Óû§Éí·ÝµÇ¼ºó £¬ÊäÈëÒÔÏÂÏÂÁȷ±£Æ¾Ö¤ÄãµÄÓû§Ãû¾ÙÐиü¸Ä¡£ÔÚ´ËʾÀýÖÐ £¬½« arindam Ì滻ΪÄãµÄÓû§Ãû¡£

/sbin/addgroup arindam sudo

µÇ¼ºó¸´ÖÆ

ÈôÊÇÉÏÃæµÄÏÂÁîÎÞЧ £¬»¹¿ÉÒÔʹÓÃÏÂÃæµÄÏÂÁ

usermod -aG sudo arindam

µÇ¼ºó¸´ÖÆ

°´Í˳öÍÑÀë root ÌáÐÑ·û¡£×¢Ïú²¢ÖØеǼ¡£ÏÖÔÚÄã¿ÉÒÔʹÓÃÄãµÄÓû§ÃûÖ´ÐÐÈκÎÖÎÀí²Ù×÷¡£

ÁíÒ»ÖÖÒªÁì

Äã¿ÉÒÔʹÓÃÓëÏÂÃæÏàͬµÄÏÂÁî½øÈë root ÕÊ»§¡£Ê¹Óà root Õ˺ŵǼ£º

su -

µÇ¼ºó¸´ÖÆ µÇ¼ºó¸´ÖÆ

È»ºóʹÓànano »ò visudo »òÈκα༭Æ÷·­¿ª /etc/sudoers Îļþ¡£

nano /etc/sudoers

µÇ¼ºó¸´ÖÆ

Ìí¼ÓÒÔÏÂÐкÍÓû§Ãû¡£Æ¾Ö¤ÄãµÄÓû§ÃûÌæ»» arindam¡£

arindamALL=(ALL)ALL

µÇ¼ºó¸´ÖÆ

ÉúÑIJ¢¹Ø±ÕÎļþ¡£È»ºó £¬×¢Ïú²¢ÖØеǼ¡£ÕâÓ¦¸Ã»á¸øÓû§Ãû root ȨÏÞ¡£

ÑéÖ¤ SUDOERS ×é³ÉÔ±

ÒªÑéÖ¤Óû§ÊÇ·ñÒÑÀÖ³ÉÌí¼Óµ½ SUDOERS ×é £¬Äã¿ÉÒÔ·­¿ªÒ»¸öеÄÖն˴°¿Ú²¢ÊäÈëÒÔÏÂÏÂÁî¡£½« arindam Ì滻ΪÄãÌí¼Óµ½ SUDOERS ×éµÄÓû§µÄÏÖÊÊÓû§Ãû¡£

sudo -l -U arindam

µÇ¼ºó¸´ÖÆ

µ±Óû§ÊôÓÚSUDOERS×éʱ £¬Äã¿ÉÒÔÉó²éËûÃǵÄȨÏÞÁбí¡£ÕâÊÇÒ»¸öʾÀý £¬Äã¿ÉÒÔ¿´µ½ÎÒµÄÓû§Ãû¾ßÓÐËùÓлá¼ûȨÏÞ¡£

ÊÚÓèȨÏÞºó

¿¢ÊÂÓï

½«Óû§Ìí¼Óµ½ SUDOERS ×齫ÊÚÓèËûÃÇÖ÷ÒªµÄÖÎÀíȨÏÞ¡£ÔÚÌṩ´ËÀà»á¼ûȨÏÞ¸øÓû§Ö®Ç° £¬¶ÔÓû§µÄ¿ÉÐŶȺÍÔðÈξÙÐÐÏ꾡˼Á¿¼«ÎªÒªº¦¡£sudo ʹÓò»µ±¿ÉÄܻᵼÖÂϵͳÒâÍâË𻵻òÊÜËð¡£

Çë¼Ç×ÅÔÚίÅÉÖÎÀíȨÏÞʱҪСÐÄÉóÉ÷ £¬²¢°´ÆÚ¼ì²éÓû§È¨ÏÞÒÔά»¤Çå¾²µÄ Debian ϵͳ¡£

ÒÔÉϾÍÊÇÔÚ Debian Öн«Óû§Ìí¼Óµ½ SUDOERS ×éµÄ 2 ÖÖÒªÁìµÄÏêϸÄÚÈÝ £¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡

ÃâÔð˵Ã÷£ºÒÔÉÏչʾÄÚÈÝȪԴÓÚÏàÖúýÌå¡¢ÆóÒµ»ú¹¹¡¢ÍøÓÑÌṩ»òÍøÂçÍøÂçÕûÀí £¬°æȨÕùÒéÓë±¾Õ¾ÎÞ¹Ø £¬ÎÄÕÂÉæ¼°¿´·¨Óë¿´·¨²»´ú±í尊龙凯时人生就是搏ÂËÓÍ»úÍø¹Ù·½Ì¬¶È £¬Çë¶ÁÕß½ö×ö²Î¿¼¡£±¾ÎĽӴýתÔØ £¬×ªÔØÇë˵Ã÷À´ÓÉ¡£ÈôÄúÒÔΪ±¾ÎÄÇÖÕ¼ÁËÄúµÄ°æȨÐÅÏ¢ £¬»òÄú·¢Ã÷¸ÃÄÚÈÝÓÐÈκÎÉæ¼°ÓÐÎ¥¹«µÂ¡¢Ã°·¸Ö´·¨µÈÎ¥·¨ÐÅÏ¢ £¬ÇëÄúÁ¬Ã¦ÁªÏµ尊龙凯时人生就是搏ʵʱÐÞÕý»òɾ³ý¡£

Ïà¹ØÐÂÎÅ

ÁªÏµ尊龙凯时人生就是搏

18523999891

¿É΢ÐÅÔÚÏß×Éѯ

ÊÂÇéʱ¼ä£ºÖÜÒ»ÖÁÖÜÎå £¬9:30-18:30 £¬½ÚãåÈÕÐÝÏ¢

QR code
sitemap¡¢ÍøÕ¾µØͼ