{"id":48115,"date":"2023-05-10T05:27:38","date_gmt":"2023-05-09T21:27:38","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=48115"},"modified":"2023-05-10T05:27:38","modified_gmt":"2023-05-09T21:27:38","slug":"change-sudo-timeout","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/change-sudo-timeout.html","title":{"rendered":"\u8ba9 sudo \u4f1a\u8bdd\u65f6\u95f4\u968f\u5fc3\u6240\u6b32"},"content":{"rendered":"
\u5bfc\u8bfb<\/td>\n | sudo\u547d\u4ee4\u662f\u6743\u9650\u59d4\u6d3e\u7684\u547d\u4ee4\uff0c\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u662f\u975e\u5e38\u5e38\u7528\u7684\uff0c\u9ed8\u8ba4\u60c5\u51b5\u4e0bsudo\u547d\u4ee4\u4f1a\u8bdd\u65f6\u95f4\u662f\u572815\u5206\u949f\u3002\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u5c06\u4ecb\u7ecd\u5728 Ubuntu Linux \u4e2d\u4f7f sudo \u5bc6\u7801\u4f1a\u8bdd\uff08\u8d85\u65f6\uff09\u66f4\u957f\u6216\u66f4\u77ed\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n sudo\u547d\u4ee4\u662f\u6743\u9650\u59d4\u6d3e\u7684\u547d\u4ee4\uff0c\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u662f\u975e\u5e38\u5e38\u7528\u7684\uff0c\u9ed8\u8ba4\u60c5\u51b5\u4e0bsudo\u547d\u4ee4\u4f1a\u8bdd\u65f6\u95f4\u662f\u572815\u5206\u949f\u3002\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u5c06\u4ecb\u7ecd\u5728 Ubuntu Linux \u4e2d\u4f7f sudo \u5bc6\u7801\u4f1a\u8bdd\uff08\u8d85\u65f6\uff09\u66f4\u957f\u6216\u66f4\u77ed\u3002 \u7f16\u8f91\/etc\/sudoers<\/strong><\/div>\n \u9996\u5148\u4f7f\u7528 sudo \u548c visudo \u547d\u4ee4\u4ee5\u8d85\u7ea7\u7528\u6237\u6743\u9650\u6253\u5f00 \/etc\/sudoers \u6587\u4ef6\uff0c\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n $ sudo visudo<\/pre>\n |