LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 10-09-2006, 08:40 PM   #1
va3dxs
LQ Newbie
 
Registered: Feb 2006
Posts: 27

Rep: Reputation: 15
samba


I'm sure I'm opening myself to rtfm, but I have tried and failed...

I have one machine running 10.2, another newly loaded with 11.0 and yet another with windoze 2000. I did have samba running quite fine on the 10.2 machine, but I did something that broke it, and now I can't get it to work on either one. (That something was upgrading W2000 and finding that it no longer allowed a 2 letter workgroup, and thinking it was something wrong with samba and messing with it. That may teach me something.)

The symptoms are: I can see either machine on the Windows network, and when I try to open them I see folders for homes and Printers. However, when I try to open the homes folder from windows, I get 'homes is not accessible the network name cannot be found', and when I try to do the same from either SW box I get 'The file or folder smb://radio2/homes does not exist'.

testparm gives the following result:

cr@radio2:~$ testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
workgroup = CRCOM
server string = Samba Server
log file = /var/log/samba.%m
max log size = 50
acl compatibility = winnt
server signing = auto
preferred master = No
domain master = No
ldap ssl = no
hosts allow = 192.168.1., 127.

[homes]
guest ok = Yes
case sensitive = No
strict locking = No
msdfs proxy = no

I am not sharing printers on any machine, and the configuration on the 11.0 machine is similar.

Would be very grateful for some help.

Thanks
 
Old 10-09-2006, 10:25 PM   #2
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,375

Rep: Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754
I find that Samba problems are usually related to usernames, passwords and permissions. What did you change on your previously working setup?
 
Old 10-09-2006, 10:29 PM   #3
va3dxs
LQ Newbie
 
Registered: Feb 2006
Posts: 27

Original Poster
Rep: Reputation: 15
I hate to admit it, but I can't remember - I messed around....

I thought that when I did the new install on the other machine using 11.0 it would all work again and I'd be able to fix the first one, but that didn't happen.
 
Old 10-18-2006, 08:40 PM   #4
slackwareserver
LQ Newbie
 
Registered: Oct 2006
Location: Baie-Comeau Quebec canada
Distribution: Slackware 11
Posts: 8

Rep: Reputation: 0
here is how to set it up
first copy this in your /etc/samba/smb.conf

[global]
workgroup = yourworkgroup
netbios name = machinename
encrypt passwords = Yes
log file = /var/log/samba/%m.log
LOG LEVEL = 0
max log size = 10000
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
os level = 164
preferred master = True
dns proxy = No
wins support = Yes
unix charset = ISO8859-1
dos charset = 850

[homes]
comment = Home Directories
valid users = %S
read only = No
create mask = 0664
directory mask = 0775
browseable = No


[DATA]
comment = publicly available share
path = /data
create mask = 0777
directory mask = 0777
public = yes
writable = yes
only guest = Yes

then bee sure to have a windows user in your win2k machine with password
add the same user in your slackware box with (adduser)
then do smbpasswd -a theusernameofwin2kuser
it will ask for password use the same as win2k box
test config with testparm to be sure there is no spelling probs
restart samba with: /etc/rc.d/rc.samba restart
et voila! you should be able to go to homes directories with your windows box.

Last edited by slackwareserver; 10-18-2006 at 08:43 PM.
 
Old 10-19-2006, 09:21 AM   #5
va3dxs
LQ Newbie
 
Registered: Feb 2006
Posts: 27

Original Poster
Rep: Reputation: 15
Smile

THANK YOU so much!

It all now works exactly perfectly.
 
Old 10-19-2006, 11:23 AM   #6
evilDagmar
Member
 
Registered: Mar 2005
Location: Right behind you.
Distribution: NBG, then randomed.
Posts: 480

Rep: Reputation: 31
In the future, save yourself a lot of hassle by editing /etc/inetd.conf, and uncommenting the line for 'swat', then issuing `killall -HUP inetd`. From this point on you can configure Samba using SWAT by pointing your browser at http://localhost:901.
 
  


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 domain member server (DMS) group permissions in network with a Samba PDC srosa Linux - Networking 0 05-01-2006 05:55 PM
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 - Distributions > Slackware

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