Server Topic
   >  Introduction to Samba
   >  Installing Samba
   >  Samba Daemons
   >  Configuring Samba
   >  Verifying Samba Config
   >  Adding Samba Users
   >  Mapping Client Users
   >  Windows Client Config
   >  Linux Client Config
   >  Troubleshooting Samba


Troubleshooting Samba / CIFS Problems

Troubleshooting Samba Problems

If Samba is not working after following the instructions in this section, then try the following:

  1. Check the log files under the /var/log/samba directory for any clues

  2. On each of your client PCs, pull up a command line and use ping to see if you can reach the server IP hosting the Samba share

  3. On the server hosting the Samba share, pull up a command line and use ping to see if you can reach each of the client IPs

If you find that 2) works but 1) does not, then check the firewall rules on the server are not blocking the requests. If 1) works but not 2), then check the firewalls on the clients instead. If neither works, then check the cabling and networking setup.

If both 1) and 2) work, then check you can reach the server using:

nmblookup -B <Samba Server Name or IP> __SAMBA__

For example:

$ nmblookup -B myServer __SAMBA__
querying __SAMBA__ on __SAMBA__<00>

Another useful utility to run is smbclient -which you can use to list all the Samba shares on that server:

smbclient -L  //<IP of Samba Server> -U <server user>

This will prompt for the <server user>'s password. If the Samba link is working, the output will look similar to the following:

>Enter fredb's password: 
Domain=[MYLAN] OS=[Unix] Server=[Samba 3.5.4]

	Sharename    Type    Comment
	---------            ----      -------
	print$              Disk      Printer Drivers
	share1            Disk     
	share2            Disk      
	IPC$               IPC        IPC Service (myServer (Samba)) Domain=[MYLAN] OS=[Unix] Server=[Samba 3.5.4]

	Server             Comment
	---------            -------
	MYSERVER    myServer (Samba)

	Workgroup      Master
	---------            -------
	MYLAN            MYSERVER

The above shows two Samba shares on this server: share1 and share2 - plus the print server print$.

Samba Log Files

By default, the Samba log files sit under the /var/log/samba directory:

$ ls /var/log/samba
cores                  log.myServer   log.wb-BUILTIN         log.windowsNTpc
log.  log.myClient    log.wb-MYSERVER
log.  log.nmbd         log.winbindd
log.  log.smbd         log.winbindd-idmap

There are three basic types of log::

  • log.<IP or Alias> : access logs from the specified client machine
  • log.nmbd : log from the NetBIOS daemon
  • log.smbd : log from the Samba daemon

log.smbd is likely to be the most useful, but check them all for any clues.

HomeSite IndexDesktop GuideServer GuideHints and TipsHardware CornerVideo SectionContact Us

 sitelock verified Firefox Download Button