LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-03-2009, 04:56 AM   #1
netpumber
Member
 
Registered: Sep 2007
Location: In My Box
Distribution: Arch Linux
Posts: 423

Rep: Reputation: 33
Some samba help..


Hi!!

So.. I have a pc with slackware 12.2 and i setup there the samba . Here is the configuration :

Code:
#======================= Global Settings =====================================
[global]

[global]
workgroup = Network
netbios name = Slax
server string = Slacware Server
log file = /var/log/samba/log.%m
max log size = 1000
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
interfaces = lo eth0
bind interfaces only = yes
hosts allow = 127.0.0.1 192.168.1.0/255
hosts deny = 0.0.0.0/0
security = user
guest ok = yes
null passwords = yes
encrypt passwords = true
invalid users = root
And here are the shares:

Code:
[Mp3]
comment = Mp3
path = /media/disk/Mp3
writeable = no
read only = yes
force user = samba
guest ok = yes
browseable = yes
public = yes
create mode = 0766
Now my sister has a computer with 9.10 ubuntu. I go to Places --> Network and then double click on SLAX share. This error occurs :
Quote:
Unable to mount location
Failed to retrieve share list from server
Ok i say.. lets try from terminal..

Quote:
$findsmb

*=DMB
+=LMB
IP ADDR NETBIOS NAME WORKGROUP/OS/VERSION
---------------------------------------------------------------------
192.168.1.100 SLAX [ NETWORK ]
192.168.1.103 K4TE +[NETWORK] [Unix] [Samba 3.2.5]

then
Quote:
$smbclient -L SLAX

protocol negotiation failed: NT_STATUS_INVALID_NETWORK_RESPONSE
Any ideas on whats going on ?

Thanks in advance..!
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 11-03-2009, 08:16 AM   #2
slackass
Member
 
Registered: Apr 2006
Location: SE Texas
Distribution: Slack64-15.0
Posts: 910

Rep: Reputation: 90
I'm not real sharp on samba but I did something stupid back when Slack64 -C first came out that gave me a similar result.
I set up a new system to try out Slack64 -C and without thinking I gave it the same “Hostname” as the server. In my case all I had to do was just give the client a different hostname. I'd rather not mention how long it took me to figger it out tho. .. :-)

Eric's Samba Guide:
http://alien.slackbook.org/dokuwiki/...lackware:samba
 
Old 11-03-2009, 08:24 AM   #3
disturbed1
Senior Member
 
Registered: Mar 2005
Location: USA
Distribution: Slackware
Posts: 1,133
Blog Entries: 6

Rep: Reputation: 224Reputation: 224Reputation: 224
What happens with -
mount -o guest -t cifs //Slax/Mp3 /media/Mp3

or use the IP instead of host name.

Quote:
force user = samba
The server Slax does have a user "samba" right
 
Old 11-03-2009, 10:21 AM   #4
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,367

Rep: Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748
Quote:
$smbclient -L SLAX

protocol negotiation failed: NT_STATUS_INVALID_NETWORK_RESPONSE
Do you have any firewalls running? Samba requires ports 137,138,139 and 445. (I do not remember the exact protocols (tcp/udp) on each port).

Last edited by allend; 11-03-2009 at 10:24 AM.
 
Old 11-03-2009, 12:15 PM   #5
netpumber
Member
 
Registered: Sep 2007
Location: In My Box
Distribution: Arch Linux
Posts: 423

Original Poster
Rep: Reputation: 33
I don't have any software firewall installed..Only the router..
 
Old 11-03-2009, 01:02 PM   #6
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Well...

Did you ever run "testparm" to test your Samba server's configuration for errors?
Quote:
hosts allow = 127.0.0.1 192.168.1.0/255
That is an invalid netmask there. It will basically block traffic for all hosts except for localhost.
This is better:
Code:
hosts allow = 127.0.0.1 192.168.1.0/255.255.255.0
Eric
 
3 members found this post helpful.
Old 11-04-2009, 12:26 PM   #7
netpumber
Member
 
Registered: Sep 2007
Location: In My Box
Distribution: Arch Linux
Posts: 423

Original Poster
Rep: Reputation: 33
Ok i add this :

hosts allow = 127.0.0.1 192.168.1.0/255.255.255.0

And all gone right..
 
1 members found this post helpful.
  


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/Cups print sharing problems (/var/spool/samba files) Gates1026 Linux - General 9 06-23-2013 01:33 AM
Newbie: Samba under Ubuntu - default config locations don't match samba.org mdutch Ubuntu 0 08-28-2009 02:38 PM
Trouble mounting Samba share from Windows Mobile 6.1 - samba weirdness cleidh_mor Linux - Server 0 09-21-2008 02:43 PM
I need the content from thegoldenear.org/toolbox/unices/samba/samba-setup.html rtg2001 Linux - Networking 1 08-05-2004 05:54 PM
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 - Distributions > Slackware

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