{"id":31,"date":"2019-09-21T07:51:00","date_gmt":"2019-09-20T23:51:00","guid":{"rendered":"http:\/\/pro369.com\/linux\/?p=31"},"modified":"2019-09-21T07:51:00","modified_gmt":"2019-09-20T23:51:00","slug":"%e8%a7%a3%e6%b1%ba%e5%ae%89%e8%a3%9d%e5%ae%8c-linux-%e5%be%8c%e4%bf%ae%e6%94%b9%e5%90%84%e4%bc%ba%e6%9c%8d%e5%99%a8%e8%a8%ad%e5%ae%9a%e6%aa%94%e5%9b%b0%e6%93%be%e7%9a%84%e5%a5%bd%e5%b7%a5%e5%85%b7","status":"publish","type":"post","link":"https:\/\/por.tw\/linux\/%e8%a7%a3%e6%b1%ba%e5%ae%89%e8%a3%9d%e5%ae%8c-linux-%e5%be%8c%e4%bf%ae%e6%94%b9%e5%90%84%e4%bc%ba%e6%9c%8d%e5%99%a8%e8%a8%ad%e5%ae%9a%e6%aa%94%e5%9b%b0%e6%93%be%e7%9a%84%e5%a5%bd%e5%b7%a5%e5%85%b7\/","title":{"rendered":"\u89e3\u6c7a\u5b89\u88dd\u5b8c Linux \u5f8c\u4fee\u6539\u5404\u4f3a\u670d\u5668\u8a2d\u5b9a\u6a94\u56f0\u64fe\u7684\u597d\u5de5\u5177\uff1aYHTools"},"content":{"rendered":"<p><strong style=\"background-color: #ffff00;\"><span style=\"font-size: medium;\">\u89e3\u6c7a\u5b89\u88dd\u5b8c Linux \u5f8c\u4fee\u6539\u5404\u4f3a\u670d\u5668\u8a2d\u5b9a\u6a94\u56f0\u64fe\u7684\u597d\u5de5\u5177\uff1aYHTools<\/span><\/strong><\/p>\n<p>YHTools\u5de5\u5177\u96c6\u662f\u70ba\u89e3\u6c7a\u5b89\u88dd\u5b8c Linux \u4e4b\u5f8c\uff0c\u9084\u8981\u82b1\u9577\u6642\u9593\u53bb\u4fee\u6539\u5404\u4f3a\u670d\u5668\u8a2d\u5b9a\u6a94\u7684\u56f0\u64fe\u800c\u51fa\u73fe\u3002<br \/>\n\u6240\u63d0\u4f9b\u7684\u529f\u80fd\uff0c\u8acb\u898b\u4e0b\u65b9\u5de5\u5177\u7684\u7c21\u4ecb\u6587\u3002<br \/>\n\u5de5\u5177\u7684\u958b\u767c\u8edf\u9ad4\u6709\u4e8c\uff0c\u4e00\u662f python3.x \u958b\u767c\uff08\u526f\u6a94\u540d\u70ba pyw\uff09\uff0c\u9700\u8981\u5716\u5f62\u5316\u4ecb\u9762\u66a8 UTF-8 \u4e2d\u6587\u986f\u793a\u7684\u80fd\u529b\uff0c\u56e0\u6b64\u8acb\u5728\u5177\u6709 python3 \u74b0\u5883\u4e0b\u7684 linux \u5957\u4ef6\u57f7\u884c\u3002<br \/>\n\u53e6\u4e00\u7a2e\u662f BASH \uff0c\u526f\u6a94\u540d\u70ba .sh\u3000\u53ef\u76f4\u63a5\u5728\u7d42\u7aef\u6a5f\u756b\u9762\u57f7\u884c\u3002<\/p>\n<p><span style=\"color: #008000;\"><strong>\u7248\u6b0a\u66a8\u514d\u8cac\u8072\u660e<\/strong><\/span><\/p>\n<p>* \u672c\u5de5\u5177\u4ee5 GPL v2 \u6388\u6b0a\u65b9\u5f0f\u7d66\u5927\u5bb6\u4f7f\u7528<br \/>\n* \u958b\u767c\u672c\u5de5\u5177\u7684\u5169\u7a2e\u7a0b\u5f0f\u7686\u662f\u5177\u7d14\u6587\u5b57\u6a94\u517c\u53ef\u57f7\u884c\u7684 SCRIPT \uff0c\u56e0\u6b64\u4e0b\u8f09\u5f8c\u4fbf\u53ef\u700f\u89bd\uff0f\u4fee\u6539\u539f\u59cb\u78bc\uff0c\u60a8\u53ef\u81ea\u884c\u4fee\u6539\u6210\u7b26\u5408\u60a8\u81ea\u5df1\u9700\u6c42\u7684\u72c0\u614b\u518d\u4f7f\u7528\u3002<br \/>\n* \u7121\u8ad6 BASH \u6216\u662f Python3 \u5c0d\u7b46\u8005\u800c\u8a00\u90fd\u662f\u521d\u5b78\u7684\u7a0b\u5f0f\u8a9e\u8a00\uff0c\u56e0\u6b64\u7a0b\u5f0f\u78bc\u4e0d\u5118\u5b8c\u5584\uff0c\u7121\u6cd5\u4fdd\u8b49\u4efb\u4f55\u57f7\u884c\u7d50\u679c\u3002<\/p>\n<p><span style=\"color: #ff0000;\"><strong>\u4f7f\u7528\u524d\u6ce8\u610f<\/strong><\/span><\/p>\n<p>* \u5e95\u4e0b\u5404\u5de5\u5177\u4f7f\u7528\u8aaa\u660e\u5747\u6975\u7c21\u5316\uff0c\u8acb\u5404\u4f4d\u4e00\u5b9a\u8981\u914d\u5408\u672c\u7ad9\u5404\u4f3a\u670d\u5957\u4ef6\u76f8\u95dc\u6587\u4ef6\u8aaa\u660e\u4f86\u4f7f\u7528<br \/>\n* \u57fa\u672c\u4e0a YHTools \u5c31\u53ea\u662f\u628a\u6587\u4ef6\u4e0a\u8981\u5404\u4f4d\u8f38\u5165\u7684\u8a2d\u5b9a\u6a94\u300c\u5feb\u901f\u88fd\u9020\u300d\u51fa\u4f86\uff0c\u4ee5\u7701\u53bb\u60a8\u6253\u5b57\u7684\u6642\u9593\u800c\u5df2\u3002<\/p>\n<p><span style=\"color: #800000;\"><strong>\u6539\u7248\u8aaa\u660e<\/strong><\/span><\/p>\n<p>* 2019-03-09 \u6539\u7248\uff1afw4local.pyw \u55ae\u6a5f\u9632\u706b\u7246\u898f\u5247\u5217\u52fe\u9078\u9632\u79a6 SSH Port \u537b\u8b8a\u6210 FTP Port \u4e4b\u932f\u8aa4\u4fee\u5b9a<br \/>\n* 2019-03-10 \u6539\u7248<br \/>\no \u65b0\u589e yhtools\/chmodadv.sh \u7a0b\u5f0f\uff0c\u4f7f chmod 777\uff5c755 \u6642\u6703\u81ea\u52d5\u5224\u65b7\u8cc7\u6599\u593e(777|755)\u6216\u6a94\u6848(666|644)<br \/>\no \u4fee\u6539 homechown.sh \u70ba\u4e0d\u5fc5\u5148\u8907\u88fd\u5230 \/home \u5e95\u4e0b\u4e5f\u53ef\u4ee5\u57f7\u884c<br \/>\n* 2019-03-11 \u5c0f\u6539 yhtools\/chmodadv.sh \u7684\u63d0\u793a\u5b57\u5143<br \/>\n* 2019-03-12 \u4fee\u6539<br \/>\no yhtools\/fw4nat.pyw \u88e1\u9762\u6709\u8a3b\u89e3\u300c#\u300d\u7b26\u865f\u4e4b\u524d\u8aa4 key \u6210\u5168\u5f62\u5b57\u5143<br \/>\no yhtools\/dhcpconf.pyw \u4fee\u6539\u6210\u7522\u751f dhcpd.conf \u53ca isc-dhcp-server \u5206\u5225\u6e96\u5099\u8981\u653e\u81f3 \/etc\/dhcp \u53ca \/etc\/default<br \/>\n\u9019\u662f debian squeeze \u53ca ubuntu 11.04 \u7248\u672c\uff0c\u6700\u65b0\u7684\u505a\u6cd5\uff0c\u4e4b\u524d\u4f7f\u7528 ubuntu 10.10 \u6c92\u6ce8\u610f\u5230\uff0c\u73fe\u5728\u4fee\u6539\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/visdacom.com\/linux\/wp-content\/uploads\/2019\/07\/Linux-Server-Project-9-650x433.jpg\" alt=\"\" class=\"alignnone size-medium wp-image-527\" width=\"650\" height=\"433\" \/><\/p>\n<p><span style=\"color: #800080;\"><strong>\u5de5\u5177\u4f7f\u7528\u7cfb\u7d71\u8981\u6c42<\/strong><\/span><\/p>\n<p>1. Debian Squeeze \u6216 Ubuntu 10.10 \u4ee5\u4e0a\u4e26\u5fc5\u9808\u5b89\u88dd X-Window \u8996\u7a97<br \/>\n2. python3.1.x, python3-tk(8.5\u4ee5\u4e0a)<br \/>\n* apt-get update<br \/>\n* apt-get install python3 python3-tk<\/p>\n<p><span style=\"color: #0000ff;\"><strong>\u5de5\u5177\u4e0b\u8f09<\/strong><\/span><\/p>\n<p>* \u4e0b\u8f09<br \/>\no root@dns:~# wget http:\/\/myip.tw\/download\/yhtools.tar.gz<br \/>\n* \u89e3\u58d3<br \/>\no root@dns:~# tar xzvf yhtools.tar.gz<br \/>\n* \u4f7f\u7528<br \/>\n\u57f7\u884c\u6bcf\u500b\u5de5\u5177\u524d\uff0c\u5728\u8f38\u5165\u7a0b\u5f0f\u540d\u7a31\u524d\u4e00\u5b9a\u8981\u52a0\u300c.\/\u300d\uff0c\u4f8b\uff1a<br \/>\no root@dns:~# cd yhtools<br \/>\no root@dns:~\/yhtoosl# .\/dnsconf.pyw<\/p>\n<p><span style=\"color: #993300;\"><strong>\u5de5\u5177\u96c6\u7a0b\u5f0f\u5217\u8868<\/strong><\/span><\/p>\n<p>.<br \/>\n|&#8211; chmodadv.sh<br \/>\n|&#8211; dhcpconf<br \/>\n|\u00a0\u00a0 |&#8211; dhcp3-server<br \/>\n|\u00a0\u00a0 |&#8211; dhcpconf.pyw<br \/>\n|\u00a0\u00a0 `&#8211; dhcpd.conf<br \/>\n|&#8211; dnsconf<br \/>\n|&#8211; dnsconf.pyw<br \/>\n|&#8211; dnsconf.sample<br \/>\n|\u00a0\u00a0 |&#8211; db.0<br \/>\n|\u00a0\u00a0 |&#8211; db.127<br \/>\n|\u00a0\u00a0 |&#8211; db.255<br \/>\n|\u00a0\u00a0 |&#8211; db.local<br \/>\n|\u00a0\u00a0 |&#8211; db.root<br \/>\n|\u00a0\u00a0 |&#8211; named.conf<br \/>\n|\u00a0\u00a0 |&#8211; named.conf.default-zones<br \/>\n|\u00a0\u00a0 `&#8211; named.conf.options<br \/>\n|&#8211; firewall<br \/>\n|\u00a0\u00a0 |&#8211; fw4br.pyw<br \/>\n|\u00a0\u00a0 |&#8211; fw4local.pyw<br \/>\n|\u00a0\u00a0 |&#8211; fw4nat.pyw<br \/>\n|\u00a0\u00a0 |&#8211; fwtc4_l7filter.sh<br \/>\n|\u00a0\u00a0 `&#8211; fwtc.sh<br \/>\n|&#8211; homechown.sh<br \/>\n|&#8211; maccount<br \/>\n|\u00a0\u00a0 |&#8211; maccount.sh<br \/>\n|\u00a0\u00a0 |&#8211; passwd.txt<br \/>\n|\u00a0\u00a0 `&#8211; readme.txt<br \/>\n|&#8211; pubfolder.sh<br \/>\n|&#8211; README.TXT<br \/>\n|&#8211; rsync<br \/>\n|\u00a0\u00a0 |&#8211; rsync_c.pyw<br \/>\n|\u00a0\u00a0 `&#8211; rsync_s.pyw<br \/>\n`&#8211; test.py<\/p>\n<p><span style=\"color: #ff0000;\"><strong>\u5404\u5de5\u5177\u7c21\u4ecb<\/strong><\/span><br \/>\nchmodadv.sh<\/p>\n<p>* \u4f7f\u7528\u6642\u6a5f\uff1a\u4fee\u6539\u6a94\u6848\u6b0a\u9650<br \/>\n\u6709\u6642\u6211\u5011\u5f9e\u7db2\u8def\u4e0b\u8f09\uff0c\u4e26\u7528\u5716\u5f62\u5316\u5de5\u5177\u89e3\u58d3\u7e2e\u51fa\u8cc7\u6599\u593e\u6a94\u6848\u6b0a\u9650\u70ba 700 \uff0c\u4f46\u6211\u5011\u9700\u8981\u7684\u537b\u662f 777\uff5c755 (\u4f8b\uff1axoops \u76ee\u9304\u8981755\u624d\u53ef\u88ab\u5b89\u88dd\uff09\u3002\u53ef\u5229\u7528\u672c\u5de5\u5177\u628a 700 \u7684\u6b0a\u9650\u9023\u540c\u5b50\u76ee\u9304\u6539\u6210 777\uff5c755 \uff0c\u800c\u4e14\u5b83\u4e0d\u9650\u5e7e\u5c64\u5b50\u76ee\u9304\uff0c\u4e5f\u5177\u81ea\u52d5\u5224\u65b7\u529f\u80fd\uff0c\u6703\u628a\u8cc7\u6599\u593e\u8a2d\u70ba 777\uff5c755\uff0c\u6a94\u6848\u8a2d\u70ba 666\uff5c644\u3002<br \/>\n* \u6ce8\u610f\u4e8b\u9805\uff1a\u82e5\u8cc7\u6599\u593e\u5167\u542b\u53ef\u57f7\u884c\u6b0a\u7684\u6a94\u6848\uff0c\u4e5f\u6703\u4e00\u5f8b\u88ab\u6539\u6210 644<br \/>\n* \u4f7f\u7528\u65b9\u5f0f\uff1achmodadv.sh 777|755 \u8cc7\u6599\u593e\u540d\u7a31<br \/>\no \u53ef\u8907\u88fd\u5230 \/usr\/local\/bin \u4ee5\u65b9\u4fbf\u57f7\u884c<br \/>\nroot@dns:~# cp yhtools\/chmodadv.sh \/usr\/local\/bin<br \/>\no \u4f8b\u4e00\uff1aroot@dns:~\/\u4e0b\u8f09\/xoops-2.5.0# chmodadv.sh 755 htdocs<br \/>\no \u4f8b\u4e8c\uff1aroot@dns:~\/\u4e0b\u8f09\/xoops-2.5.0\/htdocs# chmodadv.sh 777 uploads<\/p>\n<p>dhcpconf.pyw<\/p>\n<p>* \u4f7f\u7528\u6642\u6a5f\uff1a\u5feb\u901f\u7522\u751f DHCP3 Server \u6240\u9700\u7684\u8a2d\u5b9a\u6a94\uff0c\/etc\/default\/dhcp3-server \u53ca dhcpd.conf<br \/>\n* \u6ce8\u610f\u4e8b\u9805\uff1a\u5404\u7248\u672c\u7684 dhcp3 \u4e3b\u8a2d\u5b9a\u653e\u7f6e\u5730\u9ede\u4e0d\u4e00\u5b9a\u4e00\u6a23\uff0c\u53ef\u80fd\u5728 \/etc\/dhcp3 \uff0c\u4e5f\u53ef\u80fd\u5728 \/etc\/dhcp<br \/>\n* \u4f7f\u7528\u65b9\u5f0f\uff1a<br \/>\no \u57f7\u884c\u672c\u5de5\u5177<br \/>\nroot@dns:~\/yhtools\/dhcpconf# .\/dhcpconf.pyw<br \/>\no \u628a\u7522\u51fa\u7684 dhcp3-server \u53ca dhcpd.conf \u8907\u88fd\u5230\u5404\u81ea\u7684\u4f4d\u7f6e<\/p>\n<p>dnsconf.pyw<\/p>\n<p>* \u53c3\u8003\u6587\u4ef6\uff1ahttp:\/\/myip.tw\/itsmw\/index.php\/DNS<br \/>\n* dnsconf.pyw \u70ba\u4f7f\u7528 python3 \u64b0\u5beb\u4e4b\u5716\u5f62\u5316 dns server \u8a2d\u5b9a\u6a94\u7522\u751f\u5668<br \/>\no \u7db2\u57df\u540d\u7a31\u8207 IPv4 \u4f4d\u5740\u70ba\u5fc5\u586b\u9805\u76ee<br \/>\no \u6709 IPv6 \u8005\uff0c\u8acb\u586b IPv6 \u7db2\u6bb5\u53ca\u672b\u78bc IP \u503c\uff0c\u4f8b\uff1a2001:288:75a6 \u53ca 19 \u7a0b\u5f0f\u6703\u81ea\u5df1\u7d44\u5408\u6210 2001:288:75a6::19 \u53c3\u6578\u3002<\/p>\n<p>* OB2D sqz \u4f7f\u7528\u8005\uff0c\u4e00\u5b9a\u8981\u628a\u8996\u7a97\u4ecb\u9762\u5b89\u88dd\u8d77\u4f86<br \/>\n* \u82e5\u5df2\u4f7f\u7528\u904e OB2D sqz \u5167\u5efa\u7684 DNS \u7522\u751f\u5668\uff08\u66fe\u52fe\u9078\u9019\u53f0\u8981\u64d4\u4efbDNS\u4f3a\u5668\uff09\uff0c\u90a3\u9ebc\uff1a<br \/>\n1. \u628a .\/yhtools\/dnsconf.sample\/ \u5e95\u4e0b\u6240\u6709\u6a94\u6848\u5148\u8907\u88fd\u5230 \/etc\/bind \u5e95\u4e0b<br \/>\n2. \u57f7\u884c dnsconf.pyw\u5f8c\uff0c\u518d\u628a\u7522\u751f\u5728 .\/yhtools\/dnsconf \u5e95\u4e0b\u7684\u53e6\u4e00\u6279\u8a2d\u5b9a\u6a94\uff0c\u4e5f\u8907\u88fd\u5230 \/etc\/bind \u53bb\u3002<br \/>\n* \u975e OB2D sqz \u6216\u65b0\u5b89\u88dd OB2D sqz \u4f46\u672a\u52fe\u9078\u904e\u8981\u300c\u64d4\u4efbDNS\u4f3a\u670d\u5668\u300d\u6642<br \/>\no \u53ea\u8981\u628a\u57f7\u884c .\/yhtools\/dnsconf.pyw \u7522\u751f\u5728 .\/yhtools\/dnsconf\/ \u5e95\u4e0b\u7684\u8a2d\u5b9a\u6a94\u8907\u88fd\u5230 \/etc\/bind \u5e95\u4e0b\u5373\u53ef\u3002<\/p>\n<p>fwtc.sh<\/p>\n<p>* \u53c3\u8003\u6587\u4ef6\uff1a http:\/\/myip.tw\/itsmw\/index.php\/Link_Control<br \/>\n* \u7a0b\u5f0f yhtools\/firewall\/fwtc.sh \u70ba\u5728 NAT \u6216 Bridge Route \u9632\u706b\u7246\u4e0b\u5354\u52a9\u505a\u6d41\u91cf\u7ba1\u5236\u7684\u5de5\u5177\u3002<br \/>\n* \u4f7f\u7528\u65b9\u5f0f\uff1a\u8acb\u5148\u76f4\u63a5\u7de8\u8f2f fwtc.sh \u5167\u7684\u8a2d\u5b9a\u503c\u518d\u555f\u7528<br \/>\no \u555f\u52d5\uff1a .\/firewall\/fwtc.sh start<br \/>\no \u4e2d\u6b62\uff1a .\/firewall\/fwtc.sh stop<br \/>\no \u986f\u793a\uff1a .\/firewall\/fwtc.sh show<\/p>\n<p>fw4local.pyw<\/p>\n<p>* \u53c3\u8003\u6587\u4ef6\uff1a http:\/\/myip.tw\/itsmw\/index.php\/OB2D_Iptables<br \/>\n* \u7a0b\u5f0f\uff1a yhtools\/firewall\/fw4local.pyw \u672c\u6a5f\u9632\u706b\u7246\u898f\u5247\u5217\u8a2d\u5b9a<br \/>\n* \u4f7f\u7528\uff1a<br \/>\no cd firewall<br \/>\no .\/fw4local.pyw \u586b\u5165\u5404\u53c3\u6578\uff0c\u9ede\u300c\u78ba\u5b9a\u300d\u7522\u751f .\/rc.local<br \/>\no \u6309\u300cEscape\u300d\u96e2\u958b\u672c\u5de5\u5177<br \/>\no \u6aa2\u8996\u5167\u5bb9\u82e5\u6c92\u554f\u984c\uff0c\u8986\u84cb \/etc\/rc.local \u5373\u53ef<br \/>\no \u5957\u7528\u65b0\u898f\u5247\u5217\uff1a service rc.local start<\/p>\n<p>fw4br.pyw<\/p>\n<p>\u53c3\u8003\u6587\u4ef6\uff1ahttp:\/\/myip.tw\/itsmw\/index.php\/OB2D_Firewall<\/p>\n<p>* \u7a0b\u5f0f\uff1a yhtools\/firewall\/fw4br.pyw \u900f\u901a\u5f0f\u9632\u706b\u7246\u8a2d\u5b9a\u5de5\u5177<br \/>\n* \u8aaa\u660e\uff1a<br \/>\no \u8acb\u5148\u78ba\u8a8d \/etc\/network\/interfaces \u5167\u5bb9\u53ea\u5269 lo \u7684\u8a2d\u5b9a\uff0c\u8a73\u898b http:\/\/myip.tw\/itsmw \u6587\u4ef6<br \/>\no cd .\/yhtools\/firewall<br \/>\no .\/fw4br.pyw<br \/>\no \u540c\u524d\u6240\u8ff0\uff0c\u4f9d\u60a8\u9700\u6c42\u586b\u6c42\uff0c\u4e26\u9ede\u300c\u78ba\u5b9a\u300d\u7522\u751f rc.local<br \/>\no \u6309\u300cEscape\u300d\u96e2\u958b\u672c\u5de5\u5177<br \/>\no \u6aa2\u8996\u5167\u5bb9\u82e5\u6c92\u554f\u984c\uff0c\u8986\u84cb \/etc\/rc.local \u5373\u53ef<br \/>\no \u5957\u7528\u65b0\u898f\u5247\u5217\uff1a service rc.local start<\/p>\n<p>fw4nat.pyw<\/p>\n<p>* \u53c3\u8003\u6587\u4ef6\uff1a http:\/\/myip.tw\/itsmw\/index.php\/OB2D_NAT<br \/>\n* \u7a0b\u5f0f\uff1a yhtools\/firewall\/fw4nat.pyw \u5efa\u7acb\u865b\u64ec IP \u7db2\u6bb5\u8a2d\u5b9a\u5de5\u5177<br \/>\n* \u8aaa\u660e\uff1a<br \/>\no \u8acb\u5148\u78ba\u8a8d\u5df2\u8a2d\u59a5 eth0 \u53ca eh1 \u7db2\u5361\u4e00\u70ba\u516c\u7528 IP \u4e00\u70ba\u79c1\u6709 IP\uff0c\u8a73\u898b http:\/\/myip.tw\/itsmw \u6587\u4ef6<br \/>\no cd .\/yhtools\/firewall<br \/>\no .\/fw4nat.pyw<br \/>\no \u540c\u524d\u6240\u8ff0\uff0c\u4f9d\u60a8\u9700\u6c42\u586b\u6c42\uff0c\u4e26\u9ede\u300c\u78ba\u5b9a\u300d\u7522\u751f rc.local<br \/>\no \u6309\u300cEscape\u300d\u96e2\u958b\u672c\u5de5\u5177<br \/>\no \u6aa2\u8996\u5167\u5bb9\u82e5\u6c92\u554f\u984c\uff0c\u8986\u84cb \/etc\/rc.local \u5373\u53ef<br \/>\no \u5957\u7528\u65b0\u898f\u5247\u5217\uff1a service rc.local start<\/p>\n<p>homechown.sh<\/p>\n<p>homechown.sh \u5feb\u901f\u6062\u5fa9 \/home \u5e95\u4e0b\u5404\u5bb6\u76ee\u9304\u70ba\u539f\u4f7f\u7528\u8005\u3002<\/p>\n<p>* \u7a0b\u5f0f\uff1a yhtools\/homechown.sh<br \/>\n* \u53c3\u8003\u6587\u4ef6\uff1ahttp:\/\/myip.tw\/itsmw\/index.php\/LinuxDataTrans \uff0c\u6587\u4ef6\u5167\u7b2c 4.3 \u7bc0<br \/>\n* \u8981\u6c42\uff1a\u5404\u5bb6\u76ee\u9304\u7684\u4f7f\u7528\u8005\u5fc5\u9808\u5148\u5efa\u7acb\u5b8c\u7562<br \/>\n* \u4f7f\u7528\uff1a\u76f4\u63a5\u57f7\u884c homechown.sh\uff0c\u82e5\u6c92\u4efb\u4f55\u8a0a\u606f\uff0c\u4ee3\u8868\u6210\u529f\u57f7\u884c<br \/>\no root@dns:~\/yhtools# .\/homechown.sh<\/p>\n<p>maccount.sh<\/p>\n<p>\u5de5\u5177\uff1amaccount.sh \u662f\u4ee5 BASH \u5beb\u6210\u7684\u5927\u91cf\u5efa\u5e33\u865f\u5de5\u5177\uff0c\u652f\u63f4 samba \u540c\u6b65\u53ca MySQL \u540c\u540d\u8cc7\u6599\u5eab\u5efa\u7acb\u3002\u7a0b\u5f0f\u8207\u4f7f\u7528\u65b9\u5f0f\uff0c\u8acb\u5207\u63db\u81f3 yhtools\/maccount \u5e95\u4e0b\uff0c\u8a73\u8b80 yhtools\/maccount\/readme.txt \u88e1\u9762\u7684\u8aaa\u660e\u3002<\/p>\n<p>* \u7a0b\u5f0f\uff1a yhtools\/maccount\/maccount.sh<br \/>\n* \u8aaa\u660e\u6587\u4ef6\uff1a yhtools\/maccount\/readme.txt \uff1b\u8acb\u52d9\u5fc5\u5148\u8b80\u672c\u8aaa\u660e\u518d\u4f7f\u7528<\/p>\n<p>pubfolder.sh<\/p>\n<p>pubfolder.sh \u662f bash \u5beb\u6210\u7684\u5171\u7528\u8cc7\u6599\u593e\u8a2d\u5b9a\u5de5\u5177\uff0c\u5b83\u70ba\u5354\u52a9\u4f7f\u7528\u8005\u5efa\u7acb ftp \u5171\u7528\u8cc7\u6599\u593e\u5c08\u7528\u7684\u5c0f\u7a0b\u5f0f\u7531\u65bc vsftpd \u57fa\u65bc\u5b89\u5168\u6027\uff0c\u6703\u8a2d\u5b9a\u4f7f\u7528\u8005\u767b\u5165\u5f8c\u4e0d\u5f97\u5207\u63db\u81f3\u5176\u4ed6\u8cc7\u6599\u593e(chroot_local_user=YES) \uff0c\u56e0\u6b64\uff0c\u6bcf\u500b\u4f7f\u7528\u8005\u90fd\u53ea\u80fd\u767b\u5165\u81ea\u5df1\u7684\u8cc7\u6599\u593e\uff0c\u6b64\u6642\uff0c\u82e5\u8981\u5efa\u7acb\u8d77\u7684\u4e00\u500b\u5171\u7528\u8cc7\u6599\u593e\u4f9b\u6240\u6709\u4f7f\u7528\u8005\u7686\u53ef\u8b80\u5beb\uff0c\u90a3\u9ebc\u5c31\u53ef\u4ee5\u63a1\u7528\u672c\u65b9\u6848\u3002<br \/>\n\u8a3b\uff1a\u672c\u65b9\u6848\uff0c\u6703\u628a\u6240\u8f38\u5165\u7684\u300c\u5171\u7528\u8cc7\u6599\u593e\u300d\u5efa\u5728 \/home\/ftp \u5e95\u4e0b<\/p>\n<p>* \u7a0b\u5f0f\uff1a yhtools\/pubfolder.sh<br \/>\n* \u53c3\u8003\u6587\u4ef6\uff1ahttp:\/\/myip.tw\/itsmw\/index.php\/Ob2d_Vsftp<br \/>\n* \u4f7f\u7528\u65b9\u6cd5\uff1a<br \/>\no \u5171\u7528\u6642\uff1apufolder.sh -m \u5171\u7528\u8cc7\u6599\u593e\u540d\u7a31<br \/>\no \u89e3\u9664\u5171\u7528\uff1a pubfolder.sh -u \u5171\u7528\u8cc7\u6599\u593e\u540d\u7a31<br \/>\no \u4e0b\u6b21\u958b\u6a5f\u4e5f\u80fd\u81ea\u52d5\u639b\u8f09\u6642\uff0c\u8acb\u5728 rc.local \u7684\u5e95\u4e0b, exit 0 \u4e4b\u4e0a\uff0c\u52a0\u4e0a \u300cpubfolder.sh -m \u5171\u7528\u8cc7\u6599\u593e\u540d\u7a31\u300d<\/p>\n<p>rsync_s.pyw<\/p>\n<p>* \u529f\u80fd\uff1a\u5efa\u7acb rsync server \u5feb\u901f\u7522\u751f\u5668<br \/>\n* \u53c3\u8003\u6587\u4ef6\uff1a http:\/\/myip.tw\/itsmw\/index.php\/RSync<br \/>\n* \u7a0b\u5f0f\uff1a yhtools\/rsync\/rsync_s.pyw<br \/>\n* \u8aaa\u660e\uff1a<br \/>\no \u8acb\u5148\u624b\u52d5\u4fee\u6539 \/etc\/default\/rsync \u88e1\u9762\u7684 ENABLE \u70ba true<br \/>\no \u518d\u57f7\u884c\u672c\u5de5\u5177<br \/>\no \u5b83\u5c07\u6703\u7522\u751f \/etc\/rsyncd.conf \u53ca \/etc\/rsyncd.secrets \u8a2d\u5b9a\u6a94<br \/>\no \u57f7\u884c\u5b8c\u672c\u5de5\u5177\uff0c\u4ecd\u5f97\u624b\u52d5\u555f\u52d5 service rsync start<\/p>\n<p>rsync_c.pyw<\/p>\n<p>* \u529f\u80fd\uff1a \u5efa\u7acb rsync client \u5feb\u901f\u7522\u751f\u5668<br \/>\n* \u53c3\u8003\u6587\u4ef6\uff1a http:\/\/myip.tw\/itsmw\/index.php\/RSync<br \/>\n* \u7a0b\u5f0f\uff1a yhtools\/rsync\/rysnc_c.pyw<br \/>\n* \u8aaa\u660e\uff1a<br \/>\no \u5b83\u6703\u7522\u751f \/root\/rsncbk.sh \u53ca \/root\/rsyncd.secrets \u8a2d\u5b9a\u6a94<br \/>\no \u5b83\u6703\u70ba root \u52a0\u5b9a\u6642\u6392\u7a0b\uff0c\u8acb\u4ee5 root \u8eab\u4efd crontab -e \u4fee\u6539\u6210\u81ea\u5df2\u504f\u597d\u7684\u5099\u4efd\u6642\u9593<\/p>\n<p><span style=\"color: #808080; font-size: small;\">\u672c\u6587\u5f15\u7528\u4f86\u81f3\uff1ahttp:\/\/myip.tw\/itsmw\/index.php\/YHTools<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u89e3\u6c7a\u5b89\u88dd\u5b8c Linux \u5f8c\u4fee\u6539\u5404\u4f3a\u670d\u5668\u8a2d\u5b9a\u6a94\u56f0\u64fe\u7684\u597d\u5de5\u5177\uff1aYHTools YHTools\u5de5\u5177\u96c6\u662f\u70ba\u89e3\u6c7a\u5b89\u88dd\u5b8c  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":527,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[20],"class_list":["post-31","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-linux"],"_links":{"self":[{"href":"https:\/\/por.tw\/linux\/wp-json\/wp\/v2\/posts\/31"}],"collection":[{"href":"https:\/\/por.tw\/linux\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/por.tw\/linux\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/por.tw\/linux\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/por.tw\/linux\/wp-json\/wp\/v2\/comments?post=31"}],"version-history":[{"count":0,"href":"https:\/\/por.tw\/linux\/wp-json\/wp\/v2\/posts\/31\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/por.tw\/linux\/wp-json\/wp\/v2\/media\/527"}],"wp:attachment":[{"href":"https:\/\/por.tw\/linux\/wp-json\/wp\/v2\/media?parent=31"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/por.tw\/linux\/wp-json\/wp\/v2\/categories?post=31"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/por.tw\/linux\/wp-json\/wp\/v2\/tags?post=31"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}