torge husfeldt
2003-Sep-30 08:56 UTC
[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) and 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 called: toh and: gab 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, Torge 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/
Erik Soderquist
2003-Oct-09 19:08 UTC
[Samba] higher ascii characaters in smbusers, success!
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 passwords. 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\$/ Password: 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@tiscali.de] Sent: Tuesday, September 30, 2003 04:57 To: samba@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) and 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 called: toh and: gab 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, Torge 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
Erik Soderquist
2003-Oct-14 13:19 UTC
[Samba] higher ascii characaters in smbusers, success!
Space is up front, first character, and I'm not permitted to change it :( These are my current versions. I don't know how to check the version of smbfs, but though it was part of the samba package. # uname -a Linux mcitylinux 2.4.20-8smp #1 SMP Thu Mar 13 17:45:54 EST 2003 i686 i686 i386 GNU/Linux # smbd -V Version 2.2.7a -----Original Message----- From: Torge Husfeldt [mailto:torgehusfeldt@tiscali.de] Sent: Tuesday, October 14, 2003 05:30 To: Erik Soderquist Subject: Re: [Samba] higher ascii characaters in smbusers, success! Hi, it's me again. Sorry, but i wasn't able to reproduce your other problem. I just changed the machine name of my server to contain a hyphen and changed my fstab accordingly resulting in absolutely no problems. Always be sure to use the latest version of smbfs (comes with the kernel - mine is 2.2.5-SuSE) HTH, Torge On Tue, 14 Oct 2003 11:16:50 +0200, Torge Husfeldt <torgehusfeldt@tiscali.de> wrote:> OK, > i'm working on this one. > First of all one remark: > You were posting your question in a Samba group. > i.e. a group that deals with the questions and problems > around the samba server. > Please try also to find people or groups that are more > concerned with the smbfs questions, because that more > specificly matches your request. > Second: > I just changed the password on my 'server'(just a little > win98 notebook that has a share to share) to contain a space > and added the space in my credentials file - the mount succeded! > Make sure to not put any quotes or backslashes in there and don't > put the space up front - as is mentioned in the bugs section of > the man page. > > HTH, > Torge > On Thu, 9 Oct 2003 15:08:29 -0400, Erik Soderquist > <esoderquist@mcstamp.com> wrote: > >> Since you seem to be good with challenges, would you care to try one? > always! >> The short version is that I can't automount a share on a windowsserver>> from samba if the machine name has a hyphen in it or if the passwordhas>> 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 namesand>> passwords. > [snip]-- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
torge husfeldt
2003-Oct-17 15:30 UTC
[Samba] Re: higher ascii characaters in smbusers, success!
Hi, Am Tue, 14 Oct 2003 09:19:26 -0400 hat Erik Soderquist <esoderquist@mcstamp.com> geschrieben:> Space is up front, first character, and I'm not permitted to change it > :(Too bad. Did you check the bugs section in the man page for your version of smbmount, if this limitation still applies? Maybe you can pass the password in the environment variable as suggested.> > These are my current versions. I don't know how to check the version of > smbfs, but though it was part of the samba package.Yes, you're right. My bad. In this context samba always seems to mean client and server. I had remembered otherwise, maybe incorrectly maybe efforts have been joined since.> > # uname -a > Linux mcitylinux 2.4.20-8smp #1 SMP Thu Mar 13 17:45:54 EST 2003 i686 > i686 i386 GNU/Linux > > # smbd -V > Version 2.2.7a >[snip] Regards, Torge -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/