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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
02-16-2009, 11:57 PM
|
#1
|
|
Member
Registered: Mar 2005
Posts: 34
Rep:
|
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!
|
|
|
|
02-17-2009, 12:31 AM
|
#2
|
|
LQ Newbie
Registered: May 2008
Posts: 9
Rep:
|
I think you have to enter following line under [global] section
encrypt password = yes
|
|
|
|
02-17-2009, 12:33 AM
|
#3
|
|
LQ Newbie
Registered: May 2008
Posts: 9
Rep:
|
sorry, I think you have to enter following line under [global] section
encrypt passwords = yes
|
|
|
|
02-17-2009, 01:08 AM
|
#4
|
|
Member
Registered: Mar 2005
Posts: 34
Original Poster
Rep:
|
Quote:
Originally Posted by jayesh_labade
sorry, I think you have to enter following line under [global] section
encrypt passwords = yes
|
Same error I'm afraid :/.
|
|
|
|
02-17-2009, 03:02 AM
|
#5
|
|
Member
Registered: Jan 2009
Location: The Netherlands
Distribution: Centos,Ubuntu,Mandriva,Suse11.1
Posts: 86
Rep:
|
Quote:
Originally Posted by Nuvious
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
|
|
|
|
|
02-17-2009, 07:43 AM
|
#6
|
|
Member
Registered: Mar 2005
Posts: 34
Original Poster
Rep:
|
Quote:
Originally Posted by vlademir
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
|
|
|
|
|
02-17-2009, 07:50 AM
|
#7
|
|
Member
Registered: Jan 2009
Location: The Netherlands
Distribution: Centos,Ubuntu,Mandriva,Suse11.1
Posts: 86
Rep:
|
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.
|
|
|
|
02-17-2009, 07:57 AM
|
#8
|
|
Member
Registered: Mar 2005
Posts: 34
Original Poster
Rep:
|
Quote:
Originally Posted by vlademir
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.
|
|
|
|
02-17-2009, 08:01 AM
|
#9
|
|
Guru
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,231
Rep: 
|
And if you shut down the firewall to test.. does it work ?
Alternately you could leave the firewall up and do packet captures..
|
|
|
|
02-17-2009, 08:12 AM
|
#10
|
|
Member
Registered: Mar 2005
Posts: 34
Original Poster
Rep:
|
Quote:
Originally Posted by farslayer
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.
|
|
|
|
02-17-2009, 08:14 AM
|
#11
|
|
Member
Registered: Jul 2008
Distribution: ubuntu 9.10
Posts: 527
Rep:
|
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.
|
|
|
|
02-17-2009, 08:20 AM
|
#12
|
|
Member
Registered: Mar 2005
Posts: 34
Original Poster
Rep:
|
Quote:
Originally Posted by john test
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.
|
|
|
|
02-17-2009, 08:28 AM
|
#13
|
|
Member
Registered: Jul 2008
Distribution: ubuntu 9.10
Posts: 527
Rep:
|
Do the WORKGROUP names Match?
I had a problem where the Vista workgroup name was "WORKGROUP" and the Samba workgroup name was "MYHOME".
|
|
|
|
02-17-2009, 08:29 AM
|
#14
|
|
Member
Registered: Mar 2005
Posts: 34
Original Poster
Rep:
|
Quote:
Originally Posted by Nuvious
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.
|
|
|
|
02-17-2009, 08:37 AM
|
#15
|
|
Member
Registered: Jul 2008
Distribution: ubuntu 9.10
Posts: 527
Rep:
|
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?
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:36 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|