<script type="application/ld+json">{"@context":"http://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://www.simcentric.com/tc/"},{"@type":"ListItem","position":2,"name":"如何使用 PAM 限制伺服器登入時間","item":"https://www.simcentric.com/tc/japan-dedicated-server-tc/how-to-use-pam-to-restrict-server-login-hours/"}]}</script> {"id":35550,"date":"2026-10-30T14:59:08","date_gmt":"2026-10-30T06:59:08","guid":{"rendered":"https:\/\/www.simcentric.com\/uncategorized-tc\/how-to-use-pam-to-restrict-server-login-hours\/"},"modified":"2026-10-30T15:02:10","modified_gmt":"2026-10-30T07:02:10","slug":"how-to-use-pam-to-restrict-server-login-hours","status":"publish","type":"post","link":"https:\/\/www.simcentric.com\/tc\/japan-dedicated-server-tc\/how-to-use-pam-to-restrict-server-login-hours\/","title":{"rendered":"\u5982\u4f55\u4f7f\u7528 PAM \u9650\u5236\u4f3a\u670d\u5668\u767b\u5165\u6642\u9593"},"content":{"rendered":"<p>\u5728\u7d93\u904e\u5f37\u5316\u7684\u57fa\u790e\u8a2d\u65bd\u4e2d\uff0c\u5b58\u53d6\u7b56\u7565\u61c9\u7576\u50cf\u9632\u706b\u7246\u898f\u5247\u6216 Shell \u6b0a\u9650\u4e00\u6a23\uff0c\u7d93\u904e\u5be9\u614e\u8a2d\u8a08\u3002\u4e00\u7a2e\u975e\u5e38\u5be6\u7528\u7684\u63a7\u5236\u624b\u6bb5\u5c31\u662f PAM \u767b\u5165\u6642\u9593\u9650\u5236\uff1a\u5b83\u5141\u8a31\u4f60\u53ea\u5728\u6838\u51c6\u7684\u6642\u9593\u5340\u6bb5\u5167\u8b93\u4f7f\u7528\u8005\u767b\u5165\u3002\u5c0d\u65bc\u7ba1\u7406\u5171\u4eab\u74b0\u5883\u3001\u9060\u7aef\u7ba1\u7406\u7bc0\u9ede\u3001\u5167\u90e8\u8df3\u677f\u8def\u5f91\uff0c\u6216\u9762\u5411<a href=\"https:\/\/www.simcentric.com\/tc\/products\/dedicated-server-jp\/\" target=\"_blank\" rel=\"noopener\">\u65e5\u672c\u4f3a\u670d\u5668\u79df\u7528<\/a>\u4e14\u7531\u5168\u7403\u5718\u968a\u5354\u4f5c\u7dad\u8b77\u7684<a href=\"https:\/\/www.simcentric.com\/tc\/hong-kong-dedicated-server-tc\/how-to-design-load-balancing-for-multiple-dedicated-servers\/\" target=\"_blank\" rel=\"noopener\">\u5de5\u4f5c\u8ca0\u8f09<\/a>\u7684\u5de5\u7a0b\u5e2b\u800c\u8a00\uff0c\u57fa\u65bc\u6642\u9593\u7684\u5b58\u53d6\u63a7\u5236\u80fd\u5920\u5728\u4e0d\u5f15\u5165\u984d\u5916\u8907\u96dc\u5143\u4ef6\u7684\u524d\u63d0\u4e0b\uff0c\u589e\u52a0\u4e00\u9053\u7cbe\u6e96\u7684\u5b89\u5168\u8b77\u6b04\u3002<\/p>\n<h2><strong>\u70ba\u4ec0\u9ebc\u57fa\u65bc\u6642\u9593\u7684\u767b\u5165\u63a7\u5236\u4f9d\u7136\u91cd\u8981<\/strong><\/h2>\n<p>\u8a31\u591a\u5b89\u5168\u8a0e\u8ad6\u901a\u5e38\u805a\u7126\u5728\u5bc6\u78bc\u3001\u91d1\u9470\u3001\u7db2\u8def\u908a\u754c\u4ee5\u53ca\u4fee\u88dc\u9031\u671f\u4e0a\u3002\u9019\u4e9b\u7576\u7136\u91cd\u8981\uff0c\u4f46\u300c\u6642\u9593\u300d\u540c\u6a23\u91cd\u8981\u3002\u4e00\u500b\u6709\u6548\u5e33\u865f\u82e5\u5728\u932f\u8aa4\u7684\u6642\u9593\u88ab\u4f7f\u7528\uff0c\u4f9d\u7136\u53ef\u80fd\u69cb\u6210\u98a8\u96aa\u3002\u7576\u5e33\u865f\u5c6c\u65bc\u5916\u5305\u4eba\u54e1\u3001\u81e8\u6642\u7dad\u904b\u4eba\u54e1\u3001\u6e2c\u8a66\u4eba\u54e1\uff0c\u6216\u90a3\u4e9b\u672c\u4e0d\u61c9\u64c1\u6709\u5168\u5929\u5019\u4e92\u52d5\u5f0f\u5b58\u53d6\u6b0a\u9650\u7684\u81ea\u52d5\u5316\u4f7f\u7528\u8005\u6642\uff0c\u9650\u5236\u767b\u5165\u6642\u9593\u8996\u7a97\u5c31\u975e\u5e38\u6709\u50f9\u503c\u3002<\/p>\n<ul>\n<li>\u964d\u4f4e\u975e\u5de5\u4f5c\u6642\u6bb5\u767c\u751f\u4e92\u52d5\u5f0f\u6feb\u7528\u7684\u6a5f\u7387\u3002<\/li>\n<li>\u8b93\u5e33\u865f\u5b58\u53d6\u6642\u9593\u8207\u7dad\u904b\u6392\u73ed\u4fdd\u6301\u4e00\u81f4\u3002<\/li>\n<li>\u7e2e\u5c0f\u81e8\u6642\u8eab\u5206\u6216\u4f4e\u4fe1\u4efb\u8eab\u5206\u7684\u66b4\u9732\u9762\u3002<\/li>\n<li>\u6709\u52a9\u65bc\u5efa\u7acb\u66f4\u5229\u65bc\u7a3d\u6838\u7684\u5b58\u53d6\u6cbb\u7406\u6a5f\u5236\u3002<\/li>\n<li>\u8b93\u7b56\u7565\u8cbc\u8fd1\u4f5c\u696d\u7cfb\u7d71\u672c\u8eab\uff0c\u800c\u4e0d\u662f\u628a\u908f\u8f2f\u5206\u6563\u5230\u8173\u672c\u4e2d\u3002<\/li>\n<\/ul>\n<p>\u7576\u4f3a\u670d\u5668\u7531\u8de8\u6642\u5340\u5718\u968a\u7dad\u8b77\u6642\uff0c\u9019\u4e00\u9ede\u5c24\u5176\u95dc\u9375\u3002\u5718\u968a\u53ef\u80fd\u5728\u4e00\u500b\u5730\u5340\u5de5\u4f5c\uff0c\u800c\u6a5f\u5668\u904b\u884c\u5728\u53e6\u4e00\u500b\u5730\u5340\u7684\u6642\u9418\u4e4b\u4e0b\u3002\u82e5\u9019\u5957\u7cfb\u7d71\u627f\u64d4\u65e5\u672c\u7684\u4f3a\u670d\u5668\u79df\u7528\u6216\u4f3a\u670d\u5668\u8a17\u7ba1\u76f8\u95dc\u5de5\u4f5c\uff0c\u90a3\u9ebc\u5b9a\u7fa9\u4e00\u500b\u53ef\u9810\u671f\u7684\u767b\u5165\u6642\u9593\u8996\u7a97\uff0c\u5c31\u80fd\u907f\u514d\u300c\u4eba\u7684\u9810\u671f\u300d\u8207\u300c\u7cfb\u7d71\u884c\u70ba\u300d\u4e4b\u9593\u51fa\u73fe\u7b56\u7565\u504f\u5dee\u3002<\/p>\n<h2><strong>PAM \u5be6\u969b\u4e0a\u5728\u505a\u4ec0\u9ebc<\/strong><\/h2>\n<p>PAM\uff0c\u5373 Pluggable Authentication Modules\uff08\u53ef\u63d2\u62d4\u9a57\u8b49\u6a21\u7d44\uff09\uff0c\u662f\u8a31\u591a\u985e Unix \u7cfb\u7d71\u7528\u4f86\u8a55\u4f30\u9a57\u8b49\u8207\u5e33\u865f\u898f\u5247\u7684\u63a7\u5236\u5c64\u3002\u5b83\u672c\u8eab\u4e0d\u4e00\u5b9a\u76f4\u63a5\u9a57\u8b49\u8eab\u5206\uff1b\u76f8\u53cd\u5730\uff0c\u5b83\u8b93\u5404\u985e\u670d\u52d9\u900f\u904e\u4e00\u500b\u6a19\u6e96\u5316\u6846\u67b6\u4f86\u8a62\u554f\uff1a\u5b58\u53d6\u61c9\u8a72\u5982\u4f55\u88ab\u8655\u7406\u3002\u6839\u64da Linux-PAM \u624b\u518a\uff0cPAM \u7684\u5e33\u865f\u898f\u5247\u53ef\u4ee5\u57fa\u65bc\u6642\u9593\u3001\u8cc7\u6e90\u689d\u4ef6\u6216\u5b58\u53d6\u4f86\u6e90\u7b49\u56e0\u7d20\u9650\u5236\u670d\u52d9\u4f7f\u7528\uff0c\u800c <code>pam_time<\/code> \u6a21\u7d44\u6b63\u662f\u5c08\u9580\u7528\u65bc\u57fa\u65bc\u6642\u9593\u7684\u5b58\u53d6\u63a7\u5236\u3002<\/p>\n<p>\u5c0d\u5be6\u52d9\u5de5\u4f5c\u8005\u800c\u8a00\uff0c\u95dc\u9375\u9ede\u5f88\u7c21\u55ae\uff1a\u767b\u5165\u670d\u52d9\u6703\u628a\u5e33\u865f\u6aa2\u67e5\u59d4\u6d3e\u7d66 PAM\uff0c\u800c PAM \u53ef\u4ee5\u6839\u64da\u898f\u5247\u96c6\u8a55\u4f30\u67d0\u500b\u4f7f\u7528\u8005\u662f\u5426\u61c9\u88ab\u5141\u8a31\u7e7c\u7e8c\u5b58\u53d6\u3002\u9019\u4f7f\u5f97\u8a72\u63a7\u5236\u65b9\u5f0f\u65e2\u539f\u751f\u3001\u57f7\u884c\u8fc5\u901f\uff0c\u53c8\u5177\u5099\u78ba\u5b9a\u6027\u3002<\/p>\n<h2><strong>\u6642\u9593\u898f\u5247\u5728\u5e95\u5c64\u662f\u5982\u4f55\u904b\u4f5c\u7684<\/strong><\/h2>\n<p><code>pam_time<\/code> \u6a21\u7d44\u6703\u5f9e\u8a2d\u5b9a\u6a94\u4e2d\u8b80\u53d6\u7b56\u7565\uff0c\u901a\u5e38\u9019\u500b\u6a94\u6848\u662f <code>\/etc\/security\/time.conf<\/code>\u3002\u5b98\u65b9\u624b\u518a\u63cf\u8ff0\u4e86\u4e00\u7a2e\u7531\u56db\u500b\u6b04\u4f4d\u7d44\u6210\u7684\u898f\u5247\u683c\u5f0f\uff1a<code>services;ttys;users;times<\/code>\u3002\u898f\u5247\u53ef\u4ee5\u6bd4\u5c0d PAM \u670d\u52d9\u540d\u7a31\u3001\u7d42\u7aef\u6a21\u5f0f\u3001\u4f7f\u7528\u8005\u6e05\u55ae\u4ee5\u53ca\u6642\u9593\u8868\u9054\u5f0f\u3002<\/p>\n<p>\u9019\u7a2e\u7d50\u69cb\u5e36\u4f86\u4e86\u4e00\u500b\u5f88\u6e05\u695a\u7684\u63a7\u5236\u4ecb\u9762\uff1a<\/p>\n<ol>\n<li><strong>\u670d\u52d9\u7bc4\u570d<\/strong> \u2014\u2014 \u53ea\u91dd\u5c0d\u4f60\u771f\u6b63\u95dc\u5fc3\u7684\u767b\u5165\u8def\u5f91\u9032\u884c\u63a7\u5236\u3002<\/li>\n<li><strong>TTY \u7bc4\u570d<\/strong> \u2014\u2014 \u5728\u6709\u9700\u8981\u6642\u5340\u5206\u4e0d\u540c\u985e\u578b\u7684\u7d42\u7aef\u3002<\/li>\n<li><strong>\u4f7f\u7528\u8005\u7bc4\u570d<\/strong> \u2014\u2014 \u6bd4\u5c0d\u55ae\u4e00\u4f7f\u7528\u8005\u3001\u591a\u500b\u4f7f\u7528\u8005\uff0c\u6216\u908f\u8f2f\u7d44\u5408\u3002<\/li>\n<li><strong>\u6642\u9593\u7bc4\u570d<\/strong> \u2014\u2014 \u4f9d\u7167\u661f\u671f\u8207\u6642\u6bb5\u5b9a\u7fa9\u5141\u8a31\u6216\u62d2\u7d55\u7684\u5b58\u53d6\u8996\u7a97\u3002<\/li>\n<\/ol>\n<p>\u540c\u4e00\u4efd\u624b\u518a\u4e5f\u6307\u51fa\u4e86\u4e00\u500b\u91cd\u8981\u9650\u5236\uff1a\u8a72\u6a21\u7d44\u63a7\u5236\u7684\u662f\u300c\u5de5\u4f5c\u968e\u6bb5\u80fd\u5426\u958b\u59cb\u300d\uff0c\u4f46\u4e0d\u6703\u5728\u5141\u8a31\u6642\u9593\u7d50\u675f\u5f8c\u4e3b\u52d5\u7d42\u6b62\u5df2\u7d93\u5728\u904b\u884c\u4e2d\u7684\u5de5\u4f5c\u968e\u6bb5\u3002<\/p>\n<h2><strong>\u5728\u4fee\u6539\u8a2d\u5b9a\u4e4b\u524d<\/strong><\/h2>\n<p>\u57fa\u65bc\u6642\u9593\u7684\u5b58\u53d6\u898f\u5247\u96d6\u7136\u8f15\u91cf\uff0c\u4f46\u82e5\u5957\u7528\u4e0d\u614e\uff0c\u4e5f\u53ef\u80fd\u628a\u4f60\u81ea\u5df1\u9396\u5728\u7cfb\u7d71\u5916\u3002\u7531\u65bc PAM \u6703\u88ab\u95dc\u9375\u767b\u5165\u8def\u5f91\u547c\u53eb\uff0c\u4e00\u689d\u683c\u5f0f\u932f\u8aa4\u7684\u898f\u5247\u6216\u4e0d\u6b63\u78ba\u7684\u670d\u52d9\u9805\u76ee\uff0c\u90fd\u53ef\u80fd\u963b\u65b7\u5408\u6cd5\u5b58\u53d6\u3002\u56e0\u6b64\uff0c\u66f4\u7a69\u59a5\u7684\u65b9\u5f0f\u4e0d\u662f\u300c\u5927\u81bd\u5617\u8a66\u300d\uff0c\u800c\u662f\u300c\u6309\u6d41\u7a0b\u64cd\u4f5c\u300d\u3002<\/p>\n<ul>\n<li>\u6e2c\u8a66\u671f\u9593\u4fdd\u7559\u4e00\u500b\u73fe\u6709\u7684 root \u5de5\u4f5c\u968e\u6bb5\u6216\u4e3b\u63a7\u53f0\u5de5\u4f5c\u968e\u6bb5\u3002<\/li>\n<li>\u5148\u5099\u4efd PAM \u670d\u52d9\u6a94\u8207\u6642\u9593\u898f\u5247\u6a94\u3002<\/li>\n<li>\u78ba\u8a8d\u76ee\u6a19\u670d\u52d9\u78ba\u5be6\u4f7f\u7528 PAM\u3002<\/li>\n<li>\u5728\u64b0\u5beb\u7b56\u7565\u524d\u6838\u5c0d\u4f3a\u670d\u5668\u6642\u5340\u3002<\/li>\n<li>\u5148\u7528\u975e\u95dc\u9375\u5e33\u865f\u6e2c\u8a66\uff0c\u518d\u63a8\u5ee3\u5230\u66f4\u5ee3\u6cdb\u7684\u5e33\u865f\u7bc4\u570d\u3002<\/li>\n<\/ul>\n<p>\u5982\u679c\u4f60\u7684\u57fa\u790e\u8a2d\u65bd\u652f\u63f4\u9060\u7aef\u4e3b\u63a7\u53f0\u5b58\u53d6\uff0c\u8acb\u4e8b\u5148\u78ba\u4fdd\u9019\u689d\u8def\u5f91\u53ef\u7528\u3002\u5728\u6b63\u5f0f\u74b0\u5883\u4e2d\uff0c\u6c38\u9060\u4e0d\u8981\u5047\u8a2d\u7db2\u8def\u767b\u5165\u662f\u552f\u4e00\u7684\u56de\u5fa9\u65b9\u5f0f\u3002<\/p>\n<h2><strong>\u70ba\u767b\u5165\u670d\u52d9\u555f\u7528 PAM \u6642\u9593\u6aa2\u67e5<\/strong><\/h2>\n<p>\u9019\u500b\u6a21\u7d44\u901a\u5e38\u6703\u63a5\u5165 PAM \u670d\u52d9\u6a94\u4e2d\u7684 <code>account<\/code> \u968e\u6bb5\uff0c\u56e0\u70ba\u5e33\u865f\u7ba1\u7406\u672c\u4f86\u5c31\u662f\u653e\u7f6e\u6642\u9593\u985e\u9650\u5236\u7684\u5408\u9069\u4f4d\u7f6e\u3002PAM \u624b\u518a\u4e5f\u8aaa\u660e\uff0caccount \u985e\u578b\u7528\u65bc\u8655\u7406\u975e\u9a57\u8b49\u985e\u7b56\u7565\uff0c\u5305\u62ec\u57fa\u65bc\u6642\u9593\u7684\u9650\u5236\u3002<\/p>\n<p>\u5f9e\u9ad8\u5c64\u8996\u89d2\u4f86\u770b\uff0c\u6574\u500b\u6d41\u7a0b\u901a\u5e38\u5982\u4e0b\uff1a<\/p>\n<ol>\n<li>\u5b9a\u4f4d\u4f60\u60f3\u8981\u63a7\u7ba1\u7684\u767b\u5165\u8def\u5f91\u5c0d\u61c9\u7684 PAM \u6a94\u6848\u3002<\/li>\n<li>\u65b0\u589e\u6216\u78ba\u8a8d\u4e00\u689d\u547c\u53eb <code>pam_time.so<\/code> \u7684 <code>account<\/code> \u898f\u5247\u3002<\/li>\n<li>\u5728 <code>\/etc\/security\/time.conf<\/code> \u4e2d\u5efa\u7acb\u898f\u5247\u3002<\/li>\n<li>\u4ed4\u7d30\u9a57\u8b49\u8a9e\u6cd5\u3002<\/li>\n<li>\u5206\u5225\u6e2c\u8a66\u5141\u8a31\u6642\u6bb5\u8207\u62d2\u7d55\u6642\u6bb5\u3002<\/li>\n<\/ol>\n<p>\u7b56\u7565\u7bc4\u570d\u61c9\u5118\u53ef\u80fd\u6536\u6582\u3002\u82e5\u4f60\u53ea\u9700\u8981\u63a7\u7ba1\u9060\u7aef Shell \u5b58\u53d6\uff0c\u5c31\u4e0d\u8981\u5c0d\u7121\u95dc\u670d\u52d9\u505a\u904e\u65bc\u5bec\u6cdb\u7684\u4fee\u6539\u3002<\/p>\n<h2><strong>\u4e0d\u7e5e\u5f4e\u5730\u7406\u89e3 time.conf \u8a9e\u6cd5<\/strong><\/h2>\n<p>\u5f88\u591a\u7ba1\u7406\u54e1\u771f\u6b63\u5361\u4f4f\u7684\u5730\u65b9\uff0c\u4e0d\u662f PAM \u672c\u8eab\uff0c\u800c\u662f\u898f\u5247\u8a9e\u6cd5\u770b\u8d77\u4f86\u904e\u65bc\u7dca\u6e4a\u3002\u597d\u6d88\u606f\u662f\uff0c\u4e00\u65e6\u4f60\u628a\u5b83\u7576\u4f5c\u300c\u908f\u8f2f\u8868\u9054\u5f0f\u300d\u800c\u4e0d\u662f\u300c\u81ea\u7136\u8a9e\u8a00\u8aaa\u660e\u300d\u53bb\u8b80\uff0c\u5b83\u5176\u5be6\u4e26\u4e0d\u8907\u96dc\u3002\u5b98\u65b9\u6587\u4ef6\u8aaa\u660e\uff0c<code>times<\/code> \u6b04\u4f4d\u652f\u63f4\u50cf <code>Mo<\/code>\u3001<code>Tu<\/code>\u3001<code>Wd<\/code> \u548c <code>Al<\/code> \u9019\u6a23\u7684\u65e5\u671f\u6a19\u8a18\uff0c\u4e5f\u652f\u63f4 <code>HHMM-HHMM<\/code> \u683c\u5f0f\u7684 24 \u5c0f\u6642\u6642\u9593\u5340\u9593\uff0c\u540c\u6642\u4e5f\u652f\u63f4\u4f7f\u7528 <code>&amp;<\/code> \u8207 <code>|<\/code> \u9032\u884c\u908f\u8f2f\u7d44\u5408\uff0c\u4ee5\u53ca\u4f7f\u7528\u5426\u5b9a\u908f\u8f2f\u3002<\/p>\n<ul>\n<li><strong>\u65e5\u671f<\/strong> \u7528\u4f86\u5b9a\u7fa9\u898f\u5247\u5728\u4f55\u6642\u751f\u6548\u3002<\/li>\n<li><strong>\u6642\u9593\u5340\u9593<\/strong> \u7528\u4f86\u5b9a\u7fa9\u958b\u59cb\u8207\u7d50\u675f\u6642\u9593\u3002<\/li>\n<li><strong>\u5426\u5b9a\u908f\u8f2f<\/strong> \u7528\u4f86\u628a\u4e00\u6b21\u6bd4\u5c0d\u7ffb\u8f49\u70ba\u6392\u9664\u3002<\/li>\n<li><strong>\u908f\u8f2f\u904b\u7b97\u5b50<\/strong> \u7528\u4f86\u8b93\u4e00\u689d\u898f\u5247\u8986\u84cb\u591a\u500b\u60c5\u5883\u3002<\/li>\n<\/ul>\n<p>\u9084\u6709\u4e00\u500b\u7d30\u7bc0\u975e\u5e38\u5be6\u7528\uff1a\u5982\u679c\u7d50\u675f\u6642\u9593\u65e9\u65bc\u958b\u59cb\u6642\u9593\uff0c\u90a3\u9ebc\u8a72\u5340\u9593\u6703\u88ab\u8996\u70ba\u8de8\u8d8a\u5230\u6b21\u65e5\u3002\u9019\u4f7f\u5f97\u8a2d\u5b9a\u591c\u9593\u6216\u8de8\u5348\u591c\u7684\u5b58\u53d6\u8996\u7a97\u6210\u70ba\u53ef\u80fd\uff0c\u800c\u4e0d\u9700\u8981\u984d\u5916\u7684\u7e5e\u8def\u5beb\u6cd5\u3002<\/p>\n<h2><strong>\u5de5\u7a0b\u5e2b\u771f\u6b63\u6703\u7528\u5230\u7684\u7b56\u7565\u6a21\u5f0f<\/strong><\/h2>\n<p>\u5927\u591a\u6578\u771f\u5be6\u90e8\u7f72\u60c5\u5883\u4e26\u4e0d\u9700\u8981\u82b1\u4fcf\u7684\u908f\u8f2f\u3002\u5b83\u5011\u9700\u8981\u7684\u662f\u4e00\u7a2e\u8b93\u5f8c\u7e8c\u7dad\u8b77\u8005\u4e00\u773c\u5c31\u80fd\u770b\u61c2\u7684\u53ef\u8b80\u6a21\u5f0f\u3002\u826f\u597d\u7684\u7b56\u7565\u901a\u5e38\u6703\u843d\u5728\u4ee5\u4e0b\u5e7e\u7a2e\u5f62\u614b\u4e2d\uff1a<\/p>\n<ol>\n<li><strong>\u5de5\u4f5c\u6642\u9593\u5b58\u53d6<\/strong> \u2014\u2014 \u9069\u5408\u652f\u63f4\u5e33\u865f\u6216\u6e2c\u8a66\u5e33\u865f\u3002<\/li>\n<li><strong>\u591c\u9593\u7981\u6b62<\/strong> \u2014\u2014 \u9069\u5408\u90a3\u4e9b\u672c\u4e0d\u61c9\u5728\u4e0b\u73ed\u5f8c\u9032\u884c\u4e92\u52d5\u5f0f\u767b\u5165\u7684\u4f7f\u7528\u8005\u3002<\/li>\n<li><strong>\u4f9d\u670d\u52d9\u7d30\u5316\u63a7\u5236<\/strong> \u2014\u2014 \u53ea\u91dd\u5c0d\u67d0\u4e00\u689d\u9060\u7aef\u5b58\u53d6\u8def\u5f91\u65bd\u52a0\u898f\u5247\u3002<\/li>\n<li><strong>\u7ba1\u7406\u54e1\u4f8b\u5916<\/strong> \u2014\u2014 \u78ba\u4fdd\u5fc5\u8981\u7684\u9ad8\u6b0a\u9650\u7dca\u6025\u5b58\u53d6\u4ecd\u7136\u53ef\u7528\u3002<\/li>\n<\/ol>\n<p>\u5728\u8a2d\u8a08\u898f\u5247\u6642\uff0c\u61c9\u59cb\u7d42\u5f9e\u300c\u5f71\u97ff\u7bc4\u570d\u300d\u89d2\u5ea6\u601d\u8003\u3002\u81e8\u6642\u4f7f\u7528\u8005\u61c9\u8a72\u64c1\u6709\u66f4\u7a84\u7684\u670d\u52d9\u76ee\u6a19\u8207\u66f4\u7a84\u7684\u6642\u9593\u8996\u7a97\uff1b\u800c\u53d7\u4fe1\u4efb\u7684\u7dad\u904b\u4eba\u54e1\u96d6\u7136\u53ef\u80fd\u9700\u8981\u66f4\u5bec\u6cdb\u7684\u767b\u5165\u6642\u6bb5\uff0c\u4f46\u9019\u4e26\u4e0d\u4ee3\u8868\u4ed6\u5011\u5fc5\u9808\u6bcf\u5929\u90fd\u64c1\u6709\u5b8c\u5168\u4e0d\u53d7\u9650\u7684\u5b58\u53d6\u6b0a\u9650\u3002<\/p>\n<h2><strong>\u6642\u5340\u7d00\u5f8b\u4e0d\u662f\u53ef\u9078\u9805<\/strong><\/h2>\n<p>\u57fa\u65bc\u6642\u9593\u7684\u5b58\u53d6\u63a7\u5236\uff0c\u5176\u6e96\u78ba\u6027\u5b8c\u5168\u53d6\u6c7a\u65bc\u7cfb\u7d71\u6642\u9418\u6240\u4f9d\u64da\u7684\u6642\u9593\u74b0\u5883\u3002PAM \u624b\u518a\u5b9a\u7fa9\u4e86\u8a9e\u6cd5\u8207\u6bd4\u5c0d\u908f\u8f2f\uff0c\u4f46\u5be6\u969b\u7684\u898f\u5247\u5224\u65b7\u662f\u57fa\u65bc\u4e3b\u6a5f\u7684\u672c\u5730\u6642\u9593\u60c5\u5883\u5b8c\u6210\u7684\u3002\u9019\u610f\u5473\u8457\uff0c\u5373\u4fbf\u898f\u5247\u5beb\u5f97\u5b8c\u5168\u6b63\u78ba\uff0c\u5982\u679c\u6a5f\u5668\u6642\u5340\u8207\u5718\u968a\u771f\u6b63\u60f3\u57f7\u884c\u7684\u7b56\u7565\u6642\u9593\u8996\u7a97\u4e0d\u4e00\u81f4\uff0c\u6700\u7d42\u6548\u679c\u4f9d\u7136\u6703\u51fa\u932f\u3002\u9019\u662f\u5168\u7403\u5316\u7dad\u904b\u74b0\u5883\u4e2d\u6700\u5e38\u898b\u7684\u56f0\u60d1\u4f86\u6e90\u4e4b\u4e00\u3002\u6a21\u7d44\u53ea\u6703\u56b4\u683c\u6309\u7167\u7cfb\u7d71\u672c\u5730\u7b56\u7565\u57f7\u884c\uff0c\u5b83\u4e0d\u6703\u4e3b\u52d5\u63a8\u65b7\u4f60\u7684\u696d\u52d9\u610f\u5716\u3002<\/p>\n<p>\u5c0d\u65bc\u65e5\u672c\u5730\u5340\u7684\u4f3a\u670d\u5668\u7dad\u904b\u4f86\u8aaa\uff0c\u9019\u4e00\u9ede\u6bd4\u5f88\u591a\u5718\u968a\u60f3\u50cf\u5f97\u66f4\u91cd\u8981\uff1a<\/p>\n<ul>\n<li>\u4f7f\u7528\u8005\u53ef\u80fd\u6309\u672c\u5730\u8fa6\u516c\u5ba4\u6642\u9593\u7406\u89e3\u7b56\u7565\uff0c\u800c\u4e3b\u6a5f\u537b\u904b\u884c\u5728\u53e6\u4e00\u500b\u6642\u5340\u3002<\/li>\n<li>\u503c\u73ed\u8986\u84cb\u53ef\u80fd\u6a6b\u8de8\u591a\u500b\u5730\u5340\uff0c\u4f46\u5b58\u53d6\u898f\u5247\u4e26\u4e0d\u6703\u81ea\u52d5\u8de8\u6642\u5340\u7406\u89e3\u3002<\/li>\n<li>\u7dad\u8b77\u8996\u7a97\u53ef\u80fd\u7528\u4e00\u500b\u6642\u9593\u6a19\u6e96\u8a18\u9304\uff0c\u537b\u7531\u53e6\u4e00\u500b\u6642\u9593\u6a19\u6e96\u57f7\u884c\u3002<\/li>\n<li>\u5982\u679c\u6c92\u6709\u5148\u6aa2\u67e5\u4e3b\u6a5f\u7684\u5be6\u969b\u6642\u9593\uff0c\u5728\u6545\u969c\u8655\u7406\u6642\u751a\u81f3\u53ef\u80fd\u7121\u6cd5\u9032\u5165\u7cfb\u7d71\u3002<\/li>\n<\/ul>\n<p>\u56e0\u6b64\uff0c\u61c9\u7576\u7528\u4e00\u500b\u7d71\u4e00\u7684\u6a19\u6e96\u6642\u9593\u9ad4\u7cfb\u4f86\u64b0\u5beb\u7b56\u7565\uff0c\u4e26\u5c07\u5176\u6587\u4ef6\u5316\uff0c\u540c\u6642\u8b93\u7dad\u904b\u4eba\u54e1\u6e05\u695a\u770b\u5230\u9019\u500b\u6642\u9593\u57fa\u6e96\u3002\u5982\u679c\u74b0\u5883\u8207\u65e5\u672c\u4f3a\u670d\u5668\u79df\u7528\u76f8\u95dc\uff0c\u90a3\u9ebc\u63a1\u7528\u6e05\u695a\u4e14\u8207\u65e5\u672c\u6642\u9593\u4e00\u81f4\u7684\u5b58\u53d6\u8996\u7a97\uff0c\u5f80\u5f80\u80fd\u5728\u7a3d\u6838\u8207\u7dad\u904b\u5169\u65b9\u9762\u540c\u6642\u6e1b\u5c11\u6b67\u7fa9\u3002<\/p>\n<h2><strong>\u5982\u4f55\u5728\u4e0d\u88fd\u9020\u505c\u6a5f\u4e8b\u6545\u7684\u524d\u63d0\u4e0b\u5b8c\u6210\u6e2c\u8a66<\/strong><\/h2>\n<p>\u6e2c\u8a66\u5fc5\u9808\u662f\u986f\u5f0f\u7684\uff0c\u800c\u4e0d\u662f\u60f3\u7576\u7136\u8033\u3002\u7531\u65bc\u683c\u5f0f\u932f\u8aa4\u7684\u898f\u5247\u6703\u88ab\u8a18\u9304\u70ba\u932f\u8aa4\u8a0a\u606f\uff0c\u65e5\u8a8c\u6aa2\u67e5\u61c9\u88ab\u8996\u70ba\u90e8\u7f72\u904e\u7a0b\u7684\u4e00\u90e8\u5206\uff0c\u800c\u975e\u4e8b\u5f8c\u88dc\u6551\u3002time.conf \u624b\u518a\u8aaa\u660e\uff0c\u932f\u8aa4\u898f\u5247\u6703\u900f\u904e syslog \u56de\u5831\uff1b\u7576\u4e00\u6b21\u62d2\u7d55\u767b\u5165\u770b\u8d77\u4f86\u83ab\u540d\u5176\u5999\u6642\uff0c\u9019\u4e00\u9ede\u5f80\u5f80\u80fd\u5e6b\u52a9\u4f60\u767c\u73fe\u554f\u984c\u5176\u5be6\u53ea\u662f\u8a9e\u6cd5\u89e3\u6790\u5931\u6557\u3002<\/p>\n<ol>\n<li>\u5148\u628a\u6700\u5c0f\u7bc4\u570d\u7684\u898f\u5247\u5957\u7528\u5230\u6e2c\u8a66\u5e33\u865f\u3002<\/li>\n<li>\u5728\u5141\u8a31\u6642\u9593\u5340\u6bb5\u5167\u5617\u8a66\u767b\u5165\u3002<\/li>\n<li>\u5728\u62d2\u7d55\u6642\u9593\u5340\u6bb5\u5167\u5617\u8a66\u767b\u5165\u3002<\/li>\n<li>\u6aa2\u67e5\u9a57\u8b49\u65e5\u8a8c\u8207\u7cfb\u7d71\u65e5\u8a8c\u3002<\/li>\n<li>\u78ba\u8a8d\u7121\u8aa4\u5f8c\uff0c\u518d\u64f4\u5c55\u5230\u66f4\u591a\u4f7f\u7528\u8005\u6216\u670d\u52d9\u3002<\/li>\n<\/ol>\n<p>\u9084\u8981\u8a18\u4f4f\u524d\u9762\u63d0\u5230\u7684\u5de5\u4f5c\u968e\u6bb5\u884c\u70ba\uff1a\u5982\u679c\u4f7f\u7528\u8005\u5728\u5141\u8a31\u6642\u9593\u8996\u7a97\u5167\u6210\u529f\u767b\u5165\uff0c\u7576\u6642\u9593\u8de8\u904e\u908a\u754c\u5f8c\uff0c\u6a21\u7d44\u4e26\u4e0d\u6703\u81ea\u52d5\u5c07\u5176\u8e22\u51fa\u7cfb\u7d71\u3002\u82e5\u4f60\u9700\u8981\u300c\u5230\u9ede\u5f37\u5236\u4e2d\u65b7\u5de5\u4f5c\u968e\u6bb5\u300d\uff0c\u90a3\u5c31\u5fc5\u9808\u501f\u52a9\u5176\u4ed6\u7dad\u904b\u63a7\u5236\u624b\u6bb5\u4f86\u5be6\u73fe\u3002<\/p>\n<h2><strong>\u5e38\u898b\u6545\u969c\u6a21\u5f0f\uff0c\u4ee5\u53ca\u61c9\u5982\u4f55\u601d\u8003<\/strong><\/h2>\n<p>\u5927\u591a\u6578\u7591\u96e3\u6392\u89e3\u6848\u4f8b\u5176\u5be6\u90fd\u53ef\u4ee5\u6b78\u7d50\u70ba\u5c11\u6578\u5e7e\u985e\u3002\u8a23\u7ac5\u5728\u65bc\uff0c\u5075\u932f\u9806\u5e8f\u8981\u9075\u5faa PAM \u8a55\u4f30\u73fe\u5be6\u7684\u65b9\u5f0f\uff1a\u5148\u770b\u670d\u52d9\uff0c\u518d\u770b\u898f\u5247\u8def\u5f91\uff0c\u518d\u67e5\u8a9e\u6cd5\uff0c\u7136\u5f8c\u78ba\u8a8d\u4f7f\u7528\u8005\u6bd4\u5c0d\uff0c\u6700\u5f8c\u6aa2\u67e5\u7cfb\u7d71\u6642\u9418\u3002<\/p>\n<ul>\n<li><strong>\u670d\u52d9\u6a94\u6839\u672c\u6c92\u6709\u547c\u53eb\u8a72\u6a21\u7d44\u3002<\/strong> \u898f\u5247\u96d6\u7136\u5b58\u5728\uff0c\u4f46\u5be6\u969b\u767b\u5165\u8def\u5f91\u6839\u672c\u6c92\u6709\u53bb\u67e5\u8a62\u5b83\u3002<\/li>\n<li><strong>\u670d\u52d9\u540d\u7a31\u5beb\u932f\u4e86\u3002<\/strong> \u7b56\u7565\u91dd\u5c0d\u7684\u662f\u4e00\u500b PAM \u670d\u52d9\u540d\u7a31\uff0c\u800c\u5be6\u969b\u4f7f\u7528\u7684\u662f\u53e6\u4e00\u500b\u3002<\/li>\n<li><strong>\u6642\u9593\u908f\u8f2f\u672c\u8eab\u6c92\u554f\u984c\uff0c\u4f46\u6642\u5340\u932f\u4e86\u3002<\/strong> \u9019\u5728\u8de8\u5340\u57df\u5718\u968a\u88e1\u975e\u5e38\u5e38\u898b\u3002<\/li>\n<li><strong>\u5e33\u865f\u5148\u88ab\u4e00\u500b\u66f4\u5bec\u6cdb\u7684\u898f\u5247\u6bd4\u5c0d\u5230\u4e86\u3002<\/strong> \u904e\u65bc\u5bc6\u96c6\u7684\u908f\u8f2f\u53ef\u80fd\u5e36\u4f86\u610f\u5916\u7684\u4f5c\u7528\u7bc4\u570d\u3002<\/li>\n<li><strong>\u7ba1\u7406\u54e1\u8aa4\u4ee5\u70ba\u6703\u81ea\u52d5\u5f37\u5236\u767b\u51fa\u3002<\/strong> PAM \u6642\u9593\u6aa2\u67e5\u63a7\u5236\u7684\u662f\u300c\u80fd\u5426\u9032\u5165\u300d\uff0c\u800c\u4e0d\u662f\u300c\u5de5\u4f5c\u968e\u6bb5\u4f55\u6642\u7d50\u675f\u300d\u3002<\/li>\n<\/ul>\n<p>\u6b64\u5916\uff0c\u9084\u6709\u4e00\u500b\u6cbb\u7406\u5c64\u9762\u7684\u554f\u984c\uff1a\u5982\u679c\u4f60\u628a\u904e\u591a\u908f\u8f2f\u5806\u758a\u9032\u4e00\u884c\u898f\u5247\uff0c\u6700\u7d42\u53ea\u6703\u88fd\u9020\u7dad\u8b77\u96b1\u60a3\u3002\u76f8\u8f03\u4e4b\u4e0b\uff0c\u8f03\u77ed\u4e14\u610f\u5716\u660e\u78ba\u7684\u7b56\u7565\uff0c\u901a\u5e38\u6bd4\u7dca\u6e4a\u537b\u6666\u6f80\u7684\u5beb\u6cd5\u66f4\u7d93\u5f97\u8d77\u6642\u9593\u8003\u9a57\u3002<\/p>\n<h2><strong>\u9762\u5411\u4f3a\u670d\u5668\u79df\u7528\u8207\u4f3a\u670d\u5668\u8a17\u7ba1\u5718\u968a\u7684\u7dad\u904b\u4f7f\u7528\u60c5\u5883<\/strong><\/h2>\n<p>\u57fa\u65bc\u6642\u9593\u7684\u5b58\u53d6\u63a7\u5236\u4e26\u4e0d\u53ea\u662f\u5be6\u9a57\u74b0\u5883\u88e1\u7684\u5c0f\u6280\u5de7\u3002\u5b83\u975e\u5e38\u9069\u5408\u591a\u7a2e\u57fa\u790e\u8a2d\u65bd\u5de5\u4f5c\u6d41\u7a0b\uff0c\u5c24\u5176\u662f\u5728\u4f3a\u670d\u5668\u79df\u7528\u8207\u4f3a\u670d\u5668\u8a17\u7ba1\u8077\u8cac\u548c\u9060\u7aef\u7dad\u904b\u4ea4\u6703\u7684\u60c5\u5883\u4e0b\uff1a<\/p>\n<ul>\n<li>\u628a\u81e8\u6642\u9077\u79fb\u5e33\u865f\u9650\u5236\u5728\u8a08\u756b\u4e2d\u7684\u5207\u63db\u8996\u7a97\u5167\u4f7f\u7528\u3002<\/li>\n<li>\u628a\u5916\u90e8\u7dad\u8b77\u5b58\u53d6\u9650\u5236\u5728\u6709\u503c\u73ed\u4eba\u54e1\u8986\u84cb\u7684\u6642\u6bb5\u5167\u3002<\/li>\n<li>\u5c0d\u6e2c\u8a66\u74b0\u5883\u5be6\u65bd\u6bd4\u7dca\u6025\u7ba1\u7406\u54e1\u8def\u5f91\u66f4\u56b4\u683c\u7684\u898f\u5247\u3002<\/li>\n<li>\u8b93\u4f5c\u696d\u7cfb\u7d71\u5167\u7684\u5be6\u969b\u9650\u5236\u8207\u66f8\u9762\u652f\u63f4\u6642\u9593\u4fdd\u6301\u4e00\u81f4\u3002<\/li>\n<li>\u964d\u4f4e\u5171\u4eab\u7dad\u904b\u8df3\u677f\u6a5f\u6216\u5de5\u5177\u7bc0\u9ede\u4e0a\u7684\u66b4\u9732\u9762\u3002<\/li>\n<\/ul>\n<p>\u82e5\u4f7f\u7528\u5f97\u7576\uff0c\u5b83\u6703\u6210\u70ba\u5206\u5c64\u5b58\u53d6\u6a21\u578b\u7684\u4e00\u90e8\u5206\u3002\u5b83\u4e0d\u80fd\u53d6\u4ee3\u91d1\u9470\u7ba1\u7406\u3001\u7db2\u8def\u5206\u6bb5\u6216\u7a3d\u6838\u6aa2\u8996\uff0c\u4f46\u5b83\u662f\u4e00\u6839\u539f\u751f\u7684\u7b56\u7565\u69d3\u687f\uff0c\u80fd\u5920\u76f4\u63a5\u6536\u7dca\u300c\u4e00\u500b\u6709\u6548\u6191\u8b49\u5728\u4ec0\u9ebc\u6642\u9593\u53ef\u4ee5\u8f49\u5316\u70ba\u5be6\u969b\u5de5\u4f5c\u968e\u6bb5\u300d\u9019\u500b\u95dc\u9375\u554f\u984c\u3002<\/p>\n<h2><strong>\u8b93\u7b56\u7565\u4e7e\u6de8\u3001\u53ef\u7dad\u8b77\u7684\u6700\u4f73\u5be6\u52d9<\/strong><\/h2>\n<p>\u4e00\u4efd\u512a\u79c0\u7684\u8a2d\u5b9a\uff0c\u61c9\u8a72\u5728\u516d\u500b\u6708\u5f8c\u4f9d\u7136\u5bb9\u6613\u7406\u89e3\u3002\u9019\u610f\u5473\u8457\u8981\u628a\u300c\u6e05\u695a\u300d\u653e\u5728\u300c\u70ab\u6280\u300d\u4e4b\u524d\u3002<\/p>\n<ol>\n<li>\u6e05\u695a\u8a18\u9304\u7dca\u6025\u5b58\u53d6\u8def\u5f91\uff0c\u4e26\u5c0d\u5176\u9032\u884c\u56b4\u683c\u63a7\u5236\u3002<\/li>\n<li>\u76e1\u53ef\u80fd\u4f7f\u7528\u5c08\u7528\u5e33\u865f\uff0c\u800c\u4e0d\u662f\u5171\u4eab\u7dad\u904b\u8eab\u5206\u3002<\/li>\n<li>\u5728\u6bcf\u689d\u898f\u5247\u9644\u8fd1\u52a0\u5165\u8a3b\u89e3\uff0c\u8aaa\u660e\u5b83\u7684\u8a2d\u8a08\u610f\u5716\u3002<\/li>\n<li>\u70ba\u6574\u500b\u74b0\u5883\u7d71\u4e00\u4e00\u500b\u6642\u9593\u57fa\u6e96\u3002<\/li>\n<li>\u5728\u4eba\u54e1\u8b8a\u52d5\u6216\u6392\u73ed\u8abf\u6574\u6642\u540c\u6b65\u5be9\u67e5\u5b58\u53d6\u8996\u7a97\u3002<\/li>\n<li>\u4fee\u6539 PAM \u6a94\u6848\u5f8c\u4e00\u5b9a\u8981\u6e2c\u8a66\uff0c\u800c\u4e0d\u53ea\u662f\u4fee\u6539 time \u898f\u5247\u5f8c\u624d\u6e2c\u8a66\u3002<\/li>\n<\/ol>\n<p>\u5f9e\u5de5\u7a0b\u89d2\u5ea6\u4f86\u770b\uff0c\u6700\u5f37\u7684\u6a21\u5f0f\u59cb\u7d42\u662f\u300c\u53ef\u7d44\u5408\u6027\u300d\uff1a\u5c07 PAM \u6642\u9593\u898f\u5247\u8207\u6700\u5c0f\u6b0a\u9650\u539f\u5247\u3001\u7db2\u8def\u63a7\u5236\u4ee5\u53ca\u56b4\u8b39\u7684\u5de5\u4f5c\u968e\u6bb5\u65e5\u8a8c\u7d50\u5408\u8d77\u4f86\u3002\u6bcf\u4e00\u5c64\u90fd\u4fdd\u6301\u7c21\u55ae\uff0c\u4f46\u7d44\u5408\u8d77\u4f86\u4e4b\u5f8c\uff0c\u5c31\u80fd\u8b93\u6feb\u7528\u8b8a\u5f97\u66f4\u56f0\u96e3\uff0c\u4e5f\u8b93\u8ffd\u8e64\u8abf\u67e5\u8b8a\u5f97\u66f4\u6709\u6548\u7387\u3002<\/p>\n<h2><strong>\u7d50\u8ad6<\/strong><\/h2>\n<p>PAM \u767b\u5165\u6642\u9593\u9650\u5236\u662f\u4e00\u7a2e\u5e36\u6709\u7d93\u5178\u98a8\u683c\u4f46\u4f9d\u820a\u975e\u5e38\u6709\u6548\u7684\u63a7\u5236\u624b\u6bb5\uff0c\u56e0\u70ba\u5b83\u628a\u4e00\u500b\u72f9\u7a84\u800c\u95dc\u9375\u7684\u554f\u984c\u89e3\u6c7a\u5f97\u5f88\u597d\u3002\u900f\u904e\u5728 account \u968e\u6bb5\u639b\u63a5\u6642\u9593\u611f\u77e5\u7b56\u7565\uff0c\u4f7f\u7528 <code>time.conf<\/code> \u64b0\u5beb\u6e05\u695a\u7684\u908f\u8f2f\u898f\u5247\uff0c\u4e26\u9a57\u8b49\u670d\u52d9\u4f5c\u7528\u7bc4\u570d\u8207\u7cfb\u7d71\u6642\u9593\uff0c\u7ba1\u7406\u54e1\u5c31\u80fd\u4ee5\u6975\u4f4e\u7684\u984d\u5916\u6210\u672c\uff0c\u986f\u8457\u6e1b\u5c11\u4e0d\u5fc5\u8981\u7684\u767b\u5165\u66b4\u9732\u9762\u3002\u5c0d\u65bc\u7ba1\u7406\u65e5\u672c\u4f3a\u670d\u5668\u79df\u7528\u74b0\u5883\u3001\u5c24\u5176\u662f\u8de8\u591a\u500b\u6642\u5340\u5354\u4f5c\u7dad\u904b\u7684\u5de5\u7a0b\u5e2b\u800c\u8a00\uff0c\u9019\u7a2e\u65b9\u5f0f\u80fd\u5920\u5728\u4e0d\u589e\u52a0\u7cfb\u7d71\u8ca0\u64d4\u3001\u4e5f\u4e0d\u6a21\u7cca\u7b56\u7565\u610f\u5716\u7684\u524d\u63d0\u4e0b\uff0c\u70ba\u9060\u7aef\u5b58\u53d6\u5efa\u7acb\u66f4\u5f37\u7684\u7d00\u5f8b\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u7d93\u904e\u5f37\u5316\u7684\u57fa\u790e\u8a2d\u65bd\u4e2d\uff0c\u5b58\u53d6\u7b56\u7565\u61c9\u7576\u50cf\u9632\u706b\u7246\u898f\u5247\u6216 Shell \u6b0a\u9650\u4e00\u6a23\uff0c\u7d93\u904e\u5be9\u614e\u8a2d\u8a08\u3002\u4e00\u7a2e\u975e\u5e38\u5be6\u7528\u7684\u63a7\u5236\u624b\u6bb5 [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"https:\/\/www.simcentric.com\/tc\/japan-dedicated-server-tc\/how-to-use-pam-to-restrict-server-login-hours\/\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":2,"featured_media":35547,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[8116],"tags":[14059,14060,14061,14062,9014],"class_list":["post-35550","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-japan-dedicated-server-tc","tag-pam-login-time-restriction","tag-server-login-hours","tag-linux-access-control","tag-ssh-login-policy","tag-japan-hosting-security"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u5982\u4f55\u4f7f\u7528 PAM \u9650\u5236\u4f3a\u670d\u5668\u767b\u5165\u6642\u9593<\/title>\n<meta name=\"description\" content=\"\u4e86\u89e3\u5982\u4f55\u4f7f\u7528 PAM \u6642\u9593\u898f\u5247\u9650\u5236\u4f3a\u670d\u5668\u767b\u5165\u6642\u6bb5\uff0c\u5f37\u5316\u5b58\u53d6\u63a7\u5236\uff0c\u907f\u514d\u8aa4\u9396\uff0c\u4e26\u8b93\u5b89\u5168\u7b56\u7565\u8207\u7dad\u904b\u6d41\u7a0b\u4fdd\u6301\u4e00\u81f4\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.simcentric.com\/tc\/wp-json\/wp\/v2\/posts\/35550\" \/>\n<meta property=\"og:locale\" content=\"zh_TW\" \/>\n<meta property=\"og:type\" content=\"company\" \/>\n<meta property=\"og:title\" content=\"\u5982\u4f55\u4f7f\u7528 PAM \u9650\u5236\u4f3a\u670d\u5668\u767b\u5165\u6642\u9593\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.simcentric.com\/tc\/wp-json\/wp\/v2\/posts\/35550\" \/>\n<meta property=\"og:site_name\" content=\"\u65b0\u5929\u57df\u4e92\u806f\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-30T06:59:08+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-10-30T07:02:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.simcentric.com\/wp-content\/uploads\/2026\/10\/sim-blog-2026-10-30-blogB.png\" \/>\n\t<meta property=\"og:image:width\" content=\"612\" \/>\n\t<meta property=\"og:image:height\" content=\"455\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5982\u4f55\u4f7f\u7528 PAM \u9650\u5236\u4f3a\u670d\u5668\u767b\u5165\u6642\u9593","description":"\u4e86\u89e3\u5982\u4f55\u4f7f\u7528 PAM \u6642\u9593\u898f\u5247\u9650\u5236\u4f3a\u670d\u5668\u767b\u5165\u6642\u6bb5\uff0c\u5f37\u5316\u5b58\u53d6\u63a7\u5236\uff0c\u907f\u514d\u8aa4\u9396\uff0c\u4e26\u8b93\u5b89\u5168\u7b56\u7565\u8207\u7dad\u904b\u6d41\u7a0b\u4fdd\u6301\u4e00\u81f4\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.simcentric.com\/tc\/wp-json\/wp\/v2\/posts\/35550","og_locale":"zh_TW","og_type":"company","og_title":"\u5982\u4f55\u4f7f\u7528 PAM \u9650\u5236\u4f3a\u670d\u5668\u767b\u5165\u6642\u9593","og_url":"https:\/\/www.simcentric.com\/tc\/wp-json\/wp\/v2\/posts\/35550","og_site_name":"\u65b0\u5929\u57df\u4e92\u806f","article_published_time":"2026-10-30T06:59:08+00:00","article_modified_time":"2026-10-30T07:02:10+00:00","og_image":[{"width":612,"height":455,"url":"https:\/\/www.simcentric.com\/wp-content\/uploads\/2026\/10\/sim-blog-2026-10-30-blogB.png","type":"image\/png"}],"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.simcentric.com\/tc\/japan-dedicated-server-tc\/how-to-use-pam-to-restrict-server-login-hours\/#article","isPartOf":{"@id":"https:\/\/www.simcentric.com\/tc\/japan-dedicated-server-tc\/how-to-use-pam-to-restrict-server-login-hours\/"},"author":{"name":"Debbie Ng","@id":"https:\/\/simcentric.com\/tc\/#\/schema\/person\/0bfc8768eb7caacbfab4a0855d805626"},"headline":"\u5982\u4f55\u4f7f\u7528 PAM \u9650\u5236\u4f3a\u670d\u5668\u767b\u5165\u6642\u9593","datePublished":"2026-10-30T06:59:08+00:00","dateModified":"2026-10-30T07:02:10+00:00","mainEntityOfPage":{"@id":"https:\/\/www.simcentric.com\/tc\/japan-dedicated-server-tc\/how-to-use-pam-to-restrict-server-login-hours\/"},"wordCount":40,"publisher":{"@id":"https:\/\/simcentric.com\/tc\/#organization"},"image":{"@id":"https:\/\/www.simcentric.com\/tc\/japan-dedicated-server-tc\/how-to-use-pam-to-restrict-server-login-hours\/#primaryimage"},"thumbnailUrl":"https:\/\/www.simcentric.com\/wp-content\/uploads\/2026\/10\/sim-blog-2026-10-30-blogB.png","keywords":["PAM \u767b\u5165\u6642\u9593\u9650\u5236","\u4f3a\u670d\u5668\u767b\u5165\u6642\u6bb5","Linux \u5b58\u53d6\u63a7\u5236","SSH \u767b\u5165\u7b56\u7565","\u65e5\u672c\u4f3a\u670d\u5668\u79df\u7528\u5b89\u5168"],"articleSection":["\u65e5\u672c\u4f3a\u670d\u5668"],"inLanguage":"zh-HK"},{"@type":"WebPage","@id":"https:\/\/www.simcentric.com\/tc\/japan-dedicated-server-tc\/how-to-use-pam-to-restrict-server-login-hours\/","url":"https:\/\/www.simcentric.com\/tc\/japan-dedicated-server-tc\/how-to-use-pam-to-restrict-server-login-hours\/","name":"\u5982\u4f55\u4f7f\u7528 PAM \u9650\u5236\u4f3a\u670d\u5668\u767b\u5165\u6642\u9593","isPartOf":{"@id":"https:\/\/simcentric.com\/tc\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.simcentric.com\/tc\/japan-dedicated-server-tc\/how-to-use-pam-to-restrict-server-login-hours\/#primaryimage"},"image":{"@id":"https:\/\/www.simcentric.com\/tc\/japan-dedicated-server-tc\/how-to-use-pam-to-restrict-server-login-hours\/#primaryimage"},"thumbnailUrl":"https:\/\/www.simcentric.com\/wp-content\/uploads\/2026\/10\/sim-blog-2026-10-30-blogB.png","datePublished":"2026-10-30T06:59:08+00:00","dateModified":"2026-10-30T07:02:10+00:00","description":"\u4e86\u89e3\u5982\u4f55\u4f7f\u7528 PAM \u6642\u9593\u898f\u5247\u9650\u5236\u4f3a\u670d\u5668\u767b\u5165\u6642\u6bb5\uff0c\u5f37\u5316\u5b58\u53d6\u63a7\u5236\uff0c\u907f\u514d\u8aa4\u9396\uff0c\u4e26\u8b93\u5b89\u5168\u7b56\u7565\u8207\u7dad\u904b\u6d41\u7a0b\u4fdd\u6301\u4e00\u81f4\u3002","breadcrumb":{"@id":"https:\/\/www.simcentric.com\/tc\/japan-dedicated-server-tc\/how-to-use-pam-to-restrict-server-login-hours\/#breadcrumb"},"inLanguage":"zh-HK","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.simcentric.com\/tc\/japan-dedicated-server-tc\/how-to-use-pam-to-restrict-server-login-hours\/"]}]},{"@type":"ImageObject","inLanguage":"zh-HK","@id":"https:\/\/www.simcentric.com\/tc\/japan-dedicated-server-tc\/how-to-use-pam-to-restrict-server-login-hours\/#primaryimage","url":"https:\/\/www.simcentric.com\/wp-content\/uploads\/2026\/10\/sim-blog-2026-10-30-blogB.png","contentUrl":"https:\/\/www.simcentric.com\/wp-content\/uploads\/2026\/10\/sim-blog-2026-10-30-blogB.png","width":612,"height":455,"caption":"\u4f7f\u7528 PAM \u9650\u5236\u4f3a\u670d\u5668\u767b\u5165\u6642\u6bb5"},{"@type":"BreadcrumbList","@id":"https:\/\/www.simcentric.com\/tc\/japan-dedicated-server-tc\/how-to-use-pam-to-restrict-server-login-hours\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.simcentric.com\/tc\/"},{"@type":"ListItem","position":2,"name":"\u5982\u4f55\u4f7f\u7528 PAM \u9650\u5236\u4f3a\u670d\u5668\u767b\u5165\u6642\u9593"}]},{"@type":"WebSite","@id":"https:\/\/simcentric.com\/tc\/#website","url":"https:\/\/simcentric.com\/tc\/","name":"Simcentric Solutions","description":"","publisher":{"@id":"https:\/\/simcentric.com\/tc\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/simcentric.com\/tc\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-HK"},{"@type":"Organization","@id":"https:\/\/simcentric.com\/tc\/#organization","name":"Simcentric Solutions","url":"https:\/\/simcentric.com\/tc\/","logo":{"@type":"ImageObject","inLanguage":"zh-HK","@id":"https:\/\/simcentric.com\/tc\/#\/schema\/logo\/image\/","url":"https:\/\/www.simcentric.com\/wp-content\/uploads\/2023\/06\/sim-logo-2023.png","contentUrl":"https:\/\/www.simcentric.com\/wp-content\/uploads\/2023\/06\/sim-logo-2023.png","width":800,"height":222,"caption":"Simcentric Solutions"},"image":{"@id":"https:\/\/simcentric.com\/tc\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/simcentric.com\/tc\/#\/schema\/person\/0bfc8768eb7caacbfab4a0855d805626","name":"Debbie Ng","image":{"@type":"ImageObject","inLanguage":"zh-HK","@id":"https:\/\/secure.gravatar.com\/avatar\/9f3420f60d27329ed6e921ddaae5206353d0a7414d1abb6f1f0b32b4fd849965?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/9f3420f60d27329ed6e921ddaae5206353d0a7414d1abb6f1f0b32b4fd849965?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/9f3420f60d27329ed6e921ddaae5206353d0a7414d1abb6f1f0b32b4fd849965?s=96&d=mm&r=g","caption":"Debbie Ng"}}]}},"_links":{"self":[{"href":"https:\/\/www.simcentric.com\/tc\/wp-json\/wp\/v2\/posts\/35550","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.simcentric.com\/tc\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.simcentric.com\/tc\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.simcentric.com\/tc\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.simcentric.com\/tc\/wp-json\/wp\/v2\/comments?post=35550"}],"version-history":[{"count":1,"href":"https:\/\/www.simcentric.com\/tc\/wp-json\/wp\/v2\/posts\/35550\/revisions"}],"predecessor-version":[{"id":35552,"href":"https:\/\/www.simcentric.com\/tc\/wp-json\/wp\/v2\/posts\/35550\/revisions\/35552"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.simcentric.com\/tc\/wp-json\/wp\/v2\/media\/35547"}],"wp:attachment":[{"href":"https:\/\/www.simcentric.com\/tc\/wp-json\/wp\/v2\/media?parent=35550"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.simcentric.com\/tc\/wp-json\/wp\/v2\/categories?post=35550"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.simcentric.com\/tc\/wp-json\/wp\/v2\/tags?post=35550"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}