** Description changed: After the upgrade from samba 2:4.15.13+dfsg-0ubuntu1.6 to 2:4.15.13+dfsg-0ubuntu1.7 the %U substitution in "config file" stopped working. Configuration (in /etc/samba/smb.conf): - [global] - workgroup = MBTEC - security = user - server role = standalone server - config file = /etc/samba/users/%U.conf + [global] + security = user + server role = standalone server + config file = /etc/samba/users/%U.conf Example per-user config file: /etc/samba/users/bartsch.conf - [global] - [daten] - path = /1data/daten - read only = no + [global] + [daten] + path = /1data/daten + read only = no Expected behavior: - On user login (e.g. smbclient //server/daten -U bartsch), Samba loads - /etc/samba/users/bartsch.conf. + /etc/samba/users/bartsch.conf. - This worked fine with 0ubuntu1.6. - Also works fine again with Ubuntu 24.04 (Samba 4.19.5). Observed behavior with 0ubuntu1.7: - Samba does not load the per-user config file. - Log file shows: %U is empty, config file not loaded. - Even %m substitutions in log file (log.%m) are broken, resulting in "0.0.0.0". Steps to reproduce: 1. Install Ubuntu 22.04 with samba 2:4.15.13+dfsg-0ubuntu1.7 2. Use smb.conf as above. 3. Create /etc/samba/users/bartsch.conf with a test share. 4. Run: smbclient //server/daten -U bartsch - → NT_STATUS_BAD_NETWORK_NAME - → No sign of /etc/samba/users/bartsch.conf being loaded in the logs. + → NT_STATUS_BAD_NETWORK_NAME + → No sign of /etc/samba/users/bartsch.conf being loaded in the logs. Regression: - Works in 2:4.15.13+dfsg-0ubuntu1.6 - Broken in 2:4.15.13+dfsg-0ubuntu1.7 (Jammy) - Works again in 24.04 / Samba 4.19.5 Impact: - Prevents per-user Samba configurations (config file = /etc/samba/users/%U.conf) - Breaks existing setups with multiple TB of user shares. Workaround: - Downgrade to 0ubuntu1.6 and hold package. - Or upgrade to Ubuntu 24.04. Please fix regression in Ubuntu 22.04 package.
** Summary changed: - config file = /etc/samba/users/%U.conf + config file = /etc/samba/users/%U.conf variables like %U empty ** Description changed: After the upgrade from samba 2:4.15.13+dfsg-0ubuntu1.6 to 2:4.15.13+dfsg-0ubuntu1.7 the %U substitution in "config file" stopped working. Configuration (in /etc/samba/smb.conf): [global] security = user server role = standalone server config file = /etc/samba/users/%U.conf Example per-user config file: - /etc/samba/users/bartsch.conf + /etc/samba/users/user1.conf [global] [daten] path = /1data/daten read only = no Expected behavior: - - On user login (e.g. smbclient //server/daten -U bartsch), Samba loads - /etc/samba/users/bartsch.conf. + - On user login (e.g. smbclient //server/daten -U user1), Samba loads + /etc/samba/users/user1.conf. - This worked fine with 0ubuntu1.6. - Also works fine again with Ubuntu 24.04 (Samba 4.19.5). Observed behavior with 0ubuntu1.7: - Samba does not load the per-user config file. - Log file shows: %U is empty, config file not loaded. - Even %m substitutions in log file (log.%m) are broken, resulting in "0.0.0.0". Steps to reproduce: 1. Install Ubuntu 22.04 with samba 2:4.15.13+dfsg-0ubuntu1.7 2. Use smb.conf as above. - 3. Create /etc/samba/users/bartsch.conf with a test share. - 4. Run: smbclient //server/daten -U bartsch + 3. Create /etc/samba/users/user1.conf with a test share. + 4. Run: smbclient //server/daten -U user1 → NT_STATUS_BAD_NETWORK_NAME - → No sign of /etc/samba/users/bartsch.conf being loaded in the logs. + → No sign of /etc/samba/users/user1.conf being loaded in the logs. Regression: - Works in 2:4.15.13+dfsg-0ubuntu1.6 - Broken in 2:4.15.13+dfsg-0ubuntu1.7 (Jammy) - Works again in 24.04 / Samba 4.19.5 Impact: - Prevents per-user Samba configurations (config file = /etc/samba/users/%U.conf) - Breaks existing setups with multiple TB of user shares. Workaround: - Downgrade to 0ubuntu1.6 and hold package. - Or upgrade to Ubuntu 24.04. Please fix regression in Ubuntu 22.04 package. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2120811 Title: config file = /etc/samba/users/%U.conf variables like %U empty To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/samba/+bug/2120811/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
