{"id":2071,"date":"2018-05-26T14:34:10","date_gmt":"2018-05-26T05:34:10","guid":{"rendered":"https:\/\/pandanote.info\/?p=2071"},"modified":"2021-02-11T21:51:54","modified_gmt":"2021-02-11T12:51:54","slug":"fedora-27%e3%81%a7%e4%b9%85%e3%80%85%e3%81%absamba4%e3%82%92%e5%8b%95%e3%81%8b%e3%81%97%e3%81%a6%e3%81%bf%e3%81%9f%e3%80%82","status":"publish","type":"post","link":"https:\/\/pandanote.info\/?p=2071","title":{"rendered":"Fedora 27\u3067\u4e45\u3005\u306bSamba4\u3092\u52d5\u304b\u3057\u3066\u307f\u305f\u3002"},"content":{"rendered":"<h2>\u306f\u3058\u3081\u306b<\/h2>\n<p>\u4e45\u3005\u306b\u81ea\u5b85\u306e<a href=\"https:\/\/amzn.to\/2Mmnr3W\">NUC<\/a>\u3067\u3001Samba\u30b5\u30fc\u30d0\u3092\u52d5\u304b\u3057\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002Samba4\u306b\u6311\u6226\u3067\u3059\u3002<\/p>\n<p>Samba\u30b5\u30fc\u30d0\u3068\u3057\u3066\u4f7f\u7528\u3059\u308bNUC\u306f\u3053\u3061\u3089\u3067\u3059\u2193<\/p>\n<p><iframe style=\"width:120px;height:240px;\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\" src=\"https:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?ref=qf_sp_asin_til&#038;t=karen99-22&#038;m=amazon&#038;o=9&#038;p=8&#038;l=as1&#038;IS2=1&#038;detail=1&#038;asins=B01N2UMKZ5&#038;linkId=bd50a021bb1b86e1ec9f1ca71f86994c&#038;bc1=000000&amp;lt1=_top&#038;fc1=333333&#038;lc1=0066c0&#038;bg1=ffffff&#038;f=ifr\"><br \/>\n    <\/iframe><\/p>\n<p>Linux\u30d9\u30fc\u30b9\u306e\u30d5\u30a1\u30a4\u30eb\u5171\u6709\u7528\u306e\u30b5\u30fc\u30d0\u3068\u3057\u3066\u306fNFS\u30b5\u30fc\u30d0\u3084WebDAV\u30b5\u30fc\u30d0\u3068\u304b\u3092\u6240\u69cb\u308f\u305a\u7acb\u3061\u4e0a\u3052\u3066\u4f7f\u3063\u3066\u3044\u308b\u4e00\u65b9\u3067\u3001Samba\u306f\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u9032\u3080\u306b\u9023\u308c\u3066\u8a2d\u5b9a\u306e\u65b9\u6cd5\u304c\u8907\u96d1\u3067\u3001\u304b\u3064\u3068\u3063\u3064\u304d\u306b\u304f\u3044\u3082\u306e\u306b\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u305f\u3081\u306b\u4f7f\u3046\u306e\u3092\u3084\u3081\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u306e\u5f8c\u3001\u305a\u3044\u3076\u3093\u3068\u9577\u3044\u6708\u65e5\u304c\u6d41\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001\u3053\u306e\u305f\u3073\u3001\u5ac1\u69d8\u306ePC\u3092\u65b0\u8abf\u3059\u308b\u306b\u3042\u305f\u308a\u3001\u53e4\u3044PC\u306b\u3042\u3063\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u5ac1\u69d8\u3067\u3082\u7c21\u5358\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u65b9\u6cd5\u3067\u4fdd\u7ba1\u3067\u304d\u308b\u5834\u6240\u3092\u4f5c\u308b\u3088\u3046\u6c42\u3081\u3089\u308c\u305f\u306e\u3067\u3001Samba\u3092\u4e45\u3005\u306b\u4f7f\u3063\u3066\u307f\u308b\u3057\u304b\u306a\u3044\u3068\u3044\u3046\u7d50\u8ad6\u306b\u9054\u3057\u305f\u308f\u3051\u3067\u3059\u3002<\/p>\n<p>\u3068\u3044\u3046\u308f\u3051\u3067\u3001\u3053\u306e\u8a18\u4e8b\u3067\u306fFedora 27\u4e0a\u3067\u306eSamba\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u53ca\u3073\u8a2d\u5b9a\u306e\u65b9\u6cd5\u306b\u3064\u3044\u3066\u66f8\u304d\u307e\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001SELinux\u3092\u6709\u52b9\u306b\u3057\u3066\u3044\u308b\u5834\u5408\u306b\u306f\u3001\u8907\u6570\u306e\u30e6\u30fc\u30b6\u3067\u30d5\u30a1\u30a4\u30eb\u5171\u6709\u3092\u3059\u308b\u305f\u3081\u306b\u8ffd\u52a0\u306e\u8a2d\u5b9a\u304c\u5fc5\u8981\u306a\u3053\u3068\u304c\u3053\u306e\u8a18\u4e8b\u3092\u6700\u521d\u306b\u66f8\u3044\u305f\u5f8c\u3067\u308f\u304b\u308a\u307e\u3057\u305f\u306e\u3067\u3001\u305d\u308c\u306b\u3064\u3044\u3066\u3082\u66f8\u304d\u307e\u3059\u3002<\/p>\n<p>Amazon\u3067\u63a2\u3059\u3068\u3001\u3053\u3093\u306a\u611f\u3058\u306e\u66f8\u7c4d\u3082\u58f2\u3063\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u2193<\/p>\n<p><iframe style=\"width:120px;height:240px;\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\" src=\"https:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?ref=qf_sp_asin_til&#038;t=karen99-22&#038;m=amazon&#038;o=9&#038;p=8&#038;l=as1&#038;IS2=1&#038;detail=1&#038;asins=4822234924&#038;linkId=1f0f319a69791ba1c467ff6f12c0e4c4&#038;bc1=000000&amp;lt1=_top&#038;fc1=333333&#038;lc1=0066c0&#038;bg1=ffffff&#038;f=ifr\"><br \/>\n    <\/iframe><\/p>\n<h2>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u53ca\u3073\u5927\u307e\u304b\u306a\u8a2d\u5b9a\u3002<\/h2>\n<h3>dnf\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<\/h3>\n<p>Samba\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u306froot\u6a29\u9650\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306bdnf\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002devel\u30d1\u30c3\u30b1\u30fc\u30b8\u3068\u304b\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u304b\u3082\u3057\u308c\u306a\u3044\u306e\u306f\u898b\u9003\u3059\u65b9\u5411\u3067\u304a\u9858\u3044\u3044\u305f\u3057\u307e\u3059\u3002<\/p>\n<div class=\"code\">[root@pandanote.info panda]# dnf install samba*<\/div>\n<p>&nbsp;<\/p>\n<h3>\u300c\u30c7\u30d5\u30a9\u30eb\u30c8\u8a2d\u5b9a\u300d\u306esmb.conf\u306e\u79fb\u52d5<\/h3>\n<p>\u524d\u9805\u306e\u65b9\u6cd5\u3067Fedora 27\u306bSamba\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u3001\/etc\/samba\/smb.conf\u3082\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059\u304c\u3001\u3053\u308c\u304c\u3042\u308b\u3068\u6b21\u9805\u306esamba-tool\u306e\u5b9f\u884c\u6642\u306b\u30a8\u30e9\u30fc\u306b\u306a\u3063\u3066\u3057\u307e\u3046\u306e\u3067\u3001root\u6a29\u9650\u3067\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u3001\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u5909\u66f4\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<div class=\"code\">[root@pandanote.info panda]# mv \/etc\/samba\/smb.conf \/etc\/samba\/smb.conf.ORG<\/div>\n<p>&nbsp;<\/p>\n<h3>samba-tool\u3067smb.conf\u3092\u4f5c\u308b\u3002<\/h3>\n<p>root\u6a29\u9650\u3067\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002LDAP\u306f\u4f7f\u308f\u306a\u3044\u65b9\u5411\u3067\u3059\u3002<\/p>\n<div class=\"code\">[root@nuc panda]# samba-tool domain provision  &#45;&#45;interactive<\/div>\n<p>&nbsp;<br \/>\n\u3059\u308b\u3068\u3001\u30ec\u30eb\u30e0\u3001\u30b5\u30fc\u30d0\u30ed\u30fc\u30eb\u53ca\u3073DNS\u306e\u5165\u529b\u3092\u6c42\u3081\u3089\u308c\u308b\u306e\u3067\u3001\u9069\u5207\u306a\u5024\u3092\u5165\u529b\u3057\u307e\u3059\u3002\u306a\u304a\u3001\u4ee5\u4e0b\u306e\u5024\u306f\u5b9f\u969b\u306b\u5165\u529b\u3057\u305f\u5024\u3068\u306f\u7570\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u81ea\u5b85\u306eLAN\u306b\u306fBIND9\u3092\u4f7f\u3063\u305f(\u81ea\u5b85LAN\u7528\u306e)DNS\u30b5\u30fc\u30d0\u304c\u7a3c\u50cd\u3057\u3066\u3044\u307e\u3059\u304c\u3001chroot\u306e\u8a2d\u5b9a\u3092\u5909\u3048\u305f\u304f\u306a\u304b\u3063\u305f\u306e\u3067\u3001SAMBA_INTERNAL\u306aDNS\u3092\u4f7f\u7528\u3057\u3001DNS\u306e\u30d5\u30a9\u30ef\u30fc\u30c7\u30a3\u30f3\u30b0\u3082\u7121\u52b9\u306b\u3057\u3066\u3044\u307e\u3059\u3002\u307e\u305f\u3001\u7ba1\u7406\u8005\u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u8868\u793a\u3057\u3066\u3044\u307e\u305b\u3093\u304c\u3001\u305d\u308c\u306a\u308a\u306e\u5f37\u5ea6\u306e\u3082\u306e\u3092\u6c42\u3081\u3089\u308c\u307e\u3059\u306e\u3067\u3001\u6587\u5b57\u3001\u8a18\u53f7\u53ca\u3073\u6570\u5b57\u3092\u6700\u4f4e1\u6587\u5b57\u305a\u3064\u5165\u308c\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<div class=\"code\">Realm: PANDANOTE.INFO<br \/>\n Domain [PANDANOTE]:<br \/>\n Server Role (dc, member, standalone) [dc]:<br \/>\n DNS backend (SAMBA_INTERNAL, BIND9_FLATFILE, BIND9_DLZ, NONE) [SAMBA_INTERNAL]:<br \/>\n DNS forwarder IP address (write &#8216;none&#8217; to disable forwarding) [192.168.xyz.pqr]: none<br \/>\nAdministrator password:<br \/>\nRetype password:<\/div>\n<p>&nbsp;<br \/>\n\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u5165\u529b\u304c\u7d42\u308f\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u753b\u9762\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u51fa\u529b\u3055\u308c\u3066\u3001\u30b3\u30de\u30f3\u30c9\u306e\u5b9f\u884c\u304c\u7d42\u4e86\u3057\u3001\/etc\/samba\/smb.conf\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n<div class=\"code\">Looking up IPv4 addresses<br \/>\nLooking up IPv6 addresses<br \/>\nSetting up secrets.ldb<br \/>\nSetting up the registry<br \/>\nSetting up the privileges database<br \/>\nSetting up idmap db<br \/>\nSetting up SAM db<br \/>\nSetting up sam.ldb partitions and settings<br \/>\nSetting up sam.ldb rootDSE<br \/>\nPre-loading the Samba 4 and AD schema<br \/>\nAdding DomainDN: DC=pandanote,DC=info<br \/>\nAdding configuration container<br \/>\nSetting up sam.ldb schema<br \/>\nSetting up sam.ldb configuration data<br \/>\nSetting up display specifiers<br \/>\nModifying display specifiers<br \/>\nAdding users container<br \/>\nModifying users container<br \/>\nAdding computers container<br \/>\nModifying computers container<br \/>\nSetting up sam.ldb data<br \/>\nSetting up well known security principals<br \/>\nSetting up sam.ldb users and groups<br \/>\nSetting up self join<br \/>\nAdding DNS accounts<br \/>\nCreating CN=MicrosoftDNS,CN=System,DC=pandanote,DC=info<br \/>\nCreating DomainDnsZones and ForestDnsZones partitions<br \/>\nPopulating DomainDnsZones and ForestDnsZones partitions<br \/>\nSetting up sam.ldb rootDSE marking as synchronized<br \/>\nFixing provision GUIDs<br \/>\nThe Kerberos KDC configuration for Samba AD is located at \/var\/lib\/samba\/private\/kdc.conf<br \/>\nA Kerberos configuration suitable for Samba AD has been generated at \/var\/lib\/samba\/private\/krb5.conf<br \/>\nMerge the contents of this file with your system krb5.conf or replace it with this one. Do not create a symlink!<br \/>\nSetting up fake yp server settings<br \/>\nOnce the above files are installed, your Samba AD server will be ready to use<br \/>\nServer Role:           active directory domain controller<br \/>\nHostname:              nuc<br \/>\nNetBIOS Domain:        PANDANOTE<br \/>\nDNS Domain:            pandanote.info<br \/>\nDOMAIN SID:            S-1-5-21-3386981907-1467706757-abcdefghij\n<\/div>\n<p>&nbsp;<\/p>\n<h3>krb5.conf\u3092\u66f8\u304d\u63db\u3048\u308b\u3002<\/h3>\n<p>\u4e0a\u8a18\u306e\u753b\u9762\u51fa\u529b\u306e\u6307\u793a\u901a\u308a\u306b\/etc\/krb5.conf\u306elibdefaults\u30bb\u30af\u30b7\u30e7\u30f3\u306e\u5185\u5bb9\u3092\/var\/lib\/samba\/private\/krb5.conf\u306e\u5185\u5bb9\u3067\u4e0a\u66f8\u304d\u3057\u307e\u3059\u3002<\/p>\n<h3>firewall\u306e\u8a2d\u5b9a\u3092\u5909\u66f4\u3059\u308b\u3002<\/h3>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3001samba\u304c\u4f7f\u7528\u3059\u308b\u30dd\u30fc\u30c8\u3092\u4ed6\u306ePC\u304c\u4f7f\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<div class=\"code\">[root@nuc panda]# firewall-cmd &#45;&#45;permanent &#45;&#45;zone=FedoraServer &#45;&#45;add-service=samba<br \/>\n[root@nuc panda]# firewall-cmd &#45;&#45;zone=FedoraServer &#45;&#45;add-service=samba<\/div>\n<p>&nbsp;<\/p>\n<h3>samba\u3092\u8d77\u52d5\u3059\u308b\u3002<\/h3>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092root\u6a29\u9650\u3067\u5b9f\u884c\u3057\u3001samba\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<div class=\"code\"># systemctl start samba<\/div>\n<p>&nbsp;<br \/>\nps\u30b3\u30de\u30f3\u30c9\u7b49\u3092\u99c6\u4f7f\u3057\u3066\u8d77\u52d5\u3057\u305f\u304b\u3069\u3046\u304b\u3001\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<div class=\"code\">[root@nuc panda]# ps aux | grep smbd | head -1<br \/>\nroot      2209  2.4  0.2 539108 45560 ?        Ss   12:05   0:00 \/usr\/sbin\/smbd &#45;&#45;foreground &#45;&#45;no-process-group\n<\/div>\n<p>&nbsp;<\/p>\n<p>\u8d77\u52d5\u3057\u3066\u307e\u3059\u306d\u3002<\/p>\n<h3>smbclient\u3067\u52d5\u4f5c\u78ba\u8a8d\u3002<\/h3>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3001\u30ed\u30b0\u30aa\u30f3\u3067\u304d\u308b\u304b\u3069\u3046\u304b\u78ba\u8a8d\u3057\u307e\u3059\u3002\u306a\u304a\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u5b9f\u969b\u306b\u8a2d\u5b9a\u3057\u305f\u3082\u306e\u3068\u306f\u7570\u306a\u308a\u307e\u3059\u3002<\/p>\n<div class=\"code\">[root@nuc panda]# smbclient \/\/localhost\/netlogon -UAdministrator%&#8217;pandanote.info&#8217; -c &#8216;ls&#8217;<br \/>\n  .                                   D        0  Thu May 24 06:44:44 2018<br \/>\n  ..                                  D        0  Thu May 24 06:48:30 2018<\/p>\n<p>                15718400 blocks of size 1024. 11498936 blocks available<\/p><\/div>\n<p>&nbsp;<br \/>\n\u30ed\u30b0\u30aa\u30f3\u3067\u304d\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<h2>\u30d5\u30a1\u30a4\u30eb\u5171\u6709\u306e\u305f\u3081\u306e\u8a73\u7d30\u306a\u8a2d\u5b9a\u3002<\/h2>\n<p>Samba\u306e\u30b5\u30fc\u30d0\u306e\u8a2d\u5b9a\u304c\u3067\u304d\u305f\u3089\u3001\u6b21\u306f\u30d5\u30a1\u30a4\u30eb\u5171\u6709\u306e\u305f\u3081\u306e\u8a73\u7d30\u306a\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<h3>smb.conf\u3078\u306eshare\u30bb\u30af\u30b7\u30e7\u30f3\u306e\u8ffd\u52a0<\/h3>\n<p>\/etc\/samba\/smb.conf\u306b\u4ee5\u4e0b\u306e\u8a2d\u5b9a\u3092\u8ffd\u52a0\u3057\u3001\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/p>\n<div class=\"code\">[share]<br \/>\npath = \/export\/share\/<br \/>\nbrowsable =yes<br \/>\nwritable = yes<br \/>\nguest ok = no<br \/>\nread only = no<br \/>\ncreate mode = 0777<br \/>\ndirectory mode = 0777<\/div>\n<p>&nbsp;<\/p>\n<h3>SELinux\u306e\u8a2d\u5b9a<\/h3>\n<p>SELinux\u3092\u6709\u52b9\u306b\u3057\u3066\u3044\u308b\u5834\u5408\u306b\u306f\u3001\u4e0a\u8a18\u306epath\u3067\u8a2d\u5b9a\u3057\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u4e0b\u306b\u4f5c\u6210\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u3084\u30d5\u30a9\u30eb\u30c0\u306b samba_share_t \u30bf\u30a4\u30d7\u306e\u30e9\u30d9\u30eb\u3092\u4ed8\u4e0e\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u305f\u3081\u3001root\u6a29\u9650\u3067\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001semanage\u30b3\u30de\u30f3\u30c9\u306fFedora 27\u3067\u306fpolicycoreutils-python-utils\u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u542b\u307e\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u30b3\u30de\u30f3\u30c9\u304c\u898b\u3064\u304b\u3089\u306a\u3044\u3068\u8a00\u308f\u308c\u305f\u5834\u5408\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u524d\u306bdnf\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<div class=\"code\"># semanage fcontext -a -t samba_share_t &#8220;\/export\/share(\/.*)?&#8221;<br \/>\n# restorecon -RF \/export\/share<\/div>\n<p>&nbsp;<\/p>\n<p>\u6700\u521d\u306f\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304a\u8336\u3092\u6fc1\u3059\u4e88\u5b9a\u3067\u3057\u305f\u304c\u3001\u3084\u3081\u307e\u3057\u305f\u3002\uff08\uff40\u30fb\u03c9\u30fb\u00b4\uff09<\/p>\n<div class=\"code\"># setsebool -P samba_export_all_rw on<\/div>\n<p>&nbsp;<\/p>\n<h3>Samba\u306e\u518d\u8d77\u52d5<\/h3>\n<p>\u8a2d\u5b9a\u3092\u8ffd\u52a0\u3057\u305f\u3089\u3001Samba\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<div class=\"code\"># systemctl restart samba<\/div>\n<p>&nbsp;<\/p>\n<h3>Samba\u7528\u306e\u30e6\u30fc\u30b6\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u8ffd\u52a0<\/h3>\n<p>Samba\u7528\u306e\u30e6\u30fc\u30b6\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u8ffd\u52a0\u306f\u4ee5\u4e0b\u306e\u624b\u9806\u3067\u884c\u3044\u307e\u3059\u3002<\/p>\n<ol>\n<li>\u5bfe\u5fdc\u3059\u308bUNIX\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u304c\u306a\u3044\u5834\u5408\u306b\u306f\u3001root\u6a29\u9650\u3067\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002\u306a\u304a\u3001\u5bfe\u5fdc\u3059\u308bSamba\u30b5\u30fc\u30d0\u4e0a\u3067\u306eUNIX\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u304c\u3042\u308b\u5834\u5408\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u306f\u5b9f\u884c\u305b\u305a\u306b\u624b\u98062\u306b\u9032\u307f\u307e\u3059\u3002\n<div class=\"code\"># useradd panda<\/div>\n<p>&nbsp;\n<\/li>\n<li>root\u6a29\u9650\u3067\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3001Samba\u7528\u306e\u30e6\u30fc\u30b6\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\n<div class=\"code\">[root@nuc panda]# pdbedit -a -u panda<br \/>\nnew password:<br \/>\nretype new password:<br \/>\nUnix username:        panda<br \/>\nNT username:<br \/>\nAccount Flags:        [U          ]<br \/>\nUser SID:             S-1-5-21-2376112507-1695703218-107372440-1103<br \/>\nPrimary Group SID:    S-1-5-21-2376112507-1695703218-107372440-513<br \/>\nFull Name:<br \/>\nHome Directory:<br \/>\nHomeDir Drive:        (null)<br \/>\nLogon Script:<br \/>\nProfile Path:<br \/>\nDomain:<br \/>\nAccount desc:<br \/>\nWorkstations:<br \/>\nMunged dial:<br \/>\nLogon time:           0<br \/>\nLogoff time:          0<br \/>\nKickoff time:         \u6728, 14  9\u6708 30828 11:48:05 JST<br \/>\nPassword last set:    \u571f, 26  5\u6708 2018 12:25:24 JST<br \/>\nPassword can change:  \u571f, 26  5\u6708 2018 12:25:24 JST<br \/>\nPassword must change: never<br \/>\nLast bad password   : 0<br \/>\nBad password count  : 0<br \/>\nLogon hours         : FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF<\/div>\n<p>&nbsp;\n<\/li>\n<\/ol>\n<h3>Windows10\u306e\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3092\u4f7f\u3063\u3066\u52d5\u4f5c\u78ba\u8a8d\u3002<\/h3>\n<p>Windows10\u304b\u3089Samba\u306e\u30b5\u30fc\u30d0\u306b\u30ed\u30b0\u30aa\u30f3\u3067\u304d\u308b\u304b\u3069\u3046\u304b\u53ca\u3073\u5171\u6709\u30d5\u30a9\u30eb\u30c0\u4e0a\u3067\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3067\u304d\u308b\u304b\u3069\u3046\u304b\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u624b\u9806\u3067\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<ol>\n<li>\u30ed\u30b0\u30aa\u30f3\u3057\u305f\u3044Windows10\u306e\u30af\u30e9\u30a4\u30a2\u30f3\u30c8PC\u306e\u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002<\/li>\n<li>\u5de6\u5074\u306e\u30c4\u30ea\u30fc\u30d3\u30e5\u30fc\u304b\u3089\u300cPC\u300d\u3092\u63a2\u3057\u51fa\u3057\u3066\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/li>\n<li>\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u753b\u9762\u306b\u5207\u308a\u66ff\u308f\u308b\u306e\u3067\u3001\u300c\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u300d(\u4e0b\u56f3\u306e\u8d64\u77e2\u5370)\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/pandanote.info\/?attachment_id=2085\" rel=\"attachment wp-att-2085\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2018\/05\/samba4_carnival_take1.png\" alt=\"\" width=\"924\" height=\"489\" class=\"alignnone size-full wp-image-2085\" srcset=\"https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2018\/05\/samba4_carnival_take1.png 924w, https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2018\/05\/samba4_carnival_take1-300x159.png 300w, https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2018\/05\/samba4_carnival_take1-768x406.png 768w, https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2018\/05\/samba4_carnival_take1-660x349.png 660w\" sizes=\"auto, (max-width: 924px) 100vw, 924px\" \/><\/a><\/li>\n<li>\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u753b\u9762\u306b\u8868\u793a\u304c\u5207\u308a\u66ff\u308f\u308b\u306e\u3067\u3001\u300c\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u5272\u308a\u5f53\u3066\u300d\u3092\u9078\u629e\u3057\u3001\u3055\u3089\u306b\u8868\u793a\u3055\u308c\u305f\u30e1\u30cb\u30e5\u30fc\u30d0\u30fc\u306e\u300c\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u5272\u308a\u5f53\u3066\u300d(\u4e0b\u56f3\u306e\u8d64\u77e2\u5370)\u3092\u9078\u629e\u3057\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/pandanote.info\/?attachment_id=2086\" rel=\"attachment wp-att-2086\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2018\/05\/samba4_carnival_take2.png\" alt=\"\" width=\"922\" height=\"493\" class=\"alignnone size-full wp-image-2086\" srcset=\"https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2018\/05\/samba4_carnival_take2.png 922w, https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2018\/05\/samba4_carnival_take2-300x160.png 300w, https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2018\/05\/samba4_carnival_take2-768x411.png 768w, https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2018\/05\/samba4_carnival_take2-660x353.png 660w\" sizes=\"auto, (max-width: 922px) 100vw, 922px\" \/><\/a><\/li>\n<li>\u300c\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u5272\u308a\u5f53\u3066\u300d\u30a6\u30a3\u30f3\u30c9\u30a6\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u306e\u3067\u3001\u30d5\u30a9\u30eb\u30c0\u30fc\u306e\u30d1\u30b9\u3092\u6307\u5b9a\u3057\u3001\u300c\u5b8c\u4e86\u300d\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u307e\u3059\u3002<\/li>\n<li>\u300c\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u8cc7\u683c\u60c5\u5831\u306e\u5165\u529b\u300d\u30a6\u30a3\u30f3\u30c9\u30a6\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u306e\u3067\u3001\u524d\u7bc0\u3067\u4f5c\u6210\u3057\u305f\u30e6\u30fc\u30b6\u540d\u53ca\u3073\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3057\u3001\u300cOK\u300d\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u307e\u3059\u3002<\/li>\n<li>\u30e6\u30fc\u30b6\u540d\u53ca\u3073\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u7d44\u307f\u5408\u308f\u305b\u304c\u6b63\u3057\u3051\u308c\u3070\u3001\u30ed\u30b0\u30aa\u30f3\u306b\u6210\u529f\u3057\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u3059\u3067\u306b\u3042\u308b\u30d5\u30a9\u30eb\u30c0\u306f\u79fb\u8ee2\u524d\u306e\u30b5\u30fc\u30d0\u3067\u4e00\u6642\u7684\u306bSamba4\u306e\u8a2d\u5b9a\u3092\u884c\u3063\u305f\u3068\u304d\u306b\u4f5c\u3063\u305f\u3082\u306e\u3067\u3059\u306e\u3067\u3001\u6c17\u306b\u3057\u306a\u3044\u65b9\u5411\u3067\u304a\u9858\u3044\u3044\u305f\u3057\u307e\u3059\u3002?<br \/>\n<a href=\"https:\/\/pandanote.info\/?attachment_id=2087\" rel=\"attachment wp-att-2087\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2018\/05\/samba4_carnival_take3.png\" alt=\"\" width=\"921\" height=\"492\" class=\"alignnone size-full wp-image-2087\" srcset=\"https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2018\/05\/samba4_carnival_take3.png 921w, https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2018\/05\/samba4_carnival_take3-300x160.png 300w, https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2018\/05\/samba4_carnival_take3-768x410.png 768w, https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2018\/05\/samba4_carnival_take3-660x353.png 660w\" sizes=\"auto, (max-width: 921px) 100vw, 921px\" \/><\/a><\/li>\n<li>\u3053\u306e\u5171\u6709\u30d5\u30a9\u30eb\u30c0\u306b&#8221;panda\u5927\u5b66\u7fd2\u5e33.txt&#8221;\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u540d\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3001Samba\u30b5\u30fc\u30d0\u5074\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3057\u3066\u307f\u307e\u3059\u3002\n<div class=\"code\">panda@nuc ~]$ ls -l \/export\/share\/<br \/>\n\u5408\u8a08 8<br \/>\ndrwxrwxr-x. 8 3000018 users 226  5\u6708  6 17:03 backup<br \/>\ndrwxrwxr-x. 4 3000019 users  37  5\u6708  6 13:12 neco<br \/>\n-rwxrwxr-x+ 1 3000009 users  15  5\u6708 26 13:08 panda\u5927\u5b66\u7fd2\u5e33.txt<br \/>\n[panda@nuc ~]$ iconv -f sjis -t utf8 \/export\/share\/panda\u5927\u5b66\u7fd2\u5e33.txt<br \/>\npanda\u5927\u5b66\u7fd2\u5e33\n<\/div>\n<p>&nbsp;<br \/>\n\u30e1\u30e2\u5e33\u3067\u30d5\u30a1\u30a4\u30eb\u306b\u6587\u5b57\u3092\u66f8\u304d\u5165\u308c\u305f\u305f\u3081\u3001\u30d5\u30a1\u30a4\u30eb\u306e\u4e2d\u8eab\u306e\u6587\u5b57\u30b3\u30fc\u30c9\u304ccp932\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3067\u304d\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3057\u305f\u3002\n<\/li>\n<\/ol>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u3053\u3053\u307e\u3067\u306e\u4f5c\u696d\u3067\u3001\u5ac1\u69d8\u306e\u671f\u5f85\u306b\u306f\u306a\u3093\u3068\u304b\u5fdc\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u305d\u3046\u3067\u3059\u3002\u30d5\u30a1\u30a4\u30eb\u306a\u3069\u306e\u79fb\u52d5\u306a\u3069\u306e\u64cd\u4f5c\u304cWindows\u3068\u540c\u3058\u4f7f\u7528\u611f\u3067\u3067\u304d\u308b\u306e\u306f\u4fbf\u5229\u3067\u3059\u306d\u3002<\/p>\n<p>\u30d5\u30a1\u30a4\u30eb\u306e\u9000\u907f\u5148\u3068\u3057\u3066\u6709\u52b9\u306b\u4f7f\u3048\u305d\u3046\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u306f\u4ee5\u4e0a\u3067\u3059\u3002<\/p>\n<h2>[2018\/10\/14\u88dc\u8db3]\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u5909\u66f4<\/h2>\n<p>\u300c\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u671f\u9650\u304c\u5207\u308c\u3066\u3044\u307e\u3059\u3002\u300d\u3068\u3044\u3046\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u308b\u5834\u5408\u306b\u306f\u3001Samba4\u30b5\u30fc\u30d0\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306bsmbpasswd\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<div class=\"code\">[panda@pandanote.info ~]$ smbpasswd<br \/>\nOld SMB password:<br \/>\nNew SMB password:<br \/>\nRetype new SMB password:<br \/>\nPassword changed for user panda<br \/>\n[panda@pandanote.info ~]$\n<\/div>\n<p>&nbsp;<\/p>\n<h2>\u53c2\u8003\u6587\u732e<\/h2>\n<ol>\n<li><a href=\"https:\/\/blog.osakana.net\/archives\/7193\">Samba 4.4.x\u3067Active Directory\u3092\uff11\u304b\u3089\u7acb\u3066\u308b<\/a><\/li>\n<li><a href=\"http:\/\/d.hatena.ne.jp\/torutk\/20130301\/p1\">Samba 4.0\u3067Active Directory\u3068Windows\u30c9\u30e1\u30a4\u30f3\u30ed\u30b0\u30aa\u30f3<\/a><\/li>\n<li><a href=\"http:\/\/inaz2.hatenablog.com\/entry\/2013\/07\/07\/054616\">Samba\u3067Windows\u30d5\u30a1\u30a4\u30eb\u5171\u6709\u3092\u884c\u3046\u6b63\u3057\u3044\u3084\u308a\u65b9<\/a><\/li>\n<li><a href=\"http:\/\/void-asterisk.blogspot.com\/2015\/01\/sambaselinux.html\">Samba\u3067\u5171\u6709\u3057\u305f\u30d5\u30a9\u30eb\u30c0\u304c\u898b\u3048\u308b\u304c\u66f8\u304d\u8fbc\u3081\u306a\u3044\u539f\u56e0\u304cSELinux\u3067\u3042\u308b\u5834\u5408\u3068\u305d\u306e\u5bfe\u51e6<\/a><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b \u4e45\u3005\u306b\u81ea\u5b85\u306eNUC\u3067\u3001Samba\u30b5\u30fc\u30d0\u3092\u52d5\u304b\u3057\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002Samba4\u306b\u6311\u6226\u3067\u3059\u3002 Samba\u30b5\u30fc\u30d0\u3068\u3057\u3066\u4f7f\u7528\u3059\u308bNUC\u306f\u3053\u3061\u3089\u3067\u3059\u2193 Linux\u30d9\u30fc\u30b9\u306e\u30d5\u30a1\u30a4\u30eb\u5171\u6709\u7528\u306e\u30b5\u30fc\u30d0\u3068\u3057\u3066\u306fNFS\u30b5\u30fc\u30d0\u3084WebDAV\u30b5\u30fc\u30d0\u3068\u304b\u3092\u6240\u69cb\u308f\u305a\u7acb\u3061\u4e0a\u3052\u3066\u4f7f\u3063\u3066\u3044\u308b\u4e00\u65b9\u3067\u3001Samba\u306f\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u9032\u3080\u306b\u9023\u308c\u3066\u8a2d\u5b9a\u306e\u65b9\u6cd5\u304c\u8907\u96d1\u3067\u3001\u304b\u3064\u3068\u3063\u3064\u304d\u306b\u304f\u3044\u3082\u306e\u306b\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u305f\u3081\u306b\u4f7f\u3046\u306e\u3092\u3084\u3081\u3066\u3057\u307e\u3044\u307e\u2026 <span class=\"read-more\"><a href=\"https:\/\/pandanote.info\/?p=2071\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":2085,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,18,15],"tags":[],"class_list":["post-2071","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-fedora","category-nuc","category-pc"],"_links":{"self":[{"href":"https:\/\/pandanote.info\/index.php?rest_route=\/wp\/v2\/posts\/2071","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pandanote.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pandanote.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pandanote.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pandanote.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2071"}],"version-history":[{"count":26,"href":"https:\/\/pandanote.info\/index.php?rest_route=\/wp\/v2\/posts\/2071\/revisions"}],"predecessor-version":[{"id":7299,"href":"https:\/\/pandanote.info\/index.php?rest_route=\/wp\/v2\/posts\/2071\/revisions\/7299"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/pandanote.info\/index.php?rest_route=\/wp\/v2\/media\/2085"}],"wp:attachment":[{"href":"https:\/\/pandanote.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2071"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pandanote.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2071"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pandanote.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2071"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}