LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-04-2007, 07:05 PM   #1
fatsheep
Member
 
Registered: Sep 2006
Posts: 79

Rep: Reputation: 15
Samba Networking Problems


I just set up a samba network with this helpful topic between this Ubuntu 7.04 machine and a Windows 2000 machine. I have successfully shared a folder on this machine (ubuntu) on windows by using this machine's IP address. However, there are other problems in the network:

1. Hostnames are not working. I have disabled Zone Alarm on Windows but neither domain name can be pinged from either machine. I cannot even ping this machine when I am on it unless I use fatsheep-desktop.WORKGROUP as the hostname (the hostname is fatsheep-desktop and the workgroup is named "WORKGROUP"). However pinging the other computer as dell2000.WORKGROUP doesn't work.

2. Network printer (setup on the Windows 2000 machine) won't work from this machine (Ubuntu). I have set it up with System > Administration > Printing. I have tried using "DELL2000" as the hostname and I have tried using the IP address of the Windows 2000 machine, neither have worked. In the properties of the printer on Ubuntu, this error message is displayed:

Quote:
Ready: Unable to connect to CIFS host, will retry in 60 seconds...
Here is the output of smbtree:

Code:
smfatsheep:~$ smbtree
Password: 
WORKGROUP
        \\DELL2000       
                \\DELL2000\C$                   Default share
                \\DELL2000\ADMIN$               Remote Admin
                \\DELL2000\moo                  hp deskjet 845c series
                \\DELL2000\print$               Printer Drivers
                \\DELL2000\IPC$                 Remote IPC
        \\ALEX-DESKTOP   
timeout connecting to 192.168.0.5:445
timeout connecting to 192.168.0.5:139
Error connecting to 192.168.0.5 (Operation already in progress)
cli_start_connection: failed to connect to ALEX-DESKTOP<20> (192.168.0.5)
Here are the contents of my /etc/samba/smb.conf file:

Code:
[global]
    ; General server settings
    netbios name = fatsheep-desktop
    
    workgroup = WORKGROUP
    announce version = 5.0
    socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192

    passdb backend = tdbsam
    security = user
    null passwords = true
    username map = /etc/samba/smbusers
    name resolve order = hosts wins bcast

    wins support = no

    printing = CUPS
    printcap name = CUPS

    syslog = 1
    syslog only = yes

; NOTE: If you need access to the user home directories uncomment the
; lines below and adjust the settings to your hearts content.
;[homes]
    ;valid users = %S
    ;create mode = 0600
    ;directory mode = 0755
    ;browseable = no
    ;read only = no
    ;veto files = /*.{*}/.*/mail/bin/

; NOTE: Only needed if you run samba as a primary domain controller.
; Not needed as this config doesn't cover that matter.
;[netlogon]
    ;path = /var/lib/samba/netlogon
    ;admin users = Administrator
    ;valid users = %U
    ;read only = no

; NOTE: Again - only needed if you're running a primary domain controller.
;[Profiles]
    ;path = /var/lib/samba/profiles
    ;valid users = %U
    ;create mode = 0600
    ;directory mode = 0700
    ;writeable = yes
    ;browseable = no

; NOTE: Inside this place you may build a printer driver repository for
; Windows - I'll cover this topic in another HOWTO.
[print$]
    path = /var/lib/samba/printers
    browseable = yes
    guest ok = yes
    read only = yes
    write list = root
    create mask = 0664
    directory mask = 0775

[printers]
    path = /tmp
    printable = yes
    guest ok = yes
    browseable = no

; Uncomment if you need to share your CD-/DVD-ROM Drive
;[DVD-ROM Drive]
    ;path = /media/cdrom
    ;browseable = yes
    ;read only = yes
    ;guest ok = yes

[MyFiles]
    path = /shared
    
    read only = no
    guest ok = no
    create mask = 0644
    directory mask = 0755
    force user = fatsheep
    force group = fatsheep
available = yes
browsable = yes
public = yes
writable = yes


Any help on either problem would be most helpful. Thanks,

- sheep
 
Old 09-04-2007, 07:31 PM   #2
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Quote:
1. Hostnames are not working. I have disabled Zone Alarm on Windows but neither domain name can be pinged from either machine. I cannot even ping this machine when I am on it unless I use fatsheep-desktop.WORKGROUP as the hostname (the hostname is fatsheep-desktop and the workgroup is named "WORKGROUP"). However pinging the other computer as dell2000.WORKGROUP doesn't work.
Try adding the machine to your /etc/hosts file. If you're using dhcp try addinng wins to your /etc/nsswitch.conf. Have a look at these.

http://www.linuxquestions.org/questi...d.php?t=271336

http://us1.samba.org/samba/docs/man/....html#id425201

Quote:
2. Network printer (setup on the Windows 2000 machine) won't work from this machine (Ubuntu). I have set it up with System > Administration > Printing. I have tried using "DELL2000" as the hostname and I have tried using the IP address of the Windows 2000 machine, neither have worked. In the properties of the printer on Ubuntu, this error message is displayed:
Try setting the printer up with cups.

http://www.cups.org/

or

http://localhost:631

if it's installed already.
Good luck. ;-)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help: Samba networking problems toast_rules Linux - Networking 3 01-13-2006 02:22 PM
Samba Networking With XP Floyd770 Linux - Networking 2 03-03-2005 11:23 AM
samba networking help please! odious1 Linux - Networking 10 07-09-2003 03:38 PM
Samba Networking esael Linux - Networking 3 10-26-2002 03:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration