samba:check_samba_is_running
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
samba:check_samba_is_running [2016/07/10 10:56] – peter | samba: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 | ||
- | </ | ||
- | |||
- | Result: | ||
- | |||
- | < | ||
- | root | ||
- | root | ||
- | root | ||
- | root | ||
- | root | ||
- | root | ||
- | root 88308 87793 0 09:49 pts/0 00:00:00 grep --color=auto smbd | ||
- | </ | ||
- | |||
- | |||
- | ??? | ||
- | |||
- | <code bash> | ||
- | ps -ef | grep nmbd | ||
- | </ | ||
- | |||
- | Result: | ||
- | |||
- | <code bash> | ||
- | root | ||
- | root 88339 87793 0 09:54 pts/0 00:00:00 grep --color=auto nmbd | ||
- | </ | ||
- | |||
- | |||
- | |||
- | ===== Check the Samba Client is running ===== | ||
- | |||
- | <code bash> | ||
- | smbclient -L ShareWiz -N | ||
- | </ | ||
- | |||
- | * -L < | ||
- | * -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: | ||
- | |||
- | < | ||
- | WARNING: The " | ||
- | Domain=[SHAREWIZ] OS=[Windows 6.1] Server=[Samba 4.3.9-Ubuntu] | ||
- | |||
- | Sharename | ||
- | --------- | ||
- | print$ | ||
- | open Disk ShareWiz File Server Open | ||
- | share | ||
- | secureshare | ||
- | IPC$ IPC IPC Service (server1 server (Samba, Ubuntu)) | ||
- | Domain=[SHAREWIZ] OS=[Windows 6.1] Server=[Samba 4.3.9-Ubuntu] | ||
- | |||
- | Server | ||
- | --------- | ||
- | SERVER1 | ||
- | |||
- | Workgroup | ||
- | --------- | ||
- | SHAREWIZ | ||
- | </ | ||
- | |||
- | |||
- | An error message may be displayed instead: | ||
- | |||
- | < | ||
- | error connecting to 192.168.1.2: | ||
- | Connection to < | ||
- | </ | ||
- | |||
- | is 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. | ||
- | idea to view the last few lines of the associated log file. | ||
- | |||
- | The second error message often seen by administrators is | ||
- | |||
- | < | ||
- | session request to < | ||
- | </ | ||
- | |||
- | When connecting locally using smbclient, this error is almost always a result of a misconfigured **hosts allow** or **hosts deny** parameter in | ||
- | smb.conf. | ||
- | |||
- | From the description of the NetBIOS Name Service, it sounds like we used the wrong NetBIOS name when connecting to the server. | ||
samba/check_samba_is_running.1468148175.txt.gz · Last modified: 2020/07/15 09:30 (external edit)