LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 02-16-2009, 11:57 PM   #1
Nuvious
Member
 
Registered: Mar 2005
Posts: 34

Rep: Reputation: 16
Question SMB Share Issues with Windows Vista & 7


So I've already edited the registry entry necessary to see linux samba shares. However, I'm still running into an issue with even the most basic shares. I am running Fedora Core 10 and building a NAS out of it. Everything's kosher so far but I can't get the Samba shares up and running. I'll worry about writeable user share later but right now I have the following smb.conf file:

Code:
[global]
workgroup = WORKGROUP
netbios name = NUVNETNAS
security = share

[NAS_PUBLIC]
path = /home/NAS
read only = Yes
guest only = Yes
I've set up the firewall to allow Samba client and server traffic and set my file permissions for /home/NAS to 775. Yet I still get the following message:

Quote:
Windows cannot acesss \\NUVNETNAS\NAS_PUBLIC

Check the spelling of the name. Otherwise there might be a problem with your network. To try to identify and resolve network problems, click Diagnose.
Could it have something to do with the fact that I set up my NAS in the home directory? Is there some SELinux policy that would hamper this? Thanks in advance for serious replies!
 
Old 02-17-2009, 12:31 AM   #2
jayesh_labade
LQ Newbie
 
Registered: May 2008
Posts: 9

Rep: Reputation: 0
I think you have to enter following line under [global] section

encrypt password = yes
 
Old 02-17-2009, 12:33 AM   #3
jayesh_labade
LQ Newbie
 
Registered: May 2008
Posts: 9

Rep: Reputation: 0
sorry, I think you have to enter following line under [global] section

encrypt passwords = yes
 
Old 02-17-2009, 01:08 AM   #4
Nuvious
Member
 
Registered: Mar 2005
Posts: 34

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by jayesh_labade View Post
sorry, I think you have to enter following line under [global] section

encrypt passwords = yes
Same error I'm afraid :/.
 
Old 02-17-2009, 03:02 AM   #5
vlademir
Member
 
Registered: Jan 2009
Location: The Netherlands
Distribution: Centos,Ubuntu,Mandriva,Suse11.1
Posts: 86

Rep: Reputation: 17
Quote:
Originally Posted by Nuvious View Post
So I've already edited the registry entry necessary to see linux samba shares. However, I'm still running into an issue with even the most basic shares. I am running Fedora Core 10 and building a NAS out of it. Everything's kosher so far but I can't get the Samba shares up and running. I'll worry about writeable user share later but right now I have the following smb.conf file:

Code:
[global]
workgroup = WORKGROUP
netbios name = NUVNETNAS
security = share

[NAS_PUBLIC]
path = /home/NAS
read only = Yes
guest only = Yes
I've set up the firewall to allow Samba client and server traffic and set my file permissions for /home/NAS to 775. Yet I still get the following message:



Could it have something to do with the fact that I set up my NAS in the home directory? Is there some SELinux policy that would hamper this? Thanks in advance for serious replies!
Run the command testparm, if the command run correctly this will load all the services , if not will give you errors.
Testparm will parse your configuration file and report any unknown parameters or incorrect syntax.as root run :
Quote:
testparm /etc/samba/smb.conf
 
Old 02-17-2009, 07:43 AM   #6
Nuvious
Member
 
Registered: Mar 2005
Posts: 34

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by vlademir View Post
Run the command testparm
Didn't seem to give me any errors. :/

Quote:
Load smb config files from /etc/samba/smb.conf
Processing section "[NAS_PUBLIC]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
security = SHARE

[NAS_PUBLIC]
path = /home/NAS
guest only = Yes
guest ok = Yes
 
Old 02-17-2009, 07:50 AM   #7
vlademir
Member
 
Registered: Jan 2009
Location: The Netherlands
Distribution: Centos,Ubuntu,Mandriva,Suse11.1
Posts: 86

Rep: Reputation: 17
If you are using a router you have to open samba port on the router, also to test try to disable the firewall on windows, perhaps windows vista firewall is blocking access.

Last edited by vlademir; 02-17-2009 at 07:51 AM.
 
Old 02-17-2009, 07:57 AM   #8
Nuvious
Member
 
Registered: Mar 2005
Posts: 34

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by vlademir View Post
If you are using a router you have to open samba port on the router, also to test try to disable the firewall on windows, perhaps windows vista firewall is blocking access.
Have Network Discrover/Filesharing open in my firewall including the protocols. Also, everything's on a local network :/ so there shouldn't be an issue there.
 
Old 02-17-2009, 08:01 AM   #9
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,228
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
And if you shut down the firewall to test.. does it work ?

Alternately you could leave the firewall up and do packet captures..
 
Old 02-17-2009, 08:12 AM   #10
Nuvious
Member
 
Registered: Mar 2005
Posts: 34

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by farslayer View Post
And if you shut down the firewall to test.. does it work ?

Alternately you could leave the firewall up and do packet captures..
It definitely not the firewall. I can access Windows shares from THIS linux box, just not visa versa. I have a linux laptop that I can still access shares from my Vista/Windows 7 machine with no trouble, so it has to be something with this machine. Both Fedora and my Vista/Windows 7 firewalls are configured correctly.
 
Old 02-17-2009, 08:14 AM   #11
john test
Member
 
Registered: Jul 2008
Distribution: ubuntu 9.10
Posts: 527
Blog Entries: 1

Rep: Reputation: 35
Every Morning I fire up Linux and Restart the Network and then Reload Samba
Code:
$ /etc/init.d/networking restart
and then
Code:
 $ /etc/init.d/samba reload
Need to look in /etc/init.d to see if the script is named "network" or (as in my case) "networking" and adjust accordingly.

I went round n round with "smbstatus" and "testparm" and the samba shares were invisible to Vista until I initiated the regimen above.

Goof Luck

Last edited by john test; 02-17-2009 at 08:19 AM.
 
Old 02-17-2009, 08:20 AM   #12
Nuvious
Member
 
Registered: Mar 2005
Posts: 34

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by john test View Post
Every Morning I fire up Linux and Restart the Network and then Reload Samba
[code]$ /etc/init.d/networking restart
[\code]
and then
[code] $ /etc/init.d/samba reload
[\code]
Need to look in /etc/init.d to see if the script is named "network" or (as in my case) "networking" and adjust accordingly.

I went round n round with "smbstatus" and "testparm" and the samba shares were invisible to Vista until I initiated the regimen above.

Goof Luck
Never tried that before, but didn't seem to alieviate the issue. The worst part is, NUVNETNAS shows up on the network and NAS_PUBLIC is visible as well :/. Thanks for the tip though.
 
Old 02-17-2009, 08:28 AM   #13
john test
Member
 
Registered: Jul 2008
Distribution: ubuntu 9.10
Posts: 527
Blog Entries: 1

Rep: Reputation: 35
Do the WORKGROUP names Match?
I had a problem where the Vista workgroup name was "WORKGROUP" and the Samba workgroup name was "MYHOME".
 
Old 02-17-2009, 08:29 AM   #14
Nuvious
Member
 
Registered: Mar 2005
Posts: 34

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by Nuvious View Post
The worst part is, NUVNETNAS shows up on the network and NAS_PUBLIC is visible as well :/. Thanks for the tip though.
Quote:
Do the WORKGROUP names Match?
I had a problem where the Vista workgroup name was "WORKGROUP" and the Samba workgroup name was "MYHOME".
Nope, the WORKGROUP works fine :/. I can see the system and share, just can't access it.
 
Old 02-17-2009, 08:37 AM   #15
john test
Member
 
Registered: Jul 2008
Distribution: ubuntu 9.10
Posts: 527
Blog Entries: 1

Rep: Reputation: 35
What happens if you go to Win Vista > start > network and several minutes for the samba share to appear?

If it appears and you click on it, does it give you a login prompt?

If you get the samba share login prompt, can you not just login with the uid/pw from the linux machine that is being shared?

Do you have identical accounts/passwords on both Vista and Linux/Samba?
 
  


Reply

Tags
firewall, public, samba, share, solution, vista


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
Vista issues with SMB, fixed with rinetd lefty.crupps Linux - Networking 3 08-04-2007 05:48 AM
10.2 can't modify files on windows share through SMB ajsitch Suse/Novell 2 01-19-2007 08:55 AM
SMB Share Issues Soulful93 Linux - Networking 7 09-06-2005 06:28 PM
Can't access a smb share from windows digitalspillage Linux - Newbie 2 10-05-2003 09:42 AM
smb windows share need help pissy_pants Linux - Networking 4 09-04-2003 01:37 AM


All times are GMT -5. The time now is 10:08 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration