Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Slackware 9.1 powered by Kernel 2.6.2
Posts: 7
Rep:
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?
Distribution: Slackware 9.1 powered by Kernel 2.6.2
Posts: 7
Original Poster
Rep:
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.
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?
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.