[Samba] Re: Problems with samba under FreeBSD, not under Linux

Vittorio
Fri, 26 Nov 2004 19:55:30 -0000

TO WHOM IT MAY CONCERN

Found the solution for the problem widely described below, after the
<><>.... symbols.

Here you are the solution:

I created under /root the following
??????? .nsmbrc file

[default]
workgroup=BOH_SS

# The 'FSERVER' is an NT server.
[SRVS1]
#charsets=koi8-r:cp866
addr=srvs1.boh_ss

[SRVS1:A00BCDD]
# use persistent password cache for user 'A00BCD'
password=giulietta

I didn't change a line in my

???????smb.conf file

[global]

   workgroup = BOH_SS

# server string is the equivalent of the NT Description field
   server string = VicBSD
   load printers = no
   log file = /var/log/samba/log.%m
   log level = 1
   max log size = 50


   security = user
    nt acl support = no
  encrypt passwords = yes
  smb passwd file = /usr/local/private/smbpasswd
   domain master = no
#   wins support = yes
   wins server = 10.155.1.122 10.155.1.211
#============================ Share Definitions
=============================[homes]
#   comment = Home Directories
#   browseable = no
#   writable = yes
    read only = No


****************

Thanks to the .nsmbrc file I was able to connect to the windows share
with the following command line (adding the option -N to force samba
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
smoothlhy!

What puzzles me (any explanation?) is that:

1) Even though I declare my username a00bcd in the .nsmbrc file I have
to repeat it in the mount_smbsf line otherwise, issuing e.g
mount_smbfs -N //srvs1/Data /mnt/smb
 it doesn't mount the share complaining about  something wrong with the
authorization;

2) I still don't understand why - without the  -N option I'm correctly
asked for a password but samba continues to be unable to connect the
share.

Anyway my occasional solution works fine!



Thanks to ALL  for the many suggestions

Vittorio

<><><><><><><><><><><><><><><><><><><><><>
<><><><><><><><><><><><><><><><><><><><><>
<><><><><><><><><><><><><><><><><><><><><>
Alle 08:45, venerd? 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
> ? ? smbclient -L srvs1.myco -U myuserid
> ? ? pasword:****
> Domain=[BOH_SS] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager]
>
>  Sharename       Type      Comment
>  ---------       ----      -------
>  Data            Disk
>  ADMIN$          Disk      Remote Admin
>  H$              Disk      Default share
> .....
> Domain=[BOH_SS] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager]
>
>  Server               Comment
>  ---------            -------
>
>  Workgroup            Master My very short smb.conf
>
>
>
>  ---------            -------
>
>
>
>
>  3) If I issue
> ? ? smbclient ?//srvs1.myco/Data -U myuserid
> ? ? pasword:****
> Domain=[BOH_SS] OS=[Windows 5.0] Server=[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
> ?
> mount_smbfs -I srvs1.myco //myuserid@srvs1.myco/Data /mnt/smb
> password:*****
> mount_smbfs: unable to open connection: syserr = Connection reset by
> peer
>
> This error pops up.
>
> Could you please help me, a poor samba newbie, ?straight 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 = BOH_SS
>    server string = Samba
>    load printers = no
>    log file = /var/log/samba3/log.%m
>    max log size = 50
>    security = user
>   encrypt passwords = yes
>
>   smb passwd file = /etc/samba/private/smbpasswd
>    domain master = no
> #============================ Share Definitions
> =============================> [homes]
>    comment = Home Directories
>    browseable = no
>    writable = 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