Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

samba: can connect to localhost only.

Status
Not open for further replies.

frozenJim

Programmer
Aug 22, 2003
1
CA
Hi, new to Samba. I have set up my samba server on Linux. No problem accessing the windows machines but nobody can see my Samba server. Not even the Samba server unless I connect to localhost. (PC name is thorn, netbios name is thorn in smb.conf) For starters, I am working with the //thorn/tmp share so don't worry too much about other misconfigured shares ;-)

This works:
Code:
# smbclient //localhost/tmp -U=guest
Password: 
Domain=[THORN] OS=[Unix] Server=[Samba 3.0.14a]
smb: \> exit

This fails:
Code:
# smbclient //thorn/tmp -U=guest
Password: 
tree connect failed: Call returned zero bytes (EOF)
My samba server is not visible to any other computers on the windows workgroup and there is no way to get connected.

What have I done wrong?

TESTPARM OUTPUT:
Code:
thorn log # testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[printers]"
Processing section "[print$]"
Processing section "[tmp]"
Processing section "[officejet]"
Processing section "[test]"
Loaded services file OK.
Warning: Service printers defines a print command, but print command parameter is ignored when using CUPS libraries.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

# Global parameters
[global]
        workgroup = FLOWER
        server string = Samba Server %v
        interfaces = lo, eth0
        bind interfaces only = Yes
        smb passwd file = /etc/samba/private/smbpasswd
        passdb backend = tdbsam
        guest account = samba
        log file = /var/log/samba3/log.%m
        max log size = 50
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        printcap name = cups
        disable spoolss = Yes
        show add printer wizard = No
        dns proxy = No
        comment = Whazzuppp!!!!
        printer admin = root
        guest ok = Yes
        hosts allow = 192.168.2.0/255, 127.0.0.1/8
        hosts deny = 0.0.0.0/0
        cups options = "raw"
        printer name = officejet
        hide unreadable = Yes

[homes]
        comment = Home Directories
        read only = No
        browseable = No

[printers]
        comment = All Printers
        path = /var/spool/samba
        read only = No
        create mask = 0700
        printable = Yes
        print command = lpr-cups -P %p -o raw %s -r   # using client side printer drivers.
        browseable = No

[print$]
        comment = Printer Drivers
        path = /var/lib/samba/printers/W32X86
        write list = root
        read only = No

[tmp]
        comment = Temporary file space
        path = /tmp
        read only = No

[officejet]
        comment = OfficeJet on thorn(LINUX)
        path = /var/spool/officejet
        printable = Yes

[test]
        comment = let's see how THIS works out...
        path = /mydocuments
        read only = No
        printable = Yes
SBM.CONF
Code:
[global]
	
	log file = /var/log/samba3/log.%m
	hosts allow = 192.168.2.0/255 127.0.0.1/8
	hosts deny = 0.0.0.0/0
	interfaces = lo eth0
	bind interfaces only = yes
	printer = officejet
	smb passwd file = /etc/samba/private/smbpasswd
	load printers = yes
	socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
	#map to guest = bad user
	#encrypt passwords = yes
	#null passwords = no
	hide unreadable = yes
	hide dot files = yes
	passdb backend = tdbsam
	printer admin = root
	dns proxy = no 
   guest account = samba
   guest ok = yes
	server string = Samba Server %v
	printing = cups
	cups options = "raw"
	use client driver = no
	workgroup = Flower
	netbios name = thorn
	comment = Whazzuppp!!!!
	printcap name = cups
	disable spoolss = Yes
	show add printer wizard = No
	security = user
	max log size = 50
	local master = yes

[homes]
   comment = Home Directories
   browseable = no
   writable = yes

[printers]
   comment = All Printers
   path = /var/spool/samba
   browseable = yes
   guest ok = yes
   writable = yes
   printable = yes
   printer admin = root
   create mode = 0700
# =====================================
# print command: see above for details.
# =====================================
   print command = lpr-cups -P %p -o raw %s -r   # using 


[print$]
   comment = Printer Drivers
   #path = /etc/samba/drivers
   #path = /usr/share/cups/drivers
   path = /var/lib/samba/printers/W32X86
   browseable = yes
   read only = no
   write list = root
   guest ok = yes

[tmp]
   comment = Temporary file space
   path = /tmp
   read only = no
   public = yes


[officejet]
comment = OfficeJet on thorn(LINUX)
printable = yes
path = /var/spool/officejet
public = yes
guest ok = yes
printer admin = root
use client driver = no

[test]
	comment = let's see how THIS works out...
	guest ok = yes
	browsable = yes
	writable = yes
	printable = yes
	path = /mydocuments
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top