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 12-09-2009, 03:40 AM   #1
Robert S
Registered: Oct 2006
Location: Canberra
Distribution: gentoo, debian
Posts: 40

Rep: Reputation: 15
How do I make samba share available as Windows 7 Homegroup?

I have recently installed Windows 7. I'm running samba 3.0.37 on gentoo. I'd like to be able to access a samba share as part of a Homegroup in Win7. Is such a thing possible or are Homegroups not compatible with samba?
Old 12-09-2009, 12:26 PM   #2
LQ Veteran
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,270

Rep: Reputation: 562Reputation: 562Reputation: 562Reputation: 562Reputation: 562Reputation: 562
This is a copy of what Micor$oft says about Homegroup.

HomeGroup takes the headache out of sharing files and printers on a home network. Connect two or more PCs running Windows 7, and HomeGroup makes it easy to automatically start sharing your music, picture, video, and document libraries with other people in your home.
Looks like it is W-7 to W-7 only.

There is no reason you can not share files and directories on a linux machine with a Win-7 system though. To me it looks like a 'wizard' to make things easier for the technically challenged. I don't think there is any reason W-7 can not share out files to a linux system, assuming the correct software is installed and configured correctly.
1 members found this post helpful.
Old 12-09-2009, 12:55 PM   #3
LQ Newbie
Registered: Dec 2009
Location: india
Distribution: rhel5, Cent OS & fedora
Posts: 2

Rep: Reputation: 0
samba share

u need not be in the same home group to share your samba share with windows if it is in the same network or u r able to ping through routing protocols. u need to search for the samba server through windows search computer options or through network sharing wizard
Old 12-09-2009, 01:00 PM   #4
Registered: Aug 2002
Posts: 17,107

Rep: Reputation: 2196Reputation: 2196Reputation: 2196Reputation: 2196Reputation: 2196Reputation: 2196Reputation: 2196Reputation: 2196Reputation: 2196Reputation: 2196Reputation: 2196
I would also say it is a W7 function only. However, if the workgroup name is the same on all computers you shouldn't have any problems.
Old 01-23-2010, 08:17 PM   #5
Registered: Mar 2005
Distribution: Gentoo, Kubuntu
Posts: 537

Rep: Reputation: 28
According to Issue 81 of "Linux User & Developer", in order to get Windows 7 to work with a Linux samba server some changes need to be made to the Local Security Policy.

Unfortunately, Microsoft, in its wisdom, has not provided the means to do this in the Home Premium edition. Perhaps someone can come up with a registry hack.

Hopefully the Samba development folks can work out a way to connect to a Homegroup.
Old 06-15-2010, 10:31 PM   #6
LQ Newbie
Registered: Jun 2010
Posts: 1

Rep: Reputation: 0
I cannot find a way to share through the Win 7 Homegroup, but I have achieved the same result by using the following steps in Win 7:

1. To be able to login via your network to Win 7, follow these steps:
a. Click on "Start"
b. In the "Search programs and files" box type "gpedit.msc"
c. When the "Local Group Policy Editor" (LGPE) box opens go to:
Windows Settings / Security Settings / Local Policies / Security Options / and locate "Network Security: LAN Manager authentication level" in the right pane.
d. Double click on "Network Security: LAN Manager authentication level" and a properties dialog box will appear
e. In the drop-down menu select "Send LM & NTLM - use NTLMv2 session security if negotiated," apply the changes and quit the LGPE.

2. Check if Windows Live ID Sign In Assistant is installed on your Win 7 Box, if it is uninstall it.

3. Right click on Win 7 folders you want to share, select properties and click on the Share Tab and enable sharing - NOTE: you may need to click on "advanced sharing" and select "Share This Folder."

Hope this works for you, it worked for me.

Last edited by scriber; 06-15-2010 at 10:33 PM.
1 members found this post helpful.
Old 06-21-2010, 01:19 AM   #7
Registered: Mar 2005
Distribution: Gentoo, Kubuntu
Posts: 537

Rep: Reputation: 28
Thanks, but it seems that gpedit.msc is not provided with Home Premium. It would be good if I could acquire it separately (without breaking the license of course). Seriously anti-competitive to make it so difficult to share files.

I've made the registry changes recommended on the Samba site, but my W-7 box still does not see anything but itself.
Old 08-26-2010, 10:52 PM   #8
Registered: Jul 2003
Location: Surabaya - East Java, Indonesia
Distribution: Red Hat, Mandrake, Debian, Knoppix
Posts: 57

Rep: Reputation: 15
Use regedit and edit the following:


under those 2 keys, add the following Value (or modify it if it already exists)

Type : 32-bit DWORD Value
Name : LmCompatibilityLevel
Value: 1

then your Windows 7 will communicate with SAMBA or previous versions of Windows Share without problem.
2 members found this post helpful.
Old 08-27-2010, 08:03 AM   #9
Registered: Mar 2005
Distribution: Gentoo, Kubuntu
Posts: 537

Rep: Reputation: 28
Thanks, but I must be doing something wrong somewhere...
I made the changes to the registry, and updated samba to 3.4.8, but Windows 7 Home Premium still does not see the linux box. I've heard that for an extra $90 or so I can upgrade Windows to include a 'policy editor' or some such which could help, but it's not worth it.

I have a wireless access point with 4 ports for wired connections. Windows is wireless and linux is wired. Is this relevant?
Old 08-27-2010, 08:27 AM   #10
Registered: Feb 2005
Location: Coventry, UK
Distribution: Home: Gentoo x86/amd64, Debian ppc. Work: Ubuntu, SuSe, CentOS
Posts: 343
Blog Entries: 1

Rep: Reputation: 72
Does windows 7 home premium not support the boring old normal file sharing?

I have this enabled and my girlfriends laptop can connect normally, via work groups, as it did in windows XP.


Being wireless shouldn't make any difference.
Old 08-27-2010, 02:52 PM   #11
Senior Member
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 1,957

Rep: Reputation: 300Reputation: 300Reputation: 300Reputation: 300
Win7 has no problems accessing samba shares on a *nix box if you have samba set up correctly, you have samba running on the linux box, you have your smb.conf set up.

If nothing else map a network drive to the linux server on the win7 box. You can't be part of a win7 homegroup but you can be part of a workgroup. If you have folder perms on win7 to allow it your linux box can access the shares on the win7 box.

Post your smb.conf
cat /usr/local/etc/smb.conf
That's where it is on this FreeBSD box. I don't know where gentoo keeps it. Look for it.

You should have as a minimum of something like
workgroup = MYHOME
netbios name = dell123
server string = samba server
security = share

path = /usr/home/username/share
guest ok = yes
read only = no
Read the options for your smb.conf. Then make sure you have something shared.

Post the output of
ps -ax | grep smb
samba has to be running.

Can you ping the linux box? Can you use ssh into it? If you can then you don't have samba set up right. If you can't ping it or log into it remotely, fix that.
Old 09-01-2010, 01:52 PM   #12
LQ Newbie
Registered: Sep 2010
Posts: 1

Rep: Reputation: 0
Thank you, danny_kurniawan!! Your solution worked perfectly for me. One of my clients insists on ordering computer equipment contrary to my recommendations. So they got Windows 7 Home Premium instead of Professional. I couldn't get to to connect to their Samba server, but danny_kurniawan's tip did the trick instantly. It's too bad their stubbornness will cost my customer $200 in fees to me (I've spent 2 hours on this).


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
how to make Vista access samba share bfzhou Linux - Newbie 3 11-26-2008 01:32 PM
Trouble mounting Samba share from Windows Mobile 6.1 - samba weirdness cleidh_mor Linux - Server 0 09-21-2008 02:43 PM
Cannot make SAMBA guest share r/w to world Vanyel Linux - Server 5 08-28-2008 09:25 AM
mount windows share export to samba share -> improve network performance tuning newuser77 Linux - Server 1 07-23-2008 11:28 AM
howto: MAke a symlink to a samba share??? trey85stang Mandriva 1 03-14-2004 05:43 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:33 AM.

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