[Samba] higher ascii characaters in smbusers, success!

Erik Soderquist esoderquist at mcstamp.com
Thu Oct 9 19:08:29 GMT 2003

Since you seem to be good with challenges, would you care to try one?
The short version is that I can't automount a share on a windows server
from samba if the machine name has a hyphen in it or if the password has
a space in it. This is from a message I posted previously but got no
response to:

i seem to be having trouble with certain characters in machine names and

specifically, there is a hyphen in on of the server's names. this entry
in the fstab file fails to connect with the following error:

# mount /root/it-blackbox/c\$/
Anonymous login successful
18867: tree connect failed: ERRDOS - ERRnoaccess (Access denied.)
SMB connection failed

the line from fstab is:

//it-blackbox/c$ /root/it-blackbox/c$ smbfs
noauto,credentials=/root/.smbauth 0 0

the .smbauth file contents are:

username = administrator
workgroup = mcstamp

this work correctly for another share on a machine without the hyphen in
the name on the same domain.

the other problem i have is that the password has a space in it, and I
can't seem to get the password to work using quotes or using the
backslash. this forces me to do an interactive mount (yes, i know i have
it set to noauto for interactive. that is because it fails the password
and i have to do it manually anyway. i don't want it to sit and wait for
the password during bootup.) HELP!!!

-----Original Message-----
From: torge husfeldt [mailto:torgehusfeldt at tiscali.de] 
Sent: Tuesday, September 30, 2003 04:57
To: samba at lists.samba.org
Subject: [Samba] higher ascii characaters in smbusers, success!

Hi list,

Update: originally i wanted to post a question,
but in writing i thought of things that finally led me
to the solution. This i wanted to share with the community
in case it can help.

Sorry if this is a FAQ, but I had no luck searching for it.
I have a working Samba 2.2.5 installation on SuSE8.1.
I have two users on a windows client called
Torge (that's me)
Ga&ediaresis;lle (interpreted as HTML special character)
You could also write Ga\"elle (TeX convention),
but fact is: there is a higher ascii character in the name,
that i prefer not to get rid of.
I have users for the same two persons on the server
my smbusers file reads something like this:

toh = torge
gab = gaelle ga?lle

I (toh=torge) can log on impeccably to the server,
while my partner (gab=gaelle) is blocked.
The log says:

[2003/09/29 11:57:18, 1] smbd/password.c:pass_check_smb(545)
  Couldn't find user 'ga211lle' in passdb.

Where the 211 is written in reverse graphics.
Now my question is: what should i put in the place of the
question mark in my smbusers file?

Thanks in advance,

P.S.: Answer: with some cat'ing and >>'ing i managed to
put the exact character from the log into the smbusers
and it worked. Note though that just less'ing and copying
into vi with the mouse would not work.

Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba

More information about the samba mailing list