Operating System - HP-UX
1824976 Members
3706 Online
109678 Solutions
New Discussion юеВ

Samba: What port does it connect on?

 
SOLVED
Go to solution
dictum9
Super Advisor

Samba: What port does it connect on?

How do I find out what port Samba (cifs) connects on?
netstat -an
doesn't show anything.

hp-ux 11.0
samba (cifs) 2.2
4 REPLIES 4
Jeff_Traigle
Honored Contributor
Solution

Re: Samba: What port does it connect on?

From /etc/services:

netbios_ns 137/tcp # NetBIOS Name Service
netbios_ns 137/udp #
netbios_dgm 138/tcp # NetBIOS Datagram Service
netbios_dgm 138/udp #
netbios_ssn 139/tcp # NetBIOS Session Service
netbios_ssn 139/udp #
swat 901/tcp # SAMBA Web-based Admin Tool
--
Jeff Traigle
A. Clay Stephenson
Acclaimed Contributor

Re: Samba: What port does it connect on?

By default, 139 but the answer is really whatever is specified as the -p argument to the Samba daemon.
If it ain't broke, I can fix that.
Sandman!
Honored Contributor

Re: Samba: What port does it connect on?

What does a simple ps listing show?

# ps -ef | grep -i smbd

cheers!
Sandman!
Honored Contributor

Re: Samba: What port does it connect on?

Sorry...I hit the submit button accidentally. To continue my previous post, if you have lsof then you can simply do as follows:

# lsof -c smbd | grep -i listen