Connect to Samba Home Share from Windows Fails with Network path not found

Written by James McDonald

May 2, 2014

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

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.

You May Also Like…

Clear HSTS Settings in CHrome

Open chrome://net-internals/#hsts enter the domain in the query field and click Query to confirm it has HSTS settings...

Ubuntu on Hyper-v

It boils town to installing linux-azure # as root or sudo apt-get update apt-get install linux-azure...