smbclient works, smbmount does not

Urban Widmark urban at
Tue Oct 23 16:20:07 GMT 2001

On Tue, 23 Oct 2001, Sascha Sertel wrote:

> 	smbmount //brainless/misc /mnt/misc -o
> username=BRAINLESS/Administrator
> or
> 	mount -t smbfs -o username=BRAINLESS/Administrator //brainless/misc
> /mnt/misc
> does not work, I always get the ERRnoaccess (Access denied.) message.

Does username=Administrator,workgroup=BRAINLESS work?

-N is the same as the 'guest' option to smbmount, you could try adding
that. And if that fails, try (and I'm making this up as I type :)

I think smbmount parses a username "BRAINLESS/Administrator" into 
which seems kind of backwards ...

smbclient just accepts all of it as username and passes it as-is to the
library code. Maybe someone else splits it later for smbclient, in which
case smbmount could do that too.

To test that get the sources and remove these lines from 
                                if ((lp=strchr_m(username,'/'))) {
                                        *lp = 0;

Haven't looked at 2.2.2 or the cvs code yet.


More information about the samba mailing list