Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 08-02-2005, 09:40 AM   #1
Registered: Apr 2005
Location: Los Angeles
Distribution: openSUSE / Ubuntu
Posts: 294

Rep: Reputation: 33
new to samba - unable to connect

I've been looking through the threads and am unable to figure what I'm missing.

I have a home network with one desktop running Windows 2000 Pro and a laptop running SuSE 9.3. (Workgroup: R2D2)

There is a wireless network for the network (TheForce) which requires authentication.

Here's a link:

When I try to connect to my Linux workstation from my Windows workstation I get shares but am unable to connect:

...then I get...

...which doesn' t allow me to connect. I tried logging in as root and my username (kai) neither of which work.

When I try to connect to my windows workstation from my linux machine I get the following error:

I currently have the SuSE firewall disabled, so that isn't the issue.

Any ideas? I've looked in the configuration but can't find what might be wrong.

Old 08-02-2005, 01:16 PM   #2
Senior Member
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,500

Rep: Reputation: 100Reputation: 100
What happens if you type


in an Xterm on the laptop?

What does your smb.conf look like?

Here's my smb.conf - I have several Windows machines on my network that can easily access my Linux machine's "shared" (C:\shared) directory while my machine is in linux:


netbios name = stefan
workgroup = GOEDEHOOP10
security = share
log file = /var/log/samba.log
log level = 1
wins support = yes
domain logons = no
logon drive = f:
logon home = \\stefan\%U
os level = 99
preferred master = yes
local master = yes
hosts allow =
encrypt passwords = yes
browseable = yes
lanman auth = yes
lm announce = yes

path = /mnt/win/shared
guest ok = yes
writeable = yes
create mode = 0666
directory mode = 0777
browseable = yes
public = yes

Obviously, the list of allowed hosts are the IP addresses of all the machines that I want to be able to access my Linux machine.

To connect to a share on a Windows machine from my Linux machine I do

smbmount "//programmer/shared" /mnt/programmer -o username=guest,password="",uid=rylan,dmask=0775,fmask=0775

where "//programmer/shared" is the Windows machine name and Windows share name of a share on the target Windows machine. You can also use the IP address of the target Windows machine (smbmount "//" for example) to mount a share on the Windows machine for access on the Linux machine.

Hope this helps!
Old 08-02-2005, 03:31 PM   #3
Registered: Apr 2005
Location: Los Angeles
Distribution: openSUSE / Ubuntu
Posts: 294

Original Poster
Rep: Reputation: 33
ack! more command line! :0

Anyway, here's my samba config file. It was a bitch to find it, by the way. Fortunately, Kate opened it no problem. I did notice something interesting, the wins server (IP has been changed) points to my corporate wins server at my work. I wonder how that got there. I routinely vpn using my deskopt but have not installed vpn on my laptop yet. Also of note, the eth0 is my wired connection, which I usually don't use at home and my wireless is eth1. Is that a problem?

I was reading somewhere that the hosts allow line was a range. Hence all hosts between to should be allowed according to that line. Is it wrong? I see you specify which hosts are allowed.

# Samba config file created using SWAT
# from (
# Date: 2005/07/29 06:04:25

# Global parameters
workgroup = R2D2
netbios name = YODA
map to guest = Bad User
username map = /etc/samba/smbusers
server signing = auto
printcap cache time = 750
printcap name = cups
add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
logon path = \\%L\profiles\.msprofile
logon drive = P:
logon home = \\%L\%U\.9xprofile
domain master = No
wins server = eth0:, eth0:
ldap ssl = no
printer admin = @ntadmin, root, administrator
hosts allow =
cups options = raw
include = /etc/samba/dhcp.conf
domain logons = No
passdb backend = smbpasswd
security = user

comment = Home Directories
valid users = %S
read only = No
inherit acls = Yes
browseable = No

comment = Network Profiles Service
path = %H
read only = No
create mask = 0600
directory mask = 0700
store dos attributes = Yes

comment = All users
path = /home
read only = No
inherit acls = Yes
veto files = /aquota.user/groups/shares/

comment = All groups
path = /home/groups
read only = No
inherit acls = Yes

comment = All Printers
path = /var/tmp
create mask = 0600
printable = Yes
browseable = No

comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin, root
force group = ntadmin
create mask = 0664
directory mask = 0775

comment = Kai Home
inherit acls = Yes
path = /home/kai/
read only = No


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
samba client Access denied unable to connect Systest7 Linux - Networking 11 12-12-2010 08:45 PM
Windows XP unable to connect to linux with Samba luthree Linux - Networking 13 03-10-2007 06:54 AM
Unable to connect to SAMBA host, will retry in 60 seconds. Sloppyunderfoot SUSE / openSUSE 0 10-27-2005 10:36 AM
Samba:Unable to connect shares from win2k client vikram_cvk Linux - Software 8 03-22-2004 12:14 AM
Samba Printer (Unable to Connect) ghight Linux - Software 8 07-17-2003 07:05 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:02 AM.

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