LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   SMB Share Issues with Windows Vista & 7 (http://www.linuxquestions.org/questions/linux-software-2/smb-share-issues-with-windows-vista-and-7-a-705251/)

Nuvious 02-16-2009 11:57 PM

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!

jayesh_labade 02-17-2009 12:31 AM

I think you have to enter following line under [global] section

encrypt password = yes

jayesh_labade 02-17-2009 12:33 AM

sorry, I think you have to enter following line under [global] section

encrypt passwords = yes

Nuvious 02-17-2009 01:08 AM

Quote:

Originally Posted by jayesh_labade (Post 3446427)
sorry, I think you have to enter following line under [global] section

encrypt passwords = yes

Same error I'm afraid :/.

vlademir 02-17-2009 03:02 AM

Quote:

Originally Posted by Nuvious (Post 3446399)
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

Nuvious 02-17-2009 07:43 AM

Quote:

Originally Posted by vlademir (Post 3446578)
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

vlademir 02-17-2009 07:50 AM

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.

Nuvious 02-17-2009 07:57 AM

Quote:

Originally Posted by vlademir (Post 3446863)
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.

farslayer 02-17-2009 08:01 AM

And if you shut down the firewall to test.. does it work ?

Alternately you could leave the firewall up and do packet captures..

Nuvious 02-17-2009 08:12 AM

Quote:

Originally Posted by farslayer (Post 3446878)
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.

john test 02-17-2009 08:14 AM

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

Nuvious 02-17-2009 08:20 AM

Quote:

Originally Posted by john test (Post 3446894)
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.

john test 02-17-2009 08:28 AM

Do the WORKGROUP names Match?
I had a problem where the Vista workgroup name was "WORKGROUP" and the Samba workgroup name was "MYHOME".

Nuvious 02-17-2009 08:29 AM

Quote:

Originally Posted by Nuvious (Post 3446902)
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.

john test 02-17-2009 08:37 AM

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?


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