Samba Questions-Only Half Working

Leonard Chatagnier lenc5570 at sbcglobal.net
Tue Feb 26 06:21:07 UTC 2008


Since going to static IP' on my lan, I've only been
able to read/mount shares on one machine or the other,
not both at the same time. Currently I have one direct
wired machine setup as PDC which wont read shares from
the other machine. The other machine is wifi connected
setup as BDC which will read shares from the wired 64
bit machine.  Before I changed smb.conf on both based
on googling the error messages, the 64 bit machine
would read shares but the 32 bit machine wouldn't. The
above smb.conf setups are my impressions and may not
be as suspected. I'm trying to setup the wired machine
as a PDC and the wifi connected machine as the
client(BDC) machine.  What I don't know is, is there a
seperate, distinct smb.conf for a client machine? Have
googled for that setuo and found nothing to help. If
you have one machine setup as a PDC, what should the
second machine be setup as? A clear answer would
eliminate some confusion.  Have googled/read hits,
howtos, etc(several days time) and tried out things
seemingly related with no succes except to change the
machine that doesn't work. The soln is prob simple but
can't put my hand on it.  Appreciate any
suggestions/help offered.
The output when trying to mount the wifi machine, or
either machine depending on which is working is:

sudo mount -t smbfs -o
username=lchata,password=xxxxxxx //ubuntu/homes
/media/samba
[sudo] password for lchata:
Error connecting to 192.168.1.2 (Connection refused)
32430: Connection to ubuntu failed
SMB connection failed

or using smbclirnt:

lchata at ubuntu64:/$ smbclient -L ubuntu
Error connecting to 192.168.1.2 (Connection refused)
Connection to ubuntu failed (Error
NT_STATUS_CONNECTION_REFUSED)

For Ubuntu64 wired connection that doesn't work:
lchata at ubuntu64:/$ testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[printers]"
WARNING: The "only user" option is deprecated
Processing section "[print$]"
Processing section "[cdrom]"
Processing section "[lchata]"
WARNING: The "only user" option is deprecated
Processing section "[SAMBA]"
Loaded services file OK.
Server role: ROLE_DOMAIN_PDC
Press enter to see a dump of your service definitions

[global]
        server string = %h server (Samba, Ubuntu,
ubuntu64)
        interfaces = 127.0.0.0/8, eth0, wlan0, ubuntu,
ubuntu64, 192.168.1.2, 192.168.1.3
        bind interfaces only = Yes
        encrypt passwords = No
        obey pam restrictions = Yes
        passdb backend = tdbsam
        passwd program = /usr/bin/passwd %u
        passwd chat = *Enter\snew\sUNIX\spassword:*
%n\n *Retype\snew\sUNIX\spassword:* %n\n
*passwd:*password\supdated\ssuccessfully* .
        syslog = 0
        log file = /var/log/samba/log.%m
        max log size = 1000
        name resolve order = lmhosts host wins bcast
        printcap name = cups
        domain logons = Yes
        os level = 35
        preferred master = Yes
        domain master = Yes
        dns proxy = No
        panic action = /usr/share/samba/panic-action
%d
        winbind enum users = Yes
        winbind enum groups = Yes
        invalid users = root
        printing = cups
        print command =
        lpq command = %p
        lprm command =

[homes]
        path = /home/lchata
        valid users = %S
        read only = No
        create mask = 0775
        directory mask = 0775
        guest ok = Yes

[printers]
        path = /var/lib/samba/printers
        username = lchata
        read only = No
        create mask = 0700
        guest ok = Yes
        only user = Yes
        printable = Yes
        case sensitive = No
        hide dot files = No
        browseable = No
        strict locking = No
        msdfs proxy = no

[print$]
        comment = Printer Drivers
        path = /var/lib/samba/printers

[cdrom]
        comment = Samba server's CD-ROM
        path = /media/cdrom0
        guest ok = Yes
        case sensitive = No
        hide dot files = No
        strict locking = No
        preexec = /bin/mount /cdrom
        postexec = /bin/umount /cdrom
        msdfs proxy = no

[lchata]
        comment = shared folder
        path = /home/lchata
        username = lchata
        guest ok = Yes
        only user = Yes
        hosts allow = 192.168.1.2, 192.168.1.254
        case sensitive = No
        strict locking = No
        fstype = smbfs
        msdfs proxy = no

[SAMBA]
        path = /var/spool/samba
        username = lchata
        guest ok = Yes
        hosts allow = 192.168.1.2, ubuntu
        case sensitive = No
        hide dot files = No
        strict locking = No
        msdfs proxy = no
lchata at ubuntu64:/$

For Ubuntu wifi connected that works:
lchata at ubuntu:~$ testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[printers]"
Processing section "[print$]"
Processing section "[lchata]"
Processing section "[etc]"
Processing section "[root directory]"
Processing section "[log]"
Loaded services file OK.
WARNING: You have some share names that are longer
than 12 characters.
These may not be accessible to some older clients.
(Eg. Windows9x, WindowsMe, and smbclient prior to
Samba 3.0.)
Server role: ROLE_DOMAIN_BDC
Press enter to see a dump of your service definitions

[global]
        server string = %h server (Samba, Ubuntu,
ubuntu64)
        interfaces = 127.0.0.0/8, eth0,
ubuntu64.gateway.2wire.net, ubuntu64,
192.168.1.3/255.255.255.0
        bind interfaces only = Yes
        obey pam restrictions = Yes
        passdb backend = tdbsam
        passwd program = /usr/bin/passwd %u
        passwd chat = *Enter\snew\sUNIX\spassword:*
%n\n *Retype\snew\sUNIX\spassword:* %n\n
*passwd:*password\supdated\ssuccessfully* .
        username map = /etc/samba/smbusers
        syslog = 0
        log file = /var/log/samba/log.%m
        max log size = 1000
        name resolve order = lmhosts host wins bcast
        printcap name = cups
        domain logons = Yes
        domain master = No
        dns proxy = No
        panic action = /usr/share/samba/panic-action
%d
        winbind enum users = Yes
        winbind enum groups = Yes
        invalid users = root

[homes]
        comment = Home Directories
        username = %S
        read only = No

[printers]
        comment = All Printers
        path = /var/spool/samba/
        create mask = 0700
        printable = Yes
        case sensitive = No
        browseable = No
        strict locking = No
        msdfs proxy = no

[print$]
        comment = Printer Drivers
        path = /var/lib/samba/printers/
        username = avahi-autoipd, avahi, backup, bin,
daemon, dhcp, games, gdm, gnats, haldaemon, hplip,
irc, klog, lchata, list, lp, mail, man, messagebus,
news, nobody, postfix, proxy, root, saned, statd,
sync, sys, syslog, uucp, www-data
        case sensitive = No
        strict locking = No
        msdfs proxy = no

[lchata]
        path = /home/lchata/
        username = lchata
        force user = lchata
        force group = lchata
        read only = No
        case sensitive = No
        strict locking = No
        msdfs proxy = no

[etc]
        path = /etc/
        username = lchata
        read only = No

[root directory]
        path = /
        username = lchata

[log]
        path = /var/log
        username = lchata
lchata at ubuntu:~$

Leonard Chatagnier
lenc5570 at sbcglobal.net




More information about the ubuntu-users mailing list