Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

smb.conf不能使用导入含有%U的子配置文件

Featured Replies

想针对用户区别显示共享目录。

按照网友的经验在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 by lvxj11

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.