Date: Fri, 26 Nov 2004 20:55:04 +0000 From: Vittorio <v.demartino2@virgilio.it> To: freebsd-questions@freebsd.org Cc: samba@lists.samba.org Subject: Re: Problems with samba under FreeBSD, not under Linux Message-ID: <200411262055.05093.v.demartino2@virgilio.it> In-Reply-To: <200411260845.35193.v.demartino2@virgilio.it> References: <200411260845.35193.v.demartino2@virgilio.it>
next in thread | previous in thread | raw e-mail | index | archive | help
TO WHOM IT MAY CONCERN =46ound the solution for the problem widely described below, after the=20 <><>.... symbols. Here you are the solution: I created under /root the following =B0=B0=B0=B0=B0=B0=B0 .nsmbrc file [default] workgroup=3DBOH_SS # The 'FSERVER' is an NT server. [SRVS1] #charsets=3Dkoi8-r:cp866 addr=3Dsrvs1.boh_ss [SRVS1:A00BCDD] # use persistent password cache for user 'A00BCD' password=3Dgiulietta=20 I didn't change a line in my=20 =B0=B0=B0=B0=B0=B0=B0smb.conf file [global] workgroup =3D BOH_SS # server string is the equivalent of the NT Description field server string =3D VicBSD load printers =3D no log file =3D /var/log/samba/log.%m log level =3D 1 max log size =3D 50 security =3D user nt acl support =3D no encrypt passwords =3D yes smb passwd file =3D /usr/local/private/smbpasswd domain master =3D no # wins support =3D yes wins server =3D 10.155.1.122 10.155.1.211=20 #=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D Share Definitions=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D [homes] # comment =3D Home Directories # browseable =3D no # writable =3D yes read only =3D No **************** Thanks to the .nsmbrc file I was able to connect to the windows share=20 with the following command line (adding the option -N to force samba=20 read the password from .nsmbrc): mount_smbfs -N //a00bcd@srvs1/Data /mnt/smb in so doing samba desn't ask for the password and connects to the share=20 smoothlhy! What puzzles me (any explanation?) is that: 1) Even though I declare my username a00bcd in the .nsmbrc file I have=20 to repeat it in the mount_smbsf line otherwise, issuing e.g =20 mount_smbfs -N //srvs1/Data /mnt/smb it doesn't mount the share complaining about something wrong with the=20 authorization; 2) I still don't understand why - without the -N option I'm correctly=20 asked for a password but samba continues to be unable to connect the=20 share. Anyway my occasional solution works fine! Thanks to ALL for the many suggestions Vittorio <><><><><><><><><><><><><><><><><><><><><> <><><><><><><><><><><><><><><><><><><><><> <><><><><><><><><><><><><><><><><><><><><> Alle 08:45, venerd=EC 26 novembre 2004, Vittorio ha scritto: > (Context: Office windows LAN; PC Pentium 3 with 128 MB, FreeBSD 5.3.) > > > Here you are the unanswered message I had sent to the FreeBSD mailing > list: > > \BEGIN{MESSAGE} > --------------------------------------------------------------------- >-- --------------- After installing and launching samba 3.0.7 daemons > under my postgresql FBSD5.3 > stable server at office, I'm having trouble in connecting to whatever > windows > share in the M$ LAN. > > Here you are what's going on: > 1) I can ping to my windows server srvs1.myco; > > 2) If I issue > =A0 =A0 smbclient -L srvs1.myco -U myuserid > =A0 =A0 pasword:**** > Domain=3D[BOH_SS] OS=3D[Windows 5.0] Server=3D[Windows 2000 LAN Manager] > > Sharename Type Comment > --------- ---- ------- > Data Disk > ADMIN$ Disk Remote Admin > H$ Disk Default share > ..... > Domain=3D[BOH_SS] OS=3D[Windows 5.0] Server=3D[Windows 2000 LAN Manager] > > Server Comment > --------- ------- > > Workgroup Master My very short smb.conf > > > > --------- ------- > > > > > 3) If I issue > =A0 =A0 smbclient =A0//srvs1.myco/Data -U myuserid > =A0 =A0 pasword:**** > Domain=3D[BOH_SS] OS=3D[Windows 5.0] Server=3D[Windows 2000 LAN Manager] > smb: \> dir > . DA 0 Tue Nov 23 09:13:08 > 2004 > .. DA 0 Tue Nov 23 09:13:08 > 2004 > Scambio DA 0 Tue Nov 23 09:13:09 > 2004 > Utenti My very short smb.conf > > > DA 0 Tue Nov 23 09:13:09 > 2004 > > > > BUT if I issue > =A0 > mount_smbfs -I srvs1.myco //myuserid@srvs1.myco/Data /mnt/smb > password:***** > mount_smbfs: unable to open connection: syserr =3D Connection reset by > peer > > This error pops up. > > Could you please help me, a poor samba newbie, =A0straight things up? > > Thanks in advance > > Vittorio > --------------------------------------------------------------------- >-- ------------------ \END{MESSAGE} > > Now, I can add that I had a go with Samba 3.08 under a linux gentoo > slice on the same box, replicating all the commands I had given under > FreBSD (with the exception of smbmount under gentoo & mount_smbfs > under freebsd, somewhat different synthax, too) and - under linux - > it works perfectly well. > > > My very short smb.conf (both under linux and FreeBSD) > > > [global] > > workgroup =3D BOH_SS > server string =3D Samba > load printers =3D no > log file =3D /var/log/samba3/log.%m > max log size =3D 50 > security =3D user > encrypt passwords =3D yes > > smb passwd file =3D /etc/samba/private/smbpasswd > domain master =3D no > #=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D Share Definitions > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D > [homes] > comment =3D Home Directories > browseable =3D no > writable =3D yes > > > From the win 2000 box I can see my freebsd box fqdn but can't connect > any share. Win 2000 keeps <compalining "You have no authorization to > connect to the share, ask the Administrator" (sorry, translating from > Italian) > > PLEASE HELP!!!! > > Ciao > Vittorio > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200411262055.05093.v.demartino2>