差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン | |||
linux:samba:setting [2022/05/29 02:09] – [Samba の設定] ともやん | linux:samba:setting [2022/05/29 03:53] (現在) – [参考文献] ともやん | ||
---|---|---|---|
行 330: | 行 330: | ||
max connections = 2 | max connections = 2 | ||
</ | </ | ||
+ | </ | ||
+ | |||
+ | ===== トラブルシューティング ===== | ||
+ | |||
+ | ==== smb.conf に wide links = yes を設定するとファイル共有にアクセスできない😥 ==== | ||
+ | <WRAP mincode> | ||
+ | <code autoconf / | ||
+ | |||
+ | #### Debugging/ | ||
+ | |||
+ | # This tells Samba to use a separate log file for each machine | ||
+ | # that connects | ||
+ | log file = / | ||
+ | |||
+ | [DataShare] | ||
+ | comment = Data Share | ||
+ | path = / | ||
+ | browseable = yes | ||
+ | read only = no | ||
+ | wide links = yes | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | samba のログを確認する🤔\\ | ||
+ | <WRAP color_term> | ||
+ | <WRAP color_command>< | ||
+ | $ sudo tail -f / | ||
+ | </ | ||
+ | <WRAP color_result>< | ||
+ | <b class=RED> | ||
+ | make_connection_snum: | ||
+ | [2022/05/29 03: | ||
+ | Error loading module '/ | ||
+ | [2022/05/29 03: | ||
+ | error probing vfs module ' | ||
+ | [2022/05/29 03: | ||
+ | smbd_vfs_init: | ||
+ | [2022/05/29 03: | ||
+ | make_connection_snum: | ||
+ | </ | ||
+ | </ | ||
+ | **widelinks.so** が見つからないのでモジュールがロード出来ていない😱\\ | ||
+ | |||
+ | **widelinks.so** は **samba-vfs-modules** パッケージに含まれる。\\ | ||
+ | <WRAP color_term> | ||
+ | <WRAP color_command>< | ||
+ | $ apt-file search widelinks.so | ||
+ | </ | ||
+ | <WRAP color_result>< | ||
+ | samba-vfs-modules: | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | **samba-vfs-modules** パッケージをインストールするとファイル共有にアクセス可能になる🥰\\ | ||
+ | <WRAP color_term> | ||
+ | <WRAP color_command>< | ||
+ | $ sudo apt install samba-vfs-modules | ||
+ | </ | ||
+ | <WRAP color_result>< | ||
+ | Reading package lists... Done | ||
+ | Building dependency tree... Done | ||
+ | Reading state information... Done | ||
+ | The following additional packages will be installed: | ||
+ | liburing1 | ||
+ | Recommended packages: | ||
+ | libcephfs2 libgfapi0 | ||
+ | The following NEW packages will be installed: | ||
+ | liburing1 samba-vfs-modules | ||
+ | 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. | ||
+ | Need to get 466 kB of archives. | ||
+ | After this operation, 1,549 kB of additional disk space will be used. | ||
+ | Do you want to continue? [Y/n] y | ||
+ | Get:1 http:// | ||
+ | Get:2 http:// | ||
+ | Fetched 466 kB in 3s (166 kB/s) | ||
+ | debconf: delaying package configuration, | ||
+ | Selecting previously unselected package liburing1: | ||
+ | (Reading database ... 70828 files and directories currently installed.) | ||
+ | Preparing to unpack .../ | ||
+ | Unpacking liburing1: | ||
+ | Selecting previously unselected package samba-vfs-modules: | ||
+ | Preparing to unpack .../ | ||
+ | Unpacking samba-vfs-modules: | ||
+ | Setting up liburing1: | ||
+ | Setting up samba-vfs-modules: | ||
+ | Processing triggers for libc-bin (2.31-13+rpt2+rpi1+deb11u2) ... | ||
+ | </ | ||
</ | </ | ||