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 03-18-2004, 11:42 AM   #1
Thomas M.
LQ Newbie
 
Registered: Feb 2004
Location: Denmark, Europe
Distribution: Slackware 9.1 powered by Kernel 2.6.2
Posts: 7

Rep: Reputation: 0
Samba: Can't connect


When I try to connect to a computer or my network, or visa-versa, it entirely fails to connect, so I decided to investigate the matter. I've configured /etc/samba/smb.conf, rebooted (samba starts upon booting) - nothing happens. I've tried to perform a 'smbfind' in the console, but it doesn't list any client/host, although I can still connect to my own computer through smb://computer. What could possibly be wrong? Do I need additional services running besides SMB?
 
Old 03-18-2004, 12:29 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
start here

http://www.oreilly.com/catalog/samba/chapter/book/

http://hr.uoregon.edu/davidrl/samba/

post your smb.conf

have you added samba users via

smbpasswd -a username

are the other computers on the network configured properly? what type of network is it? what type of clients?

there are a number of reasons that it maynot be working. do some reading and try to answer these ?'s.
good luck.
 
Old 03-18-2004, 01:26 PM   #3
Thomas M.
LQ Newbie
 
Registered: Feb 2004
Location: Denmark, Europe
Distribution: Slackware 9.1 powered by Kernel 2.6.2
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by PEACEDOG
post your smb.conf
Here it comes:

Code:
[global]

   workgroup = HOME


   server string = Linux


   security = user


  hosts allow = 192.168.1. 192.168.2. 127.
  load printers = yes
;   printcap name = /etc/printcap
;   printcap name = lpstat
;   printing = cups
;  guest account = pcguest
   log file = /var/log/samba.%m
   max log size = 50
;   password server = <NT-Server-Name>
;   realm = MY_REALM
;   passdb backend = tdbsa
;   include = /usr/local/samba/lib/smb.conf.%m
   socket options = TCP_NODELAY 
;   interfaces = 192.168.0.7/24
   local master = no
;   os level = 33
;   domain master = yes 
;   preferred master = yes
;   domain logons = yes
;   logon script = %m.bat
;   logon script = %U.bat
;   logon path = \\%L\Profiles\%U
;   wins support = yes
;   wins server = w.x.y.z
;   wins proxy = yes
   dns proxy = no 
;  add user script = /usr/sbin/useradd %u
;  add group script = /usr/sbin/groupadd %g
;  add machine script = /usr/sbin/adduser -n -g machines -c Machine -d /dev/null -s /bin/false %u
;  delete user script = /usr/sbin/userdel %u
;  delete user from group script = /usr/sbin/deluser %u %g
;  delete group script = /usr/sbin/groupdel %g


#============================ Share Definitions ==============================
[homes]
;   comment = Home Directories
;   browseable = no
;   writable = yes

[Share_Dump_1]
   comment = Home Share 
   path = /storage/shared 
   only guest = yes
   public = yes
   writable = yes
   printable = no
Quote:
Originally posted by PEACEDOG
have you added samba users via

smbpasswd -a username
Just did. No change.

Quote:
are the other computers on the network configured properly? what type of network is it? what type of clients?
The two other computers in the network are running Windows XP and Windows 2K, both working fine. All computers (including this one) are connected through a switch, sharing a DSL connection that is also connected directly to the switch.

Last edited by Thomas M.; 03-18-2004 at 01:40 PM.
 
Old 03-18-2004, 01:27 PM   #4
j0217995
Member
 
Registered: Jan 2003
Location: Grand Rapids, Michigan, USA
Distribution: Kubuntu
Posts: 71

Rep: Reputation: 15
Is the O'Rilley book the best one to learn Samba or is there a better one. In fact is Samba the best way to connect to printers and shares in a Windows 2000 server w/ Active Directory or is there a better way?
 
Old 03-18-2004, 05:19 PM   #5
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
may i suggest again some reading at the provided links. in the meantime here is a basic smb.conf that i use to start from when setting up the samba, it was saved from a successful mandrake setup, so that's where i start every time.

Code:
[global]

   workgroup = yourgroup
   netbios name = yournetbiosname
   server string = Samba Server %v
   security = SHARE
   encrypt passwords = Yes
   map to guest = Bad User
   log file = /var/log/samba/log.%m
   max log size = 50
   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
   printcap name = cups
   dns proxy = No
   printer admin = @adm
   printing = cups

[homes]
   comment = Home Directories
   path = /home/yourhome
   public = yes
   browseable = yes
   writable = yes
the above is only an example, you will need to do some research and modify it accordingly. some other things to keep in mind are your users, the windows machines setup, and, any firwalls. as i stated before there could be a ton of reasons it's not working. start from scratch w/the file i've provided and do the reading. come back w/some specific ?'s.
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
Connect to Samba swan2925 Linux - Software 0 04-29-2005 12:41 AM
Samba: can't connect to my local linux machine but can connect to windows. Royle Linux - Networking 3 01-18-2005 05:32 PM
Can't connect via Samba vinny0 Linux - Software 4 01-28-2004 12:55 PM
Mandrake (Samba) Client Can't Connect To Samba Buick Linux - Networking 1 01-21-2004 01:55 PM
Samba won't connect Travis86 Linux - Networking 6 04-30-2003 10:16 PM

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

All times are GMT -5. The time now is 12:55 PM.

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