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


  Search this Thread
Old 03-11-2008, 01:27 AM   #1
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
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 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 range. Windows Workgroup name is "workgroup". Netmask is My machine is, and and is allowed to access the share on my machine called "share". My Linux machine shows up in the Windows network as "stefan"


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

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

/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 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...


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 > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:50 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration