Trying to connect to a share \\linuxpc1\jamesm from Windows 7 to a Debian box
I have a local user defined with the settings below
getent passwd jamesm jamesm:x:1000:1000:jamesm,,,:/home/jamesm:/bin/bash
Getting an error in /var/log/samba/log.__ffff_192.168.0.109 and the windows client saying the network path is not found or similar
[2014/05/02 09:49:35.176418, 0] smbd/service.c:988(make_connection_snum) canonicalize_connect_path failed for service jamesm, path /home/DOMAIN1/jamesm
The remote user DOMAIN1\jamesm is trying to connect to \\linuxpc1\jamesm and samba is mapping this to the template homedir value of /home/%D/%U which doesn’t exist.
The fix, move the current local users files from the default /home/jamesm and change the home directory to the domain one:
usermod -m -d /home/DOMAIN1/jamesm jamesm
Now the local user account and the connecting domain account with the same name share the same home directory.
getent passwd jamesm jamesm:x:1000:1000:jamesm,,,:/home/DOMAIN1/jamesm:/bin/bash
lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 6.0.9 (squeeze) Release: 6.0.9 Codename: squeeze