LinuxQuestions.org
Help answer threads with 0 replies.
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 10-01-2004, 02:08 PM   #1
Baryonic Being
Member
 
Registered: Mar 2004
Distribution: Arch
Posts: 139

Rep: Reputation: 15
I Need Help With Samba


Please help me. I am getting a bit frustrated about the fact that my local area network is often non-functional, and the Samba documentation does not seem to be helping me.

I only want to be able to access all the files on four computers from any one computer, and with Linux this has proven to be very difficult. I have Samba 2.2.8a and whenever I try to browse shares on a Windows machine from Linux I get the error 'SMB connection failed'. I have tried it from the command line using mount -t smbfs, I've tried it with Konqueror and I've tried it with LinNeighborhood with the same result.

I have checked that /etc/init.d/samba has been started and that the smbd and nmbd daemons are running.

This used to work in the past and I don't know why it has suddenly stopped working.

I should also say that I have never in over a year's time of using Linux been able to browse shares on a Linux system from another Linux system. They just don't show up. Any ideas?

Additionally, can anyone answer the following question for me...?
Suppose computer A is running Linux and computer B is running Windows, but it also has an installation of Linux on it too.
Using computer A, would it be possible to mount a Linux partition on computer B, even though it is running Windows?

Please help!
Thanks.
 
Old 10-01-2004, 02:57 PM   #2
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
What does your smb.conf look like? Have you created the proper users? Is there a firewall on any of the machines?
good luck.
 
Old 10-01-2004, 03:08 PM   #3
Baryonic Being
Member
 
Registered: Mar 2004
Distribution: Arch
Posts: 139

Original Poster
Rep: Reputation: 15
smb.conf says:

[global]
security = share
domain master = no
preferred master = no
workgroup = WORKGROUP
max protocol = NT

[homes]

[GNTLMNSDCMNT]
path = /home/gentoolman/Gentoolman's Documents
comment = /home/gentoolman/Gentoolman's Documents
guest ok = yes
wide links = no

[Epsy]
printable = yes
printer name = Epsy

[printers]
printable = yes
printer name = Epsy


What do you mean by 'creating the proper users'?

Norton Internet Security is installed on the Windows machines. I haven't a clue whether my Gentoo Linux has a firewall; how would I find out?

Thanks.
 
Old 10-01-2004, 03:31 PM   #4
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Quote:
What do you mean by 'creating the proper users'?
You need a user account on the windows machine, with a matching linux user, and samba user all with the same name and password.

Quote:
Norton Internet Security is installed on the Windows machines.
Have you tried turning it off, or at least making provisions for your internal lan?

Quote:
I haven't a clue whether my Gentoo Linux has a firewall; how would I find out?
iptables -L should list any rules that exist. I should have asked this earlier, what is the ouput from smbclient -L ip address of windows machine? On another note, you could add the netbios name option to your global section.

netbios name = whatever you want here

In addition to that you'll need this line under global.

encrypt passwords = yes

Another thing you might want to do is add the windows machine to /etc/hosts.

xxx.xxx.xxx.xxx name of windows machine

Where xxx.xxx.xxx.xxx is the windows ip address. Hope something gets you going.
good luck.
 
Old 10-01-2004, 04:04 PM   #5
Baryonic Being
Member
 
Registered: Mar 2004
Distribution: Arch
Posts: 139

Original Poster
Rep: Reputation: 15
Quote:
You need a user account on the windows machine, with a matching linux user, and samba user all with the same name and password.
Sorry to be so technically illiterate but I just don't know how to do that.

Quote:
Have you tried turning it off, or at least making provisions for your internal lan?
Yes - I tried to configure it to allow LAN connections, but I suppose I ought to try with it switched off. I'm a little afraid to do that, though, considering how vulnerable Windows is.

iptables -L says this:

FATAL: Module ip_tables not found.
iptables v1.2.9: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.


And smbclient -L //10.0.0.5 returns:

added interface ip=10.0.0.5 bcast=10.0.0.255 nmask=255.255.255.0
session request to 10.0.0.6 failed (Called name not present)
session request to 10 failed (Called name not present)
Password:
Domain=[PANTHER] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

Sharename Type Comment
--------- ---- -------
My Documents Disk
IPC$ IPC Remote IPC
print$ Disk Printer Drivers
SharedDocs Disk
D Disk
ADMIN$ Disk Remote Admin
C$ Disk Default share
LexmarkZ Printer Lexmark Z700-P700 Series
Printer Printer EPSON Stylus Photo 810 Series
NET&WORK (C) Disk

Server Comment
--------- -------
ASUS
TUX Samba 2.2.8a

Workgroup Master
--------- -------
PANTHER ASUS


I ran those commands as root, by the way.

I might try that netbios thing later too.
Thanks for your help.
 
Old 10-01-2004, 04:12 PM   #6
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Quote:
Sorry to be so technically illiterate but I just don't know how to do that.
No worries mate, It's a little different depending on your windows version. Use the windows help menu, go to start>help, there should be a tab at the top that says index, select it. In the text box below type in user accounts. There should be a walk through for adding a user.

I've got to go for the evening, I'll be back tomorrow, if no one else picks this up.
good luck.
 
Old 10-01-2004, 04:57 PM   #7
mangolicious
Member
 
Registered: Sep 2004
Location: Nowhere Special (if you don't get it, rent Blazing Saddles)
Distribution: Gentoo Linux
Posts: 63

Rep: Reputation: 15
*moved*

Last edited by mangolicious; 10-02-2004 at 10:50 PM.
 
Old 10-02-2004, 05:19 AM   #8
Baryonic Being
Member
 
Registered: Mar 2004
Distribution: Arch
Posts: 139

Original Poster
Rep: Reputation: 15
Thank you - I have now had success in accessing a Windows share from Linux. I think the problem was probably the firewall (Norton) on the Windows machines.
 
Old 10-02-2004, 12:22 PM   #9
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Quote:
Originally posted by Baryonic Being
Thank you - I have now had success in accessing a Windows share from Linux. I think the problem was probably the firewall (Norton) on the Windows machines.
Glad you got it sorted. You should be able to configure the firewall for lan sharing and still protect the external interface. Have a look at symantic for faq's, how to's, etc.
good luck.


Quote:
im also having troubles with samba. here's what i get if I try smbclient or mount -t smbfs:


Code:
Password:
Anonymous login successful
Domain=[WORKGROUP] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
tree connect failed: NT_STATUS_ACCESS_DENIED

EVEN THOUGH i made SURE that anonymous login was possible on the shared directory's properties menu under 'sharing' what the HELL is going on?
I suggest staring your own thread with steps you taken, the complete problem, and any other pertinent info. Your post may get lost in this thread as this thread for all practical purposes has been solved.
good luck.
 
  


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/Cups print sharing problems (/var/spool/samba files) Gates1026 Linux - General 9 06-23-2013 01:33 AM
Samba - Connecting from WinXP Pro to Samba running on Debian critical Linux - Networking 1 02-03-2005 09:36 AM
I need the content from thegoldenear.org/toolbox/unices/samba/samba-setup.html rtg2001 Linux - Networking 1 08-05-2004 05:54 PM
Samba: Authenticate Linux-Clients in Samba Domain & Mount mule Linux - Software 0 12-10-2003 01:21 AM
when i restart SAMBA,it says:stop samba failed,start SAMBA OK! whepin Linux - Networking 3 12-26-2001 05:54 AM

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

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