LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-11-2008, 01:27 AM   #1
processguide
LQ Newbie
 
Registered: Feb 2008
Posts: 8

Rep: Reputation: 0
Smile samba and microsoft workgroup not able connect


Whenever i tried to open samba shares in linux server machine it throws error "Unable to find any workgroups in your local network". should i have to reconfigure samba files r any changes has to do in configuration files? help
 
Old 03-11-2008, 01:35 PM   #2
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,540

Rep: Reputation: 101Reputation: 101
In "vanilla" guise it is unlikely that your system wil play nice in a Windows network.

You need to configure /etc/samba/smb.conf to look something like what I provide below.

My 2.6.18.1 FC3 system works nice with the other Windows machines in the office. Basically, all you need to do is make sure your machine's IP range and workgroup is correctly setup (as with Windows itself) then create a share folder on your disk somewhere, point samba to it, and start it up...

Here's my smb.conf. Our network is in the 10.xxx.xxx.xxx range. Windows Workgroup name is "workgroup". Netmask is 255.255.255.0. My machine is 10.0.0.8, and 10.0.0.7 and 10.0.0.9 is allowed to access the share on my machine called "share". My Linux machine shows up in the Windows network as "stefan"

Code:
[global]

netbios name = stefan
workgroup = WORKGROUP
security = share
log file = /var/log/samba.log
log level =  1
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=16384 SO_SNDBUF=16384
wins support = yes
domain logons = no
logon drive = f:
logon home = \\stefan\%U
os level = 99
preferred master = yes
local master = yes
hosts allow = 10.0.0.7 10.0.0.9
encrypt passwords = yes
browseable = yes
lanman auth = yes
lm announce = yes

[shared]
path = /mnt/win/shared
guest ok = yes
writeable = yes
create mode = 0666
directory mode = 0777
browseable = yes
public = yes
Note that you'll first need to compile and install samba to get the /etc/samba entry in you etc folder. Once it is there, backup the smb.conf file there and replace with something similar to the above. Also copy the smb.conf file to /usr/local/samba/lib/smb.conf, and then do as root

Code:
/usr/local/samba/sbin/smbd -D
/usr/local/samba/sbin/nmbd -D
to start up Samba with these parameters. Then, if the rest of your Linux box's networking setup is ok (LAN card working, cable is plugged in, etc) you -should- be able to get into the share on your machine from a Windows machine on the same network, under the same netmask and in the same workgroup.

At least, the above works for me with FC3 with a 2.6.18.1 kernel. Note that I also compiled by samba instance by hand, and that I did NOT use a package (.rpm or .deb) to install samba...
 
  


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
smb4k failing to connect to windows workgroup fitzy85 Linux - Software 0 05-29-2004 01:13 PM
Samba with MS workgroup Ahuka Mandriva 2 09-20-2003 11:17 AM
Trying to connect to my windows WORKGROUP... cj_thomas Linux - Networking 6 05-26-2003 09:53 AM
help with samba workgroup Twistedpenguin Linux - Networking 1 03-04-2003 04:36 AM
Is there a way to connect a pc to linux through just a workgroup and not a domain? duel Linux - Networking 1 09-21-2001 11:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:50 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration