{"id":108097,"date":"2024-11-01T02:52:10","date_gmt":"2024-10-31T18:52:10","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=108097"},"modified":"2024-11-01T02:52:10","modified_gmt":"2024-10-31T18:52:10","slug":"s-postfix-crontab","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/s-postfix-crontab.html","title":{"rendered":"\u5982\u4f55\u89e3\u51b3s\u6743\u9650\u4f4d\u5f15\u53d1postfix\u53cacrontab\u5f02\u5e38"},"content":{"rendered":"
\u4e00\u3001\u95ee\u9898\u73b0\u8c61<\/strong><\/div>\n

\u4e1a\u52a1\u53cd\u9988\u67d0\u53f0\u5e94\u7528\u670d\u52a1\u5668\uff0c\u666e\u901a\u7528\u6237\u4f7f\u7528mutt\u7a0b\u5e8f\u53d1\u9001\u90ae\u4ef6\u65f6\uff0c\u63d0\u793a\u201cpostdrop warning: mail_queue_enter: create file maildrop\/713410.6065: Permission denied\u201d\uff0c\u800c\u4e14\u666e\u901a\u7528\u6cd5\u4f7f\u7528crontab -e \u7f16\u8f91\u81ea\u8eab\u4efb\u52a1\u8ba1\u5212\u65f6\uff0c\u4e5f\u4f1a\u63d0\u793a\u201c crontab: edits left in \/tmp\/crontab.XXXXCl0bLz\u201d \u3002<\/p>\n

\u4e8c\u3001\u95ee\u9898\u5206\u6790\u4e0e\u89e3\u51b3<\/strong><\/div>\n
1\u3001postdrop\u5f02\u5e38\u95ee\u9898<\/strong><\/span><\/div>\n

\"\"<\/a><\/p>\n

\u4f7f\u7528postfix check\u547d\u4ee4\u68c0\u6d4b\u53d1\u73b0\u6709\u5982\u4e0b\u62a5\u9519\uff1a<\/p>\n

postfix\/postfix-script: warning: not set-gid or not owner+group+world executable: \/usr\/sbin\/postqueue\r\npostfix\/postfix-script: warning: not set-gid or not owner+group+world executable: \/usr\/sbin\/postdrop\r\n<\/pre>\n

\u4e0a\u9762\u7684\u63d0\u793a\u5176\u5b9e\u5df2\u7ecf\u975e\u5e38\u6e05\u695a\u4e86\uff0c\u5728\u8fd9\u4e24\u4e2a\u53ef\u6267\u884c\u6587\u4ef6\u7684\u7ec4\u6743\u9650\u4e2d\uff0c\u6ca1\u6709s\u6743\u9650\u4f4d\u3002\u614e\u91cd\u8d77\u89c1\uff0c\u4e0d\u5ba1\u627e\u4e86\u4e00\u53f0\u4e3b\u673a\u5bf9\u6bd4\u4e0b\uff0c\u53d1\u73b0\u786e\u5b9e\u4e0d\u5b58\u5728s\u6743\u9650\uff0c\u6b63\u5e38\u7684\u6743\u9650\u5982\u4e0b\uff1a<\/p>\n

# ll \/usr\/sbin\/postqueue\r\n-rwxr-sr-x. 1 root postdrop 259992 Jan 27 2014 \/usr\/sbin\/postqueue\r\n<\/pre>\n

\u89e3\u51b3\u65b9\u6cd5\u975e\u5e38\u7b80\u5355\uff1a<\/p>\n

chmod g+s \/usr\/sbin\/postqueue\r\nchmod g+s \/usr\/sbin\/postdrop\r\npostfix reload\r\n<\/pre>\n
2\u3001crontab\u666e\u901a\u7528\u6237\u65e0\u6cd5\u7f16\u8f91\u95ee\u9898<\/strong><\/span><\/div>\n

\u4f7f\u7528crontab -e<\/span>\u53d1\u73b0\u53ef\u4ee5\u6b63\u5e38\u67e5\u770b\uff0c\u4f46\u662f\u7f16\u8f91\u5b8c\uff0c\u4fdd\u5b58\u65f6\u63d0\u793a\u201c crontab: edits left in \/tmp\/crontab.XXXXCl0bLz\u201d \u3002\u5373\u7136\u4e0a\u9762\u7b2c\u4e00\u4e2a\u95ee\u9898\u662fs\u6743\u9650\u4f4d\u5f15\u8d77\u7684\uff0c\u8fd9\u4e2a\u95ee\u9898\u60f3\u5fc5\u4e5f\u662f\uff0c\u6240\u4ee5\u672a\u505astrace \u6216\u5ba1\u8ba1\u8ddf\u8e2a\uff0c\u5730\u63a5\u67e5\u770b\/usr\/bin\/crontab\u6743\u9650\u4f4d\uff0c\u53d1\u73b0\u548c\u6b63\u5e38\u4e3b\u673a\u5bf9\u6bd4\uff0c\u53d1\u73b0\u7528\u6237\u6743\u9650\u4e0a\u5c11\u4e86s\u6743\u9650 \uff0d\uff0d\uff0dcrontab\u547d\u4ee4\u548cpasswd\u547d\u4ee4\u7c7b\u4f3c\uff0c\u9700\u8981\u7528\u6237\u5177\u6709s\u6743\u9650\u4f4d\u3002\u6267\u884c\u5982\u4e0b\u547d\u4ee4\u540e\uff0c\u95ee\u9898\u89e3\u51b3\uff1a<\/p>\n

chmod u+s \/usr\/bin\/crontab\r\nrccron restart\r\n<\/pre>\n

\u6ce8\uff1a\u8fd9\u70b9\u5bf9\u6bd4\u4e86\u4e0bSuSE\u548credhat\u4e0b\u7684\u533a\u522b\uff0c\u53d1\u73b0user\u6743\u9650\u4e0b\u5982\u679c\u6ca1\u6709s\u6743\u9650\u4f4d\u3002\u5728redhat\u4e0b\u63d0\u793a\uff1a<\/p>\n

    \n
  1. You<\/span> (<\/span>test<\/span>)<\/span> are not allowed to use this program <\/span>(<\/span>crontab<\/span>)<\/span><\/li>\n
  2. See<\/span> crontab<\/span>(<\/span>1<\/span>)<\/span> for<\/span> more information<\/span><\/li>\n<\/ol>\n

    \u800c\u4e14\u76f4\u63a5crontab -l\u547d\u4ee4\u67e5\u770b\u65f6\uff0c\u90fd\u4f1a\u63d0\u793a\u4e0a\u9762\u7684\u9519\u8bef\u3002\u800c\u5728SuSE\u6ca1\u6709\u8fd9\u4e2as\u6743\u9650\uff0c\u4ecd\u7136\u53ef\u4ee5\u6b63\u5e38\u7684\u901a\u8fc7crontab -l<\/span> \u8fdb\u884c\u67e5\u770b\u3002<\/p>\n

    \n

    \u539f\u6587\u6765\u81ea\uff1ahttp:\/\/www.361way.com\/sgid-postfix-crontab\/5559.html<\/a><\/p>\n

    \u672c\u6587\u5730\u5740\uff1ahttps:\/\/lrxjmw.cn\/s-postfix-crontab.html<\/a>\u7f16\u8f91\uff1a\u5f20\u96c4\uff0c\u5ba1\u6838\u5458\uff1a\u9004\u589e\u5b9d<\/span><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"

    \u4e00\u3001\u95ee\u9898\u73b0\u8c61 \u4e1a\u52a1\u53cd\u9988\u67d0\u53f0\u5e94\u7528\u670d\u52a1\u5668\uff0c\u666e\u901a\u7528\u6237\u4f7f\u7528mutt\u7a0b\u5e8f\u53d1\u9001\u90ae\u4ef6\u65f6\uff0c\u63d0\u793a\u201cpostdrop warnin […]<\/p>\n","protected":false},"author":643,"featured_media":108377,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-108097","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/108097","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/643"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=108097"}],"version-history":[{"count":4,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/108097\/revisions"}],"predecessor-version":[{"id":108409,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/108097\/revisions\/108409"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/108377"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=108097"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=108097"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=108097"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}