{"id":3055,"date":"2009-11-11T06:34:59","date_gmt":"2009-11-11T06:34:59","guid":{"rendered":"http:\/\/www.happyfam.or.kr\/ysoh\/ubuntu-linux%ec%97%90%ec%84%9crsync-daemon-%ec%84%a4%ec%a0%95%ed%95%98%ea%b8%b0\/"},"modified":"2015-02-10T21:12:13","modified_gmt":"2015-02-10T12:12:13","slug":"ubuntu-linux%ec%97%90%ec%84%9crsync-daemon-%ec%84%a4%ec%a0%95%ed%95%98%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/www.happyfam.or.kr\/ysoh\/ubuntu-linux%ec%97%90%ec%84%9crsync-daemon-%ec%84%a4%ec%a0%95%ed%95%98%ea%b8%b0\/","title":{"rendered":"Ubuntu Linux\uc5d0\uc11c rsync daemon \uc124\uc815\ud558\uae30"},"content":{"rendered":"<p>rsync\ub294 \ub450 \ucef4\ud4e8\ud130 \uc0ac\uc774\uc5d0 \ubbf8\ub7ec\ub9c1\uacfc \uac19\uc774 \ud2b9\uc815 \ub514\ub809\ud130\ub9ac\ub97c \ub3d9\uae30\ud654 \ud558\uae30\uc704\ud574 \ub110\ub9ac \uc0ac\uc6a9\ub418\ub294 \ud504\ub85c\uadf8\ub7a8\uc774\ub2e4. \uc5ec\uae30\uc11c\ub294 Ubuntu Linux\uc5d0\uc11c xinetd\ub97c \uc774\uc6a9\ud558\uc5ec rsync daemon\uc744 \uc124\uc815\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \ub2e4\ub8ec\ub2e4. \ubb3c\ub860 \uc2dc\uc2a4\ud15c\uc5d0 xinetd\uac00 \uc124\uce58\ub3fc \uc788\uc5b4\uc57c \ud55c\ub2e4.<\/p>\n<p>1. xinetd\ub97c \uc774\uc6a9 rsync daemon\uc744 \uc2e4\ud589\ud558\uae30 \uc704\ud574\uc11c \/etc\/default\/rsync \ud30c\uc77c\uc758 RSYNC_ENABLE \uac12\uc744 \uc544\ub798\uc640 \uac19\uc774 \uc124\uc815\ud55c\ub2e4.<\/p>\n<div class=\"txc-textbox\">\nRSYNC_ENABLE=inetd<\/div>\n<p>2. \ud30c\uc77c \/etc\/xinetd.d\/rsync\ub97c \uc544\ub798\uc640 \uac19\uc740 \ub0b4\uc6a9\uc73c\ub85c \uc0dd\uc131 \uc800\uc7a5\ud55c\ub2e4.<\/p>\n<div class=\"txc-textbox\">\n$ sudo vi \/etc\/xinetd.d\/rsync<\/p>\n<p>service rsync<br \/>\n{<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; disable&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = no<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; socket_type&nbsp;&nbsp;&nbsp;&nbsp; = stream<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; wait&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = no<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; user&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = root<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; server&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = \/usr\/bin\/rsync<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; server_args&nbsp;&nbsp;&nbsp;&nbsp; = &#8211;daemon<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; log_on_failure&nbsp; += USERID<br \/>\n}\n<\/div>\n<p>\n3. rsync daemon \uc124\uc815 \ud30c\uc77c Create the file \/etc\/rsyncd.conf \ub97c \uc544\ub798\uc640 \uac19\uc740 \ub0b4\uc6a9\uc73c\ub85c \uc0dd\uc131 \uc800\uc7a5\ud55c\ub2e4.<\/p>\n<div class=\"txc-textbox\">\n$ sudo vi \/etc\/rsyncd.conf<\/p>\n<p>max connections = 2<br \/>\nlog file = \/var\/log\/rsync.log<br \/>\ntimeout = 300<\/p>\n<p>[share]<br \/>\ncomment = Public Share<br \/>\npath = \/home\/share<br \/>\nread only = no<br \/>\nlist = yes<br \/>\nuid = nobody<br \/>\ngid = nogroup<br \/>\nauth users = user<br \/>\nsecrets file = \/etc\/rsyncd.secrets\n<\/div>\n<p>\n4. rsync daemon \uc811\uc18d\uc2dc \ud544\uc694\ud55c \uc0ac\uc6a9\uc790 \uc544\uc774\ub514\uc640 \ud328\uc2a4\uc6cc\ub4dc \ubaa9\ub85d \uc704\ud55c \ud30c\uc77c \/etc\/rsyncd.secrets \ub97c \uc544\ub798\uc640 \uac19\uc740 \ud615\uc2dd\uc73c\ub85c \uc0dd\uc131 \uc800\uc7a5\ud55c\ub2e4. \uc774\ub54c \ud30c\uc77c\uba85\uc740 rsyncd.conf \ud30c\uc77c\uc758 secrets file \ud56d\ubaa9\uc5d0 \uc9c0\uc815\ub41c \uac83\uacfc \uc77c\uce58 \uc2dc\ud0a8\ub2e4.<\/p>\n<div class=\"txc-textbox\">\n$ sudo vi \/etc\/rsyncd.secrets<\/p>\n<p>userid:password<\/p><\/div>\n<p>5. \ubcf4\uc548\uc744 \uc704\ud574 \ud30c\uc77c rsyncd.secrets\uc758 \ud37c\ubbf8\uc158\uc744 600\uc73c\ub85c \uc124\uc815\ud55c\ub2e4.<\/p>\n<div class=\"txc-textbox\">\n$ sudo chmod 600 \/etc\/rsyncd.secrets\n<\/div>\n<p>\n6. \uc544\ub798 \uba85\ub839\uc73c\ub85c xinetd\ub97c \uc7ac\uac00\ub3d9 \uc2dc\ucf1c rsync daemon\uc744 \uc2e4\ud589\ud55c\ub2e4.<\/p>\n<div class=\"txc-textbox\">\n$ sudo \/etc\/init.d\/xinetd restart<\/div>\n<p>7. \uc124\uc815\uc774 \ub05d\ub0ac\uc73c\uba74 \uc544\ub798 \uba85\ub839\uc73c\ub85c rsync daemon\uc774 \uc62c\ubc14\ub974\uac8c \ub3d9\uc791\ud558\ub294\uc9c0\ub97c \ud655\uc778\ud55c\ub2e4.<\/p>\n<div class=\"txc-textbox\">\n$ telnet localhost 873<br \/>\nTrying 127.0.0.1&#8230;<br \/>\nConnected to localhost.<br \/>\nEscape character is &#8216;^]&#8217;.<br \/>\n@RSYNCD: 30.0<\/p>\n<p>@ERROR: protocol startup error<br \/>\nConnection closed by foreign host.<br \/>\n$<\/div>\n","protected":false},"excerpt":{"rendered":"<p>rsync\ub294 \ub450 \ucef4\ud4e8\ud130 \uc0ac\uc774\uc5d0 \ubbf8\ub7ec\ub9c1\uacfc \uac19\uc774 \ud2b9\uc815 \ub514\ub809\ud130\ub9ac\ub97c \ub3d9\uae30\ud654 \ud558\uae30\uc704\ud574 \ub110\ub9ac \uc0ac\uc6a9\ub418\ub294 \ud504\ub85c\uadf8\ub7a8\uc774\ub2e4. \uc5ec\uae30\uc11c\ub294 Ubuntu Linux\uc5d0\uc11c xinetd\ub97c \uc774\uc6a9\ud558\uc5ec rsync daemon\uc744 \uc124\uc815\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \ub2e4\ub8ec\ub2e4. \ubb3c\ub860 \uc2dc\uc2a4\ud15c\uc5d0 xinetd\uac00 \uc124\uce58\ub3fc \uc788\uc5b4\uc57c \ud55c\ub2e4. 1. xinetd\ub97c \uc774\uc6a9 rsync daemon\uc744 \uc2e4\ud589\ud558\uae30 \uc704\ud574\uc11c \/etc\/default\/rsync \ud30c\uc77c\uc758 RSYNC_ENABLE \uac12\uc744 \uc544\ub798\uc640 \uac19\uc774 \uc124\uc815\ud55c\ub2e4. RSYNC_ENABLE=inetd 2. \ud30c\uc77c \/etc\/xinetd.d\/rsync\ub97c \uc544\ub798\uc640 \uac19\uc740 \ub0b4\uc6a9\uc73c\ub85c \uc0dd\uc131 \uc800\uc7a5\ud55c\ub2e4. $ sudo\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.happyfam.or.kr\/ysoh\/ubuntu-linux%ec%97%90%ec%84%9crsync-daemon-%ec%84%a4%ec%a0%95%ed%95%98%ea%b8%b0\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[254],"tags":[41,51,58],"class_list":["post-3055","post","type-post","status-publish","format-standard","hentry","category-linux","tag-rsync","tag-ubuntu","tag-xinetd"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p776QY-Nh","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.happyfam.or.kr\/ysoh\/wp-json\/wp\/v2\/posts\/3055","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.happyfam.or.kr\/ysoh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.happyfam.or.kr\/ysoh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.happyfam.or.kr\/ysoh\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.happyfam.or.kr\/ysoh\/wp-json\/wp\/v2\/comments?post=3055"}],"version-history":[{"count":0,"href":"https:\/\/www.happyfam.or.kr\/ysoh\/wp-json\/wp\/v2\/posts\/3055\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.happyfam.or.kr\/ysoh\/wp-json\/wp\/v2\/media?parent=3055"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.happyfam.or.kr\/ysoh\/wp-json\/wp\/v2\/categories?post=3055"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.happyfam.or.kr\/ysoh\/wp-json\/wp\/v2\/tags?post=3055"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}