smb.conf不能使用导入含有%U的子配置文件 |
您所在的位置:网站首页 › unraid配置文件 › smb.conf不能使用导入含有%U的子配置文件 |
想针对用户区别显示共享目录。 按照网友的经验在smb.conf中添加: include = /boot/config/samba/smb_%U.conf PS:在设置--》SMB--》Samba 额外配置可以直接添加,不需要修改go文件。 无效,不能达到目的 已经测试如果使用完整路径比如: include = /boot/config/samba/smb_abc.conf 可以正常导入并生效。 而且如果这样配置: [Home_%U] path = /mnt/user/%U comment = browseable = yes # Private writeable = no read list = write list = %U valid users = %U case sensitive = auto preserve case = yes short preserve case = yes vfs objects = catia fruit streams_xattr fruit:encoding = native 也是可以正确代入变量并生效。 但为什么用include直接导入带%U变量的路径就不可以?看到网上有说明include应该除%u , %P 和 %S以外都支持的。 Edited April 10, 2023 by lvxj11 |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |