Log into the Windows workstation as a Samba user. (In the example below, the username is
peter.) Use the
net view \\samba-server command to log into the Samba server from the command line and get a listing of your shares.
If it fails, then make sure your
hosts allow,
hosts deny, and
invalid users parameters are set correctly in your
smb.conf file.
This test attempts to log in using the username and password with which you logged into the PC. Make sure the corresponding Samba user has been created.
A "Network name not found" message usually points to an incorrect NetBIOS configuration on the client. Add the IP address of the Samba server to the WINS server settings, and enable Windows name resolution via DNS using the advanced TCP/IP settings menu on the PC. You can get to this menu using the following method:
- 1. Click on the Network Connections icon in the Windows Control Panel.
- 2. Right-click on the network connection and select Properties.
- 3. Click on the Internet Properties (TCP/IP) menu option and then click on the Properties button.
- 4. Click on the Advanced button and then on the WINS tab.
You may also need to add the name of the Samba server to the PC's C:\WINDOWS\system32\drivers\etc\lmhosts file.
If you're successful you should
see:
C:\>net view \\bigboy
Shared resources at \\bigboy
Samba Server
Share name Type Used as Comment
------------------------------------------------
peter Disk Home Directories
The command completed successfully.
C:\>
If there is no user account, the test will fail and you will see:
C:\> net view \\bigboy
System error 5 has occurred.
Access is denied.
C:\>