LinuxQuestions.org
Visit Jeremy's Blog.
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 08-02-2005, 09:40 AM   #1
PerfectReign
Member
 
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:

http://www.perfectreign.com/stuff/homenet.jpg

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


http://www.perfectreign.com/stuff/samba1.jpg

...then I get...

http://www.perfectreign.com/stuff/samba2.jpg


...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:

http://www.perfectreign.com/stuff/samba3.jpg


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.

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

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

findsmb

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:

[global]

netbios name = stefan
workgroup = GOEDEHOOP10
security = share
log file = /var/log/samba.log
log level = 1
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=16384 SO_SNDBUF=16384
wins support = yes
domain logons = no
logon drive = f:
logon home = \\stefan\%U
os level = 99
preferred master = yes
local master = yes
hosts allow = 196.254.255.10 196.254.255.11 196.254.255.20 196.254.255.30 127.0.0.1 196.254.255.40 196.254.255.50 196.254.255.60 196.254.255.70 196.254.255.80
encrypt passwords = yes
browseable = yes
lanman auth = yes
lm announce = yes

[shared]
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 "//196.254.255.80/shared" 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
PerfectReign
Member
 
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 192.168.0.0 to 255.255.255.0 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 127.0.0.1 (127.0.0.1)
# Date: 2005/07/29 06:04:25

# Global parameters
[global]
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:257.299.34.68, eth0:257.299.222.232
ldap ssl = no
printer admin = @ntadmin, root, administrator
hosts allow = 192.168.0.0/255.255.255.0
cups options = raw
include = /etc/samba/dhcp.conf
domain logons = No
passdb backend = smbpasswd
security = user

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

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

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

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

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

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

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


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
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

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

All times are GMT -5. The time now is 06:54 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