{"id":795,"date":"2014-07-31T01:46:44","date_gmt":"2014-07-30T16:46:44","guid":{"rendered":"http:\/\/darkgray.homelinux.com\/modules\/xpress\/?p=795"},"modified":"2014-07-31T01:46:44","modified_gmt":"2014-07-30T16:46:44","slug":"fedora%e3%81%absamba%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b%e3%80%82","status":"publish","type":"post","link":"https:\/\/darkgray.homelinux.com\/blog\/?p=795","title":{"rendered":"Fedora\u306bsamba\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002"},"content":{"rendered":"<p>\u3000Virtualbox\u306e\u30b2\u30b9\u30c8\uff2f\uff33\u306efedora\u3068\u30db\u30b9\u30c8\uff2f\uff33\u306e\u9593\u3067\u306a\u305c\u304b\u30c9\u30e9\u30c3\u30b0\uff06\u30c9\u30ed\u30c3\u30d7\u304c\u51fa\u6765\u306a\u3044\u3002<br \/>\n<!--more--><\/p>\n<p>\u3000\u8abf\u3079\u3066\u307f\u305f\u3051\u3069\u3088\u304f\u308f\u304b\u3093\u30cd\uff5e\uff5e\u3000\uff08\u6c57<\/p>\n<p>\u3000\u30c9\u30e9\u30c3\u30b0\uff06\u30c9\u30ed\u30c3\u30d7\u304c\u51fa\u6765\u306a\u3044\u306e\u3067\u3042\u308c\u3070\u4ed5\u65b9\u304c\u7121\u3044\u3002\u624b\u8efd\u306b\u30db\u30b9\u30c8\uff2f\uff33\u3068\u30b2\u30b9\u30c8\uff2f\uff33\u306e\u9593\u3067\u30d5\u30a1\u30a4\u30eb\u306e\u3084\u308a\u53d6\u308a\u3092\u3059\u308b\u65b9\u6cd5\u3092\u8003\u3048\u3066\u307f\u308b\u306b\u30fb\u30fb\u3000samba\u304c\u826f\u3055\u3052\u306a\u306e\u3067\u3000samba\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u308b\u3002<\/p>\n<p>\u3000\u57fa\u672c\u7684\u306a\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u7de8\u96c6\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u8ffd\u52a0\u306f\u3000\u4ed6\u6240\u306e\uff28\uff30\u3067\u5e7e\u3064\u3082\u63b2\u8f09\u3055\u308c\u3066\u308b\u306e\u3067\u3053\u3053\u3067\u306f\u7701\u7565\u3002<\/p>\n<p>\u3000\u6700\u8fd1\u306efedora\u3042\u308b\u3044\u306f\u3000CentOS7\u3067\u306f\u3000\u30b5\u30fc\u30d3\u30b9\u306e\u8d77\u52d5\u65b9\u6cd5\u304csystemctl\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3046\u3088\u3046\u306b\u306a\u3063\u305f\u3002\u8d77\u52d5\u65b9\u6cd5\u306f\u3053\u3093\u306a\u611f\u3058\u3002\uff08\u5f53\u7136\u3000root\u306b\u30e6\u30fc\u30b6\u30fc\u30c1\u30a7\u30f3\u30b8\u3059\u308b\u304b\u3000sudo\u30b3\u30de\u30f3\u30c9\u3092\u5408\u308f\u305b\u3066\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002\uff09<br \/>\n[code]<br \/>\n[] systemctl start smb<br \/>\n[] systemctl start nmb<br \/>\n[] systemctl enable smb<br \/>\n[] systemctl enable nmb<br \/>\n[\/code]<\/p>\n<p>\u3000\u3053\u308c\u3060\u3051\u3067\u306f\u4e0a\u624b\u304f\u30db\u30b9\u30c8\uff2f\uff33\u3068\u7e4b\u304c\u3089\u306a\u304b\u3063\u305f\u3002\u3000\u306e\u3067\u8272\u3005\u8a2d\u5b9a\u3092\u898b\u76f4\u3057\u3066\u307f\u308b\u3002\u3000\u307e\u305a\u30db\u30b9\u30c8\u540d\u304clocalhost\u306e\u307e\u307e\u3060\u3063\u305f\u306e\u3067\u30db\u30b9\u30c8\u540d\u3092\u3061\u3083\u3093\u3068\u3064\u3051\u3066\u3084\u308b\u3002<br \/>\n[code]<br \/>\n[] vi \/etc\/hostname   # hostneme\u3092\u958b\u3044\u3066&quot;localhost.localdomein&quot;\u3092\u6d88\u3057\u3066\u3000\u30db\u30b9\u30c8\u540d\u3092\u8a18\u8ff0\u3059\u308b\u3002\u3000<br \/>\n[\/code]<\/p>\n<p>\u3000\u30d5\u30a1\u30a4\u30e4\u30fc\u30a6\u30a9\u30fc\u30eb\u306e\u8a2d\u5b9a\u3092\u898b\u76f4\u3059\u3002\u3000\u4eca\u56de\u306fX\u7a93\u74b0\u5883\u3060\u3063\u305f\u306e\u3067\u3000[\u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3]-[\u8af8\u30c4\u30fc\u30eb]-[\u30d5\u30a1\u30a4\u30e4\u30fc\u30a6\u30a9\u30fc\u30eb]\u3092\u958b\u304f\u3002\u30d5\u30a1\u30a4\u30e4\u30fc\u30a6\u30a9\u30fc\u30eb\u306e\u8a2d\u5b9a\u306f\u521d\u3081\u3066\u89e6\u308b\u3093\u3060\u304c\u30fb\u30fb\u3000\u3053\u3046\u3044\u3046\u6642\u30a6\u30a4\u30f3\u30c9\u30fc\u74b0\u5883\u3060\u3068\u898b\u3084\u3059\u304f\u3066\u5206\u304b\u308a\u3084\u3059\u3044\u3088\u306d\u3002\u3000[\u30be\u30fc\u30f3]\u306epublic\u3092\u30a2\u30af\u30c6\u30a3\u30d6\u306b\u3057\u3066\u3000[\u30b5\u30fc\u30d3\u30b9]\u306e\u3000samba\u3068samba-client\u306b\u30c1\u30a7\u30c3\u30af\u3092\u5165\u308c\u3066\u3000\u30d1\u30b9\u30ef\u30fc\u30c9\u8a8d\u8a3c\u3059\u308c\u3070OK\u3002\u3000\u591a\u5206samba\u3060\u3051\u3067\u826f\u3044\u3068\u601d\u3046\u306e\u3060\u3051\u3069\u3000\u5ff5\u306e\u305f\u3081\u95a2\u4fc2\u306e\u6709\u308a\u305d\u3046\u306a\u7269\u3059\u3079\u3066\u306b\u30c1\u30a7\u30c3\u30af\u3092\u5165\u308c\u305f\u3002<\/p>\n<p>\u3000\u3044\u3064\u3082\u306e\u304a\u7d04\u675f\u3000SELinux\u306e\u8a2d\u5b9a\u3082\u5fc5\u8981\u306a\u3088\u3046\u3060\u3002<br \/>\n[code]<br \/>\n[] getsebool -a | grep samba   # samba\u306b\u95a2\u4fc2\u306e\u3042\u308b\u8a2d\u5b9a\u306e\u4e00\u89a7\u304c\u8868\u793a\u3055\u308c\u308b\u3002<br \/>\n[] setsebool -p samba_enable_home_dirs on<br \/>\n[\/code]<br \/>\n\u3000\u3053\u308c\u3067\u3000samba\u3067\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u304c\u30fb\u30fb\u30fb\u3000\u4f8b\u306b\u3088\u3063\u3066\u66ab\u304f\u69d8\u5b50\u3092\u898b\u3066\u3001\u8272\u3005\u30c6\u30b9\u30c8\u3057\u3066\u307f\u306a\u3044\u3068\u3000\u3061\u3083\u3093\u3068\u8a2d\u5b9a\u3067\u304d\u3066\u308b\u304b\u3069\u3046\u304b\u306f\u5206\u304b\u3089\u306a\u3044\u3002\u3000\uff08\u6c57<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3000Virtualbox\u306e\u30b2\u30b9\u30c8\uff2f\uff33\u306efedora\u3068\u30db\u30b9\u30c8\uff2f\uff33\u306e\u9593\u3067\u306a\u305c\u304b\u30c9\u30e9\u30c3\u30b0\uff06\u30c9\u30ed\u30c3\u30d7\u304c\u51fa\u6765\u306a\u3044\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[7,25],"tags":[],"class_list":["post-795","post","type-post","status-publish","format-standard","hentry","category-fedora","category-windows7"],"_links":{"self":[{"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/795","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=795"}],"version-history":[{"count":0,"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/795\/revisions"}],"wp:attachment":[{"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=795"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=795"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=795"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}