User Tools

Site Tools


samba:check_samba_is_running

This is an old revision of the document!


Samba - Check Samba is running

Check the Samba Server is running

ps -ef | grep smbd

Result:

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

???

ps -ef | grep nmbd

Result:

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

Check the Samba Client is running

smbclient -L ShareWiz -N
  • -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:

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
samba/check_samba_is_running.1468141068.txt.gz ยท Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki