User Tools

Site Tools


samba:check_samba_is_running

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
samba:check_samba_is_running [2016/07/10 11:00] petersamba:check_samba_is_running [2019/12/04 18:58] (current) – removed peter
Line 1: Line 1:
-====== Samba - Check Samba is running ====== 
- 
-===== Check the Samba Server is running ===== 
- 
-<code bash> 
-ps -ef | grep smbd 
-</code> 
- 
-Result: 
- 
-<code> 
-root       3380      1  0 Jun30 ?        00:00:01 /usr/sbin/smbd -D 
-root       3381   3380  0 Jun30 ?        00:00:04 /usr/sbin/smbd -D 
-root       3383   3380  0 Jun30 ?        00:00:01 /usr/sbin/smbd -D 
-root       5978   3380  0 Jul08 ?        00:00:00 /usr/sbin/smbd -D 
-root       5980   3380  0 Jul08 ?        00:00:00 /usr/sbin/smbd -D 
-root       5982   3380  0 Jul08 ?        00:00:00 /usr/sbin/smbd -D 
-root      88308  87793  0 09:49 pts/0    00:00:00 grep --color=auto smbd 
-</code> 
- 
- 
-??? 
- 
-<code bash> 
-ps -ef | grep nmbd 
-</code> 
- 
-Result: 
- 
-<code bash> 
-root       3352      1  0 Jun30 ?        00:00:20 /usr/sbin/nmbd -D 
-root      88339  87793  0 09:54 pts/0    00:00:00 grep --color=auto nmbd 
-</code> 
- 
- 
- 
-===== Check the Samba Client is running ===== 
- 
-<code bash> 
-smbclient -L ShareWiz -N 
-</code> 
- 
-  * -L <server> option instructs smbclient to list the available resources on the server.  
-  * -N flag (anonymous login) is used to temporarily avoid any potential problems with authentication. 
- 
-This step should be executed while logged on to the Samba server locally (that is, not from another Unix host on the network). 
- 
-Result: 
- 
-<code> 
-WARNING: The "syslog" option is deprecated 
-Domain=[SHAREWIZ] OS=[Windows 6.1] Server=[Samba 4.3.9-Ubuntu] 
- 
- Sharename       Type      Comment 
- ---------       ----      ------- 
- print$          Disk      Printer Drivers 
- open            Disk      ShareWiz File Server Open 
- share           Disk      ShareWiz File Server Share 
- secureshare     Disk      ShareWiz File Server Secure Share 
- IPC$            IPC       IPC Service (server1 server (Samba, Ubuntu)) 
-Domain=[SHAREWIZ] OS=[Windows 6.1] Server=[Samba 4.3.9-Ubuntu] 
- 
- Server               Comment 
- ---------            ------- 
- SERVER1              server1 server (Samba, Ubuntu) 
- 
- Workgroup            Master 
- ---------            ------- 
- SHAREWIZ             SERVER1 
-</code> 
- 
- 
-An error message may be displayed instead: 
- 
-<code> 
-error connecting to 192.168.1.2:139 (Connection refused) 
-Connection to <server> failed 
-</code> 
- 
-This could be caused by smbd not running or not being able to bind to port 139.  An inability to bind to the correct port can be caused by configuring smbd to start from [x]inetd (possibly left over from a previous Samba installation) and then attempting to launch the server as a daemon.  The most common means of correcting this is to ensure that smbd can actually start.  Because smbd does not print error messages to the console window, it is a good idea to view the last few lines of the associated log file. 
- 
-<code> 
-tail /var/log/samba/log.smbd 
-</code> 
- 
- 
-Another error message often seen is: 
- 
-<code> 
-session request to <server> failed (Not listening for calling name) 
-</code> 
- 
-When connecting locally using smbclient, this error is almost always a result of a misconfigured **hosts allow** or **hosts deny** parameter in  
-smb.conf.  The server is running by rejecting the NetBIOS session setup.   
- 
-Check that the correct NetBIOS name was entered in the command.  If that is not the cause of the error, then it could be caused by a broken nmbd installation. 
- 
  
samba/check_samba_is_running.1468148442.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki