LinuxQuestions.org
Review your favorite Linux distribution.
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-05-2003, 09:31 AM   #1
pratik
LQ Newbie
 
Registered: Jun 2003
Location: New Delhi, India
Distribution: 8.0 Psyche 2.4.18-14 kernel
Posts: 5

Rep: Reputation: 0
Angry samba issue: connecting from win machine


Hi,

I've been having some trouble connecting to an RH 8.0 host (kernel 2.4.18-14) running Samba 2.2.5 from Win machines on a TCP/IP network with static IPs (DNS, DHCP, WINS, NFS not enabled).

I have tried out various smb.conf options -- either Network Neighbourhood goes dead on the Win machines or I get only the administrative share, \\host\IPC$ (that's with the simplest smb.conf file). However, no extant password on the host seems to work on this share. No pwd, no connect.

At the same time, the config supports hyperterminal connections perfectly. That works fine for me, but this network will be used by people familiar only with Windows, i.e. with Network Neighbourhood, and accustomed to editing files over a network. Any idea how I can make it friendly to them?

Incidentally, I'd love to see some smb.conf files which are running a similar network. Might work on mine with basic changes.

Thanks in advance for any help.

Pratik
 
Old 08-05-2003, 09:44 AM   #2
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
Did you change the local permissions on the direstory you want to share to allow users to connect. Also did you add users to samba? Did you allow encrypted passwords?
 
Old 08-05-2003, 10:58 AM   #3
TrashCanMan
Member
 
Registered: Jul 2003
Location: Midlands, UK
Distribution: Slackware 10, Mandrake 9.2, Knoppix, Win XP
Posts: 62

Rep: Reputation: 15
I always write this, I know, but - can you ping the server from each machine in the network? can the server ping each machine? This is important. If they can't ping each other then it's not Samba.

Good luck
 
Old 08-06-2003, 03:12 AM   #4
notorious_guy
LQ Newbie
 
Registered: Apr 2002
Location: Delhi, India
Distribution: RH 7.1
Posts: 13

Rep: Reputation: 0
Hi Pratik !!

if network neighbourhood is not working then u go to start->run \\RAVI_SAMBA (this is my netbios specified in my smb.conf)

It will open the window inside Linux workgroup but before that it will ask for the uname and pwd.

if no uname password is working then main problem is that u haven't added and enabled the users for samba with following commands

$ adduser test # to add test as linux user
$ passwd test # to set the password for linux
$ smbpasswd -a test # to add test as samba user. it will ask for password
$ smbpasswd -e test # enable the test as samba user

**where test is a user.
second option : check if u have specified

passwd program = /usr/local/samba/bin/smbpasswd
log file = /usr/local/samba/var/samba.log %m


third thing option if u have done this and uname pwd still not working then plz log off from win box and log on again. and then access say

Following is my conf file.
all the best
Ravi
[global]
workgroup = LINUX
netbios name = RAVI_SAMBA
server string = Samba Server %v
encrypt passwords = Yes
root directory = /
passwd program = /usr/local/samba/bin/smbpasswd
log level = 2
log file = /usr/local/samba/var/samba.log %m

[programs]
path = /home/public
invalid users = james
valid users = raju
read only = No

[pub]
path = /home/ravinder
read only = No

[next]
path = /home/test_dir
username = root
read only = No


read only = No
 
Old 08-06-2003, 03:49 AM   #5
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: Custom Debian Live ISO's
Posts: 1,291

Rep: Reputation: 62
Also check the host allow in the smb.conf

e.g.

host allow 192.168.1. 127.
these will let a range o f ip's to connect including the loopback,
of course yours may differ from my example, just change it to suit your network
 
Old 08-06-2003, 11:49 PM   #6
pratik
LQ Newbie
 
Registered: Jun 2003
Location: New Delhi, India
Distribution: 8.0 Psyche 2.4.18-14 kernel
Posts: 5

Original Poster
Rep: Reputation: 0
Friends, thanks for the suggestions. here are the answers:
TrashCanMan: pinging fine both to and from host.
tangle: dirs permissions are OK, users added (but I didn't know how to test) and encrypted pwds enabled.
fotoguy: hosts allow includes 192.168.x.x and loopback.
Ravi: thanks a lot for your file. i see one option (password program) is missing in mine. Will try it out with fingers and toes crossed.
 
Old 08-07-2003, 03:36 AM   #7
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: Custom Debian Live ISO's
Posts: 1,291

Rep: Reputation: 62
Ok, that's a few possibilties of the list.

I had trouble getting mine to connect, i found out i had not put the right addresses in the host allow.

If you still have trouble, try turning off the iptables and see if you can connect then. That's another one that can cause some grief.
 
Old 08-07-2003, 04:42 AM   #8
FireAge
LQ Newbie
 
Registered: Jun 2002
Location: Groningen, The Netherlands
Distribution: Redhat 7.3
Posts: 13

Rep: Reputation: 0
Are you using swat to configure the box?

If not try it, it's good.

Steps I needed to take to get it to work, but only as to create a general access share:

create a directory in the linux machine
create the user smbuser on the linux machine
create the group smbusers on the linux machine
chown the directory to smbuser:smbusers

Now start swat from any pc that can connect and add the proper share.
Set the global security to share.
Set the guest account to smbuser.
Set the host.allow in swat to 192.168.1. or something like that.
Set the host.deny to ALL

this should work.
from my conf:

[global]
workgroup = 1
netbios name = AQUASERVER
server string = Samba Server
interfaces = eth1
security = SHARE
log file = /var/log/samba/%m.log
max log size = 0
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = No
hosts allow = 192.168.10.
hosts deny = ALL
printing = lprng

hope this helps, you can also try this site:
http://dcfonline.sfu.ca/ying/linux/samba/toc.html

is has a samba step by step guide
 
  


Reply


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 internal error when connecting to xp machine true_atlantis Linux - Software 3 08-28-2005 11:29 PM
Struggling with Samba CUPS win printer issue VBAHole22 Linux - Newbie 13 06-18-2004 08:47 PM
Samba -> WIn XP file share issue Starblade Linux - Software 1 10-26-2003 06:03 AM
Problem browsing a samba machine from Win c0p0n Linux - Networking 2 08-02-2003 03:26 PM
printer installation on win machine through samba kmccuddy Linux - Networking 7 11-07-2002 04:41 PM

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

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