You are not logged in.

#1 2011-08-09 06:23:48

gpmr
Member
Registered: 2010-07-23
Posts: 3

[SOLVED] Cannot mount (mount.cifs) network subdirectories directly.

Since the most recent "smbclient" update (smbclient - Version 3.5.11-1) I'm not able to mount network subdirectories with mount.cifs directly - so I don't need to navigate through the share to get into the subdirectory. Before this mentioned update, mounting network subdirectories was working perfectly by using:

sudo mount -t cifs -o rw,noperm,user=<User>,password=<Password>,domain=<Domain> //<Server>/<Share>/<Subdirectory> /<Mount Point>

When I try mounting the network subdirectory with the same command now, I'm getting the following error message:

mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

On the other hand, mounting the share and NOT the subdirectory works perfectly:

sudo mount -t cifs -o rw,noperm,user=<User>,password=<Password>,domain=<Domain> //<Server>/<Share> /<Mount Point>

I have already checked the existence and spelling of the network subdirectory with smbclient, but no mistakes could be found.

When I try connecting to the network subdirectory directly by using smbclient

smbclient //<Server>/<Share>/<Subdirectory> -U<Username>%<Password> -W<Domain>

I get following error message:

tree connect failed: NT_STATUS_BAD_NETWORK_NAME

By adding the option "-D <Subdirectory>", a direct connection is possible.

smbclient //<Server>/<Share>/ -U<Username>%<Password>-W<Domain> -D <Subdirectory>

I have already tried "prefixpath" and "bind" to fix the problem, but no luck so far.

Any suggestions?

I appreciate your help. Regards!

Last edited by gpmr (2011-08-17 17:03:09)

Offline

#2 2011-08-09 11:45:48

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [SOLVED] Cannot mount (mount.cifs) network subdirectories directly.

I've noticed this too. It's an upstream bug.

Last edited by falconindy (2011-08-09 11:46:01)

Offline

#3 2011-08-11 09:19:28

JosTh
Member
Registered: 2011-08-10
Posts: 1

Re: [SOLVED] Cannot mount (mount.cifs) network subdirectories directly.

Same here, it doesn't only affect mounting  subdirectories, but also remote printers sad As far as I can see it's not the smbclient but rather a kernel part (some sort of cifs module?) that's causing the problem; it doesn't happen on 2.6 (kernel26-lts for instance)...

Offline

#4 2011-08-17 12:55:58

gpmr
Member
Registered: 2010-07-23
Posts: 3

Re: [SOLVED] Cannot mount (mount.cifs) network subdirectories directly.

Since the newest "smbclient" update (smbclient - Version 3.6.0-1) mounting network subdirectories directly is working again.

Works as wished:

sudo mount -t cifs -o rw,noperm,user=<User>,password=<Password>,domain=<Domain> //<Server>/<Share>/<Subdirectory> /<Mount Point>

Thanks for all your help smile

Last edited by gpmr (2011-08-17 12:58:49)

Offline

Board footer

Powered by FluxBB