You have been subscribed to a public bug: Hi,
In our Samba 4.13.17 configuration file, we have defined the user home path as below: path = /home/%U/FILES It worked find up to Ubuntu 20.04 with package version Samba version 2:4.13.17~dfsg-0ubuntu1.20.04.2 But since update to Samba version 2:4.13.17~dfsg-0ubuntu1.20.04.4, it does no longer works with error message: canonicalize_connect_path failed, preventing end-user accessing their home drive. Jan 25 11:17:52 ff0119 smbd[2657856]: [2023/01/25 11:17:52.605790, 0] ../../source3/smbd/service.c:785(make_connection_snum) Jan 25 11:17:52 ff0119 smbd[2657856]: make_connection_snum: canonicalize_connect_path failed for service john, path /home/FILES Indeed in the logs, instead of trying to access /home/john/FILES for user john, Samba seems to be trying to access /home/FILES (the user part of the path being stripped out for some unknown reason). It is like the %U value become empty or unreadable. Other paths such as logon script do not seem affected by the issue. The other shared folders remain fully accessible to end-user but not their home directory. For now the only workaround we may have found working is either: - to use a different home path without sub-folder: /home/%U in the samba configuration - downgrade Samba to package version 2:4.13.17~dfsg-0ubuntu1.20.04.2 - setup manually a new share with the full manual path of the user home directory (/home/john/FILES) without using the %U then access to the directory works... not the most convenient in a large multi-user environment.. In help you could provide in resolving this issue quickly would be much appreciated. Regards, Richard ** Affects: samba (Ubuntu) Importance: Undecided Status: Confirmed ** Tags: samba -- Samba user home path not accessible if directory added after %U - canonicalize_connect_path failed https://bugs.launchpad.net/bugs/2003867 You received this bug notification because you are a member of Ubuntu Server/Client Support Team, which is subscribed to samba in Ubuntu. -- Mailing list: https://launchpad.net/~enterprise-support Post to : enterprise-support@lists.launchpad.net Unsubscribe : https://launchpad.net/~enterprise-support More help : https://help.launchpad.net/ListHelp