LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-01-2014, 10:24 PM   #1
unclejed613
Member
 
Registered: Mar 2009
Posts: 353

Rep: Reputation: 32
window$ 8 vs samba shares


as far as i can tell, a recent update to windows 8 has removed the ability to connect to a samba share. however, my sons might be able to buy an app from micro$oft's "app store" to restore this function on their win8 machines.... has anybody else run across this problem recently?
 
Old 03-01-2014, 10:52 PM   #2
ericson007
Member
 
Registered: Sep 2004
Location: Japan
Distribution: RHEL9.4
Posts: 735

Rep: Reputation: 154Reputation: 154
Nope, i have win 8.1 and my samba shares work as normal. I believe your sons' tinkering with system settings caused the issues rather than microsoft, they will not take smb support out of windows.

Last edited by ericson007; 03-01-2014 at 10:54 PM.
 
Old 03-02-2014, 12:10 AM   #3
unclejed613
Member
 
Registered: Mar 2009
Posts: 353

Original Poster
Rep: Reputation: 32
i've got samba running, but they can't find it...... i haven't changed anything on this end
 
Old 03-02-2014, 02:02 AM   #4
ericson007
Member
 
Registered: Sep 2004
Location: Japan
Distribution: RHEL9.4
Posts: 735

Rep: Reputation: 154Reputation: 154
Well, start by thinking about what has changed. Did you switch routers? Have they installed new antivirus, changed static ip configs, updated the samba box, did you try to ping it, did you try mapping a network drive using the samba server ip? Simply saying it does not work doesn't mean anything. If nothing changed and nothing is broken, this would not have happened.
 
Old 03-02-2014, 03:21 PM   #5
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,398

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
maybe my post HERE?


Disable “Secure Negotiate” on the client.
You can do this using PowerShell on a Windows Server 2012 or Windows 8 client, using the command:

Set-ItemProperty -Path “HKLM:\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters” RequireSecureNegotiate -Value 0 -Force
Note: If you get a long access denied error, try running Windows PowerShell as an Administrator.
 
Old 03-03-2014, 08:41 AM   #6
unclejed613
Member
 
Registered: Mar 2009
Posts: 353

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by glorsplitz View Post
maybe my post HERE?


Disable “Secure Negotiate” on the client.
You can do this using PowerShell on a Windows Server 2012 or Windows 8 client, using the command:

Set-ItemProperty -Path “HKLM:\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters” RequireSecureNegotiate -Value 0 -Force
Note: If you get a long access denied error, try running Windows PowerShell as an Administrator.
tnx... will try that tonight..... btw, like your sig... Red Green, Possum Lodge motto....
 
Old 03-04-2014, 12:25 AM   #7
Erik_FL
Member
 
Registered: Sep 2005
Location: Boynton Beach, FL
Distribution: Slackware
Posts: 821

Rep: Reputation: 258Reputation: 258Reputation: 258
Post

It will also help if you try to identify what part of file sharing isn't working. There are basically three parts.
  1. Network Browsing (shows list of computers)
  2. Name Resolution (Computer Name to IP address)
  3. SMB (connect, list and transfer files)

To eliminate the first two as possible problems, find out the correct IP address of the server computer (the one sharing files). Then enter the IP address instead of the computer name like this.

Code:
\\nnn.nnn.nnn.nnn\sharename
Replace the "nnn.nnn.nnn.nnn" with the IP address of the computer. Replace "sharename" with the name of the network share (shared folder name). You may have to enable the folder option to view the folder address bar. Enter the IP and share name in the address bar of a folder. You will be prompted for an account name and password.

If you cannot list files, usually that means your user account does not have permissions to log in to samba. Windows will try using your account name and password, and also will try using the guest account with no password. In some cases you may have to map a network drive and override the account name and password in order to access a shared folder.

Make sure that TCP ports 139 and 445 are not being blocked by firewall software (Kaspersky, Norton or Macafee). Those ports are required to communicate when listing and transferring files.

Also, be careful if you had a failed attempt to access something. You may need to delete the "$IPC" share that is left over from the last attempt.

To display currently established sessions use this from a command prompt.

Code:
NET USE
You can delete left over sessions like this.

Code:
NET USE \\computername\IPC$ /D
Once you are able to list and access files using the IP address then you can try using the computer name. Type in the computer name instead of an IP address. If Windows can't find the computer's IP address (or can't find the computer name) then the problem is with name resolution.

Windows tries to resolve computer names in a few different ways.
  • NETBIOS broadcasts on UDP port 137
  • Domain Name Service (DNS)
  • The "hosts" file
  • The "LMHOSTS" file
  • A Windows Internet Name Service (WINS) server if one is configured

On most people's network, there is no DNS server that allows PCs to register names. DNS is only useful for looking up web addresses on most people's home network since it just gets relayed to the Internet provider's DNS server. That means for most people's home network the computer names are resolved by NETBIOS broadcasts. NETBIOS broadcasts won't work for computers on different IP network addresses even if they are connected to the same LAN. Also, some routers may block some kinds of broadcasts on wireless. If you're having problems with name resolution, the simplest solution is to add the server computer name and IP address to the "hosts" file on the client computers. If that fixes the problem you know it was due to name resolution.

The last, and most troublesome part to deal with is network browsing. That maintains a list of computers that are "seen" in the work-group or domain. If you can connect to computers by typing in the name or IP address but can't "see" the computer names in the list of detected computers then the problem is network browsing. The work around for this is to create shortcuts that have the computer name and share name to avoid having to click on computer names that are "seen". Or, you can simply type the computer name and share name in the address bar of a folder window.

Network browsing uses broadcasts on UDP port 138. Make sure that port is not blocked and broadcasts are not being blocked. Since the list of detected computers is updated infrequently, it can take 15 minutes or more for a computer to appear in the browse list. Computers negotiate to see which ones will maintain the list. I won't go into it here, but there are registry settings (and samba settings) to control which computers maintain the browse list. If you're unlucky, a slow or mobile computer is keeping the list. You could have problems after shutting down or starting up computers. When you connect or disconnect computers frequently, or shut off power, you should designate the computers that you want to maintain the browse list for your network. There are settings you can add to the "LMHOSTS" file in Windows that allow seeing computers in other work-groups or domains. It's easiest just to make sure that all your computers are in the same work-group so that they "see" each other.
 
1 members found this post helpful.
Old 03-04-2014, 08:44 AM   #8
unclejed613
Member
 
Registered: Mar 2009
Posts: 353

Original Poster
Rep: Reputation: 32
tnx.... i think that will help.... i followed an earlier link in this thread, and one of the suggestions on that page was to turn off "SMB server signing" at the server..... well that may be ok for a windows server, but looking at SWAT under Advanced Options... it must be called something else.... i'm also trying to figure out why samba is not running after a reboot... it used to... but that's probably another topic.... one problem at a time....
 
Old 03-04-2014, 01:39 PM   #9
Erik_FL
Member
 
Registered: Sep 2005
Location: Boynton Beach, FL
Distribution: Slackware
Posts: 821

Rep: Reputation: 258Reputation: 258Reputation: 258
Quote:
Originally Posted by unclejed613 View Post
.... i'm also trying to figure out why samba is not running after a reboot... it used to... but that's probably another topic....
To start the samba server at boot, the file "/etc/rc.d/rc.samba" must have execute permissions.

Code:
su -
chmod +x /etc/rc.d/rc.samba
exit
The file "/etc/rc.d/rc.M" starts samba when the run level changes to multi-user (3 or 4). That file should not have been changed. This should be in the file to start samba.

Code:
# Start Samba (a file/print server for Win95/NT machines).
# Samba can be started in /etc/inetd.conf instead.
if [ -x /etc/rc.d/rc.samba ]; then
  . /etc/rc.d/rc.samba start
fi
Make sure that "/etc/inittab" has the default run level set to 3 or 4.

Code:
# Default runlevel. (Do not set to 0 or 6)
id:3:initdefault:
Check the console for error messages relating to samba (Alt F1 or Ctrl Alt F1). You can also check for kernel error messages that might refer to samba or the network interfaces used by samba.

Code:
dmesg | less
 
  


Reply


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
samba shares permissions as flexible as 2003server shares? fdelval Linux - Newbie 5 11-23-2010 09:29 AM
LXer: How to Properly Setup Samba, Create Public Shares and Anonymously Browse Window LXer Syndicated Linux News 1 09-22-2008 02:58 AM
Linux can mount samba shares but not windows shares bindsocket Linux - Software 1 12-01-2003 06:28 PM
Users, window managers, bootloaders and samba shares (oh my!) Korff Linux - General 1 06-14-2003 12:00 AM
Samba wont mount my window shares axis Linux - Software 4 03-04-2003 05:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration