LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 09-21-2003, 11:52 AM   #1
chopp
Member
 
Registered: Sep 2003
Location: AB. Canada
Distribution: Slackware
Posts: 126

Rep: Reputation: 16
Samba & R.H.9, Win2k


Ok, here it is. I have spent day's reading up on samba networking.
I just seem to be going in circle's here with no result's.
There has been a few time's from the window's box that the share's have shown up in my network place's. But usually it's Home is not accessable.
Do the share's on my linux box have to be mounted, if so how do I go about that.
Here is my smb.conf:
# Samba config file created using SWAT
# from 0.0.0.0 (0.0.0.0)
# Date: 2003/09/21 01:15:46

# Global parameters
[global]
log file = /var/log/samba/log.%m
ldap ssl = no
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
username map = /etc/samba/smbusers
hosts allow = 192.168.1.1/255.255.255.0
encrypt passwords = yes
wins support = true
dns proxy = No
default = downloads
remote announce = 192.168.1.101/HOME
workgroup = HOME
os level = 20
valid users = susan
security = user
max log size = 50

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No

[downloads]
comment = susan
path = /home/chopper/downloads
read only = No
Thank's in advance for any help with this.
chopp

thought this might help also. What does the 3 collision's in eth0 mean?
[root@localhost root]# /sbin/ifconfig
eth0 Link encap:Ethernet HWaddr 00:C0:F0:1C:FF:FF
inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8642 errors:0 dropped:0 overruns:0 frame:0
TX packets:8646 errors:0 dropped:0 overruns:0 carrier:0
collisions:3 txqueuelen:100
RX bytes:6901143 (6.5 Mb) TX bytes:1413698 (1.3 Mb)
Interrupt:3 Base address:0x300

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:36670 errors:0 dropped:0 overruns:0 frame:0
TX packets:36670 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3064565 (2.9 Mb) TX bytes:3064565 (2.9 Mb)

Last edited by chopp; 09-21-2003 at 02:23 PM.
 
Old 09-21-2003, 10:28 PM   #2
LGMike
LQ Newbie
 
Registered: Sep 2003
Location: USA
Distribution: Mandrake
Posts: 22

Rep: Reputation: 15
no, to be seen on the Windows box, your shares do not necessarily have to be mounted on your Linux box
are you always logged in as susan? that username is the only one that can access the shares (valid users=susan)

In networking, a collision is when 2 hosts on a network attempt to send a packet simultaneous causing a "collision" in which two electrical charges collide, destroying some or all of the data in one or both of the packets. A host detects this and sends a jamming signal which tells all hosts on the network to stop sending, they then wait for random periods of time before sending again. This is just a minor physical problem, nothing to worry about, it happens!
I'm *almost* 100% positive this is what Linux is referring to, but someone correct me I'm wrong.

If I'm not mistaken, SAMBA runs under TCP ports 137-139, so those collisions would only slow your connection down slightly (and at only 3 collisions, you wouldn't even notice the difference in time!), not prevent something from being transferred.
 
Old 09-21-2003, 10:31 PM   #3
msh8r
Member
 
Registered: Jul 2001
Location: Houston, TX
Distribution: RedHat, CentOS, Fedora
Posts: 48

Rep: Reputation: 15
did you add the smb account for susan (or any other user that wants to connect)?

I believe the syntax is smbuseradd (or smbadduser - haven't done it in a while)
see the man page for details

Another question:

does your firewall let smb through? (turn it off "service iptables stop" and see if you can connect then - of course then fix the firewall and turn it back on.)
 
Old 09-21-2003, 11:26 PM   #4
chopp
Member
 
Registered: Sep 2003
Location: AB. Canada
Distribution: Slackware
Posts: 126

Original Poster
Rep: Reputation: 16
I added user susan with samba-config, and also with swat. The window's pc is allway's logged in as susan. I also tried allready shutting down iptables. I forgot to mention that I am also behind a linksys router. I forwarded port's 135-140 to the win pc.
I can also ping it from the linux box, and can ping the linux box from window's.
Anymore ideas anyone?
Thank's for your help thus far.

chopp
 
Old 09-22-2003, 08:11 AM   #5
msh8r
Member
 
Registered: Jul 2001
Location: Houston, TX
Distribution: RedHat, CentOS, Fedora
Posts: 48

Rep: Reputation: 15
If both your machines (windows and linux-samba) are on the same subnet, i.e. behind your Linksys router) then you don't have to forward any ports to the windows box (actually - you shouldn't: Blaster, etc....)
By firewall I meant the firewall that your Linux box comes with - usually iptables. It controls the traffix in and out of your machine.
For Samba to work you have to allow that traffic.
For quick testing you can turn iptables off, and see if that makes any difference: "service iptables stop"

If that was the case, modify your firewall rules (/etc/sysconfig/iptables) before turning it back on "service iptables start".
Do a google for "samba iptables" on the howto.

Redhat comes with a program called lokkit that helps with setting up (simple) firewall rules.
 
Old 09-22-2003, 06:23 PM   #6
chopp
Member
 
Registered: Sep 2003
Location: AB. Canada
Distribution: Slackware
Posts: 126

Original Poster
Rep: Reputation: 16
I shut off iptables a few time's and it is still a no go. I explored my linux cd for the lokkit rpm, and tried a install. It said it was allready installed. I can't seem to execute it from anywhere though.
Does anyone have any more suggestion's on what I can check to get this network up and running?

>chopp
 
Old 09-23-2003, 11:43 AM   #7
msh8r
Member
 
Registered: Jul 2001
Location: Houston, TX
Distribution: RedHat, CentOS, Fedora
Posts: 48

Rep: Reputation: 15
Ok,if iptables has been turned off than lets look at Samba itself:

on the Linux machine run:

smbclient -U susan -L localhost
(enter susan's password when promted.)

What does it return?
 
Old 09-23-2003, 02:20 PM   #8
chopp
Member
 
Registered: Sep 2003
Location: AB. Canada
Distribution: Slackware
Posts: 126

Original Poster
Rep: Reputation: 16
bash-2.05b$ smbclient -U susan -L localhost
Password:

Sharename Type Comment
--------- ---- -------
/home/chopper Disk
IPC$ IPC IPC Service (Samba Server)
ADMIN$ IPC IPC Service (Samba Server)
lp0 Printer

Server Comment
--------- -------

Workgroup Master
--------- -------
HOME LOCALHOST

bash-2.05b$ testparm:
Load smb config files from /etc/samba/smb.conf
Processing section "[printers]"
Processing section "[/home/chopper/downloads]"
Loaded services file OK.
WARNING: You have some share names that are longer than 8 chars
These may give errors while browsing or may not be accessible
to some older clients
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

# Global parameters
[global]
workgroup = HOME
server string = Samba Server
log file = /var/log/samba/log.%m
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = No
wins support = Yes
valid users = susan
admin users = root

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No

[/home/chopper/downloads]
path = /tmp

bash-2.05b$ testparm /etc/samba/smb.conf client 192.168.1.100
Load smb config files from /etc/samba/smb.conf
Processing section "[printers]"
Processing section "[/home/chopper/downloads]"
Loaded services file OK.
WARNING: You have some share names that are longer than 8 chars
These may give errors while browsing or may not be accessible
to some older clients
Server role: ROLE_STANDALONE
Allow connection from client (192.168.1.100) to printers
Allow connection from client (192.168.1.100) to /home/chopper/downloads

net view \\localhost....on the win comp. get's:
system error 52 has occurred
A duplicate name exists on the network?

bash-2.05b$ smbclient -L localhost
Password:
session setup failed: NT_STATUS_LOGON_FAILURE

susan is what I supplied for a password here?

This is driving me freaking crazy!

chopp
 
Old 09-23-2003, 05:47 PM   #9
msh8r
Member
 
Registered: Jul 2001
Location: Houston, TX
Distribution: RedHat, CentOS, Fedora
Posts: 48

Rep: Reputation: 15
Don't give up just yet - no reason to pull out your hair :-)

There are some things wrong woth your setup, but first a quick explanation:
####
smbclient -U susan -L localhost:
-U username
-L hostname

(run "man smbclient" for all the other options)

If you don't issue -U it will default to the current user (you@yourlinuxbox)

As you can see from the output, there is a share available:

/home/chopper Disk

That's good.


Now your "testparm" makes me wonder:
what is with [/home/chopper/downloads]?

The section should look like this:

[chopper]
comment = choppers files
path = /home/chopper
read only = no
guest ok = no
browseable = yes

and so on...
You can not have a "/" in the share name (between the [ ])
Fix this in /etc/samba/smb.conf , then run testparm again.

What about this:
"net view \\localhost....on the win comp. get's:
system error 52 has occurred
A duplicate name exists on the network?"

Make sure that all machines on your network have unique names.
(Does your Windows machine have the same name as your Linux? - shouldn't!)

Hope this helps, keep me posted.
 
Old 09-23-2003, 08:47 PM   #10
chopp
Member
 
Registered: Sep 2003
Location: AB. Canada
Distribution: Slackware
Posts: 126

Original Poster
Rep: Reputation: 16
now when I do the smbclient -U susan -L localhost
I get the NT_STATUS_LOGON_FAILURE again.

here is my testparm result's. I put in the changes you suggested manually, but when I went into Webmin, it didn't show the change's.
I have been playing with both Webmin, and Swat.
Do you think I should give up on both of them, and just use Samba Config?

[root@localhost root]# testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[printers]"
Processing section "[home]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

# Global parameters
[global]
workgroup = HOME
server string = samba server
username map = /etc/samba/smbusers
log file = /var/log/samba/log.%m
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = No
wins support = Yes
ldap ssl = no
remote announce = 192.168.1.101/HOME
path = /home/chopper
username = susan
valid users = susan
guest ok = Yes
hosts allow = 127.0.0.1, 192.168.1.101, 192.168.1.100

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No

[home]
path = /home
read only = No


thank's for sticking with me here msh8r.

>chopp
 
Old 09-23-2003, 08:56 PM   #11
msh8r
Member
 
Registered: Jul 2001
Location: Houston, TX
Distribution: RedHat, CentOS, Fedora
Posts: 48

Rep: Reputation: 15
not a problem - I like to help when I can.

Can you send me your /etc/samba/smb.conf? (use the email button below) - I have to see the whole thing.

My experience with webmin/swat etc. vs. editing the text file:
If you mix them, things can get screwed up - I prefer the plain text editing. Call me old-fashioned - but that has worked best for me so far.

We will get this fixed :-)
 
Old 09-24-2003, 04:17 AM   #12
chopp
Member
 
Registered: Sep 2003
Location: AB. Canada
Distribution: Slackware
Posts: 126

Original Poster
Rep: Reputation: 16
msh8r worked like a charm!
couple of small problem's yet though that I don't understand.

smbclient -U chopper -L localhost
display's the proper output.

smbclient -U susan -L localhost still gave me a:session setup failed: NT_STATUS_LOGON_FAILURE

so I did a ........su
smbpasswd -a susan *******
then tried smbclient -U susan -L localhost...again with the same result's.
So I go to the win box, and everything worked just fine in network neighborhood. Except the Home directories.
With this part of my smb.conf: [homes]
comment = Home Directories
browseable = no
writeable = yes
valid users = %S
create mode = 0664
directory mode = 0775 if I changed browseable to yes, it would also be available right? As it stand's now, I cick on it and get a password prompt, but it won't accept susan's password.

I'm also wondering if there is a way for me to browse the share's on the win box from linux. I do have LinNeighborhood and Xsmbrowser installed. Both of the computer's show up in both program's, but I am unable to browse them.
I thought I could do this through konqueror with something like
smb:\\\? But I can't seem to get anywhere with that.

My end result here is going to be an ftp server, with the file's being on the win. computer.

Thank's again for your help

<chopp>
 
Old 09-24-2003, 06:08 AM   #13
Arenba
Member
 
Registered: Sep 2003
Location: India
Distribution: Red Hat 8
Posts: 51

Rep: Reputation: 16
Hi chopp,
In my case, I gave the same password I used in my win box when I created the smbpasswd. So, disregard this if you have done so already.
For example, if susan's password is zzzzzz in windows, I put the same password for susan when I create her smbpasswd in my linux box.
You can browse windows shares from Linux. The correct syntax is:
smb://computername
I use Nautilus instead of Konqueror, because the latter doesn't work sometimes.
Hope it helps.
 
Old 09-24-2003, 07:48 AM   #14
msh8r
Member
 
Registered: Jul 2001
Location: Houston, TX
Distribution: RedHat, CentOS, Fedora
Posts: 48

Rep: Reputation: 15
Glad I could help you out.

To mount a windows share I mostly use smbmount:

mkdir /mnt/windows (unless it already exists)
smbmount //windowsserver/shareddrive /mnt/windows -o username=windowsusername
 
Old 09-24-2003, 09:28 AM   #15
Arenba
Member
 
Registered: Sep 2003
Location: India
Distribution: Red Hat 8
Posts: 51

Rep: Reputation: 16
Hi msh8r,
I was also wondering how to do a smbmount from a terminal screen. Thanks. I'll try it out.

Arenba
 
  


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 PDC & Win2K Profiles Pimple Linux - Networking 2 01-14-2006 10:43 AM
SuSE9 && Samba && Win2k DaFrEQ Linux - Software 2 01-27-2004 07:45 AM
Samba & Win2k Server hakcenter Linux - Networking 54 07-11-2003 12:11 PM
Samba & Active Directory in Win2k robinhood1995 Linux - General 3 04-13-2002 09:12 PM
Samba & Win2K pro, "network path not found" RedHat123 Linux - Networking 8 02-05-2002 09:57 PM

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

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