Ô´´£ºÒ»¸ó
ĬÈÏ״̬ÏÂsudoÖ´ÐÐÃüÁîÖ®ºóµÄ15·ÖÖÓÄÚÔÙ´ÎʹÓÃsudoʹÓÃÃüÁ²»ÐèÒªÔÙ´ÎÊäÈëÃÜÂ룬ÔÚ¾ø´ó¶àÊýÇé¿öÏÂÕâ¸öʱ¼äÌ«¶ÌÁË¡£Í¨¹ý¶ÔsudoersÎļþµÄÐ޸ĿÉÒÔÑÓ³¤sudoÃÜÂëµÄʱÏÞ¡£
ÒÔÏÂΪmanÊÖ²áÖжÔsudoersÎļþµÄÃèÊö£º
ÒýÓÃ:The sudoers file is composed of two types of entries: aliases (basically variables) and user specifications (which specify who may run what).
When multiple entries match for a user, they are applied in order. Where there are multiple matches, the last match is used (which is not necessarily the most specific match).
The sudoers grammar will be described below in Extended Backus Naur Form (EBNF).Don¡¯t despair if you don¡¯t know what EBNF is; it is fairly simple, and the defi-nitions below are annotated.
ÒªÑÓ³¤sudoµÄʱÏÞ£¬Ö»ÐèÒªÔÚ/etc/sudoersÈÎÒâλÖÃÌí¼ÓÒ»¾ä£º
ÒýÓÃ:Defaults:swift timestamp_timeout=0
ÆäÖеÄÊý×Ö´ú±íÄãÏ£Íûsudo¼Ç¼ʱ¼ä´ÁµÄ³¤¶È¡£0Ϊ²»¼Ç¼¡£Èç¹û¸ÃֵΪ-1Ôò´ú±ísudoÓÀÔ¶¼Çס¸ÃÃÜÂ룬ֱµ½ÖØÆô¡£
sudoersÎļþÖл¹ÓкܶàÆäËûµÄÑ¡Ïî¿ÉÓÃÓÚ¶ÔsudoÃüÁîµÄÏà¹Ø½øÐÐÅäÖ᣸üÏêϸµÄ²Ù×÷·½·¨¿ÉÒÔÔÚmanÊÖ²áÖв鵽¡£
P.S.Èç¹û¾õµÃ½«timestamp_timeoutÉèÖÃΪ-1²»°²È«£¬¿ÉÒÔÔÚÖ´ÐÐÃüÁîºó»òÕßÀ뿪µçÄÔʱִÐÐsudo -kÍ£Ö¹µ±Ç°µÄʱ¼ä´Á£¬Ï´ÎÖ´ÐÐsudoʱ»áÔÙ´ÎÌáʾÊäÈëÃÜÂë¡£


yegle ÓÚ 2008-01-16 18:02:56·¢±í:
ÇëÂ¥Ö÷×ÔÖØ£¡×ªÔØÇë×¢Ã÷³ö´¦²¢¸ø³öÔÎÄÁ´½Ó£¡
http://yegle.net/2008/01/07/change-timestamp-timeout-of-sudo/
relaaxx ÓÚ 2008-01-07 21:24:25·¢±í:
ѧϰÀ²£¬¼ÓÈëÊÕ²Ø