Samba always take Apache tcp port !

Vladimir Vyskocil vyskocil at unice.fr
Wed Oct 4 13:40:24 GMT 2000


Robert Dahlem wrote:

> First: 2003 (guess you mean this one instead of 2004) is really a bad
> choice for any server to listen on a busy machine, it will almost
> always collide with dynamically assigned ports. Try ports below 1024
> for your servers.

Yes I tried this but samba took also this port !

> - LISTEN      21953/smbd
>    0.0.0.0:139             0.0.0.0:*
>    0.0.0.0:80              0.0.0.0:*
>    0.0.0.0:443             0.0.0.0:*
>    172.20.50.1:2003        0.0.0.0:*
>
> Well, that's really a funny process: your smbd seems to listen for
> NETBIOS sessions (139, that's ok) as well as for HTTP (80) and HTTPS
> (443). How come? I never saw this on any of my machines.
>
> Which OS/version are you running?

Linux Redhat 6.1 (intel) somewhat customized

> Which Samba version?

2.0.5a (from redhat 6.1) but i tried 2.0.7 from redhat 6.2 and it was the same.

> Which parameters did you give to ./configure?

I didn't compile it

> Can you post your smb.conf? Your startup parameters?

[Global]
netbios name = eyebox_vv
smb passwd file = /etc/smbpasswd
keepalive = 10
load printers = no
local master = yes
encrypt passwords = yes
security = user
prefered master = yes
os level = 33
deadtime = 10
name resolve order = hosts
wins support = yes
debuglevel = 255
available = yes
log file = /var/log/samba/log.%L
max log size = 5000
wins proxy = yes
domain master = yes
dns proxy = no
map to guest = never
password level = 0
passwd program = /usr/bin/passwd %u
null passwords = no
server string = Serveur SMB Right Vision %v on (%L) - %R %T
workgroup = Workgroup
update encrypted = yes
interfaces =172.20.50.1/255.255.0.0
include = /etc/smb.%L.conf

[Public]
public = yes
volume = SMB_public_%S
writable = yes
comment = Espace public %S - %P
hide dot files = yes
path = /home/_services_/smbpublic
browseable = yes
guest ok = yes
guest account = nobody
create mask = 0644
directory mask = 0755

[Homes]
comment = %u Home Directories
hide dot files = yes
browseable = no
writable = yes
path = /home/%u
read only = no
public = no
available = yes
only user = no


> Do you have lsof for your architecture? Can you do an 'lsof -p xxx'
> with xxx being smbd' PID?

I think you will laught... It seems as smbd is a smb/httpd deamon ;)

COMMAND   PID USER   FD   TYPE  DEVICE    SIZE    NODE NAME
smbd    26023 root  cwd    DIR     3,8    1024   34212 /services/httpd/adminroot/html/admin/gestion_des_services/fichiers
smbd    26023 root  rtd    DIR     3,9    1024       2 /
smbd    26023 root  txt    REG     3,6  778912   25087 /usr/sbin/smbd
smbd    26023 root  mem    REG     3,9  344890   36146 /lib/ld-2.1.2.so
smbd    26023 root  mem    REG     3,9  372604   36166 /lib/libnsl-2.1.2.so
smbd    26023 root  mem    REG     3,6  161778   39182 /usr/lib/libreadline.so.3.0
smbd    26023 root  mem    REG     3,9   74663   36162 /lib/libdl-2.1.2.so
smbd    26023 root  mem    REG     3,9   64595   36155 /lib/libcrypt-2.1.2.so
smbd    26023 root  mem    REG     3,9   32898   36227 /lib/libpam.so.0.68
smbd    26023 root  mem    REG     3,9 4118299   36153 /lib/libc-2.1.2.so
smbd    26023 root  mem    REG     3,9   15001   36205 /lib/libtermcap.so.2.0.8
smbd    26023 root  mem    REG     3,9  247348   36184 /lib/libnss_files-2.1.2.so
smbd    26023 root    0u   CHR     1,3           24099 /dev/null
smbd    26023 root    1u   CHR     1,3           24099 /dev/null
smbd    26023 root    2u   CHR     1,3           24099 /dev/null
smbd    26023 root    3u   REG     3,5       0   34829 /var/run/httpd.mm.2783.sem
smbd    26023 root    4u  sock     0,0         2190438 can't identify protocol
smbd    26023 root    5u  IPv4 2187034             TCP localhost.localdomain:1917->localhost.localdomain:389 (ESTABLISHED)
smbd    26023 root    6w   REG     3,5  332572   53251 /var/log/httpd/mod_jserv.log
smbd    26023 root    7r  FIFO     0,0         1695975 pipe
smbd    26023 root    8w   REG     3,5  332572   53251 /var/log/httpd/mod_jserv.log
smbd    26023 root    9w   REG     3,5  332572   53251 /var/log/httpd/mod_jserv.log
smbd    26023 root   10w   REG     3,5  332572   53251 /var/log/httpd/mod_jserv.log
smbd    26023 root   11w   REG     3,5  332572   53251 /var/log/httpd/mod_jserv.log
smbd    26023 root   12w   REG     3,5  332572   53251 /var/log/httpd/mod_jserv.log
smbd    26023 root   13w   REG     3,5  332572   53251 /var/log/httpd/mod_jserv.log
smbd    26023 root   14w   REG     3,5  332572   53251 /var/log/httpd/mod_jserv.log
smbd    26023 root   15w   REG     3,5  417055   53252 /var/log/httpd/error_log
smbd    26023 root   16w   REG     3,5       0   53255 /var/log/httpd/www.sitedejoe.com_error.log
smbd    26023 root   17w   REG     3,5    8439   53253 /var/log/httpd/adminroot_error.log
smbd    26023 root   18u  IPv4 1696024             TCP eyebox_vv2.rv.fr:2004 (LISTEN)
smbd    26023 root   19u  IPv4 1696025             TCP *:https (LISTEN)
smbd    26023 root   20u  IPv4 1696026             TCP *:www (LISTEN)
smbd    26023 root   21w  FIFO     0,0         2190875 pipe
smbd    26023 root   22w   REG     3,5  332572   53251 /var/log/httpd/mod_jserv.log
smbd    26023 root   23w   REG     3,5       0   53254 /var/log/httpd/virtualdesk_error.log
smbd    26023 root   24w   REG     3,5  332572   53251 /var/log/httpd/mod_jserv.log
smbd    26023 root   25w   REG     3,5  332572   53251 /var/log/httpd/mod_jserv.log
smbd    26023 root   26w   REG     3,5  332572   53251 /var/log/httpd/mod_jserv.log
smbd    26023 root   27w   REG     3,5  332572   53251 /var/log/httpd/mod_jserv.log
smbd    26023 root   28w   REG     3,5  332572   53251 /var/log/httpd/mod_jserv.log
smbd    26023 root   29w   REG     3,5  729101   53261 /var/log/httpd/ssl_engine_log
smbd    26023 root   30w   REG     3,5       0   34850 /var/run/ssl_mutex.2783 (deleted)
smbd    26023 root   31w   REG     3,5       0   53256 /var/log/httpd/access_log
smbd    26023 root   32w   REG     3,5       0   53263 /var/log/httpd/www.sitedejoe.com_access.log
smbd    26023 root   33w   REG     3,5  423814   53257 /var/log/httpd/adminroot_access.log
smbd    26023 root   34w   REG     3,5  828078   53258 /var/log/httpd/ssl_request_log
smbd    26023 root   35w   REG     3,5  828078   53258 /var/log/httpd/ssl_request_log
smbd    26023 root   36w   REG     3,5       0   53259 /var/log/httpd/virtualdesk_access.log
smbd    26023 root   37w   REG     3,5  828078   53258 /var/log/httpd/ssl_request_log
smbd    26023 root   38w   REG     3,5  828078   53258 /var/log/httpd/ssl_request_log
smbd    26023 root   39w   REG     3,5       0   34853 /var/run/httpd.lock.2809 (deleted)
smbd    26023 root   40w   REG     3,5       0   34850 /var/run/ssl_mutex.2783 (deleted)
smbd    26023 root   41r   REG     3,8    3439  34217 /services/httpd/adminroot/html/admin/gestion_des_services/fichiers/smb_statuts.php
smbd    26023 root   42u  IPv4 2190757             TCP localhost.localdomain:2020->localhost.localdomain:389 (CLOSE_WAIT)
smbd    26023 root   43u  IPv4 2190861             TCP localhost.localdomain:2032->localhost.localdomain:389 (CLOSE_WAIT)
smbd    26023 root   44w   REG     3,5   20260   59396 /var/log/samba/log.
smbd    26023 root   45ww  REG     3,5      20   57347 /var/lock/samba/smbd.pid
smbd    26023 root   46u  IPv4 2190884             TCP *:netbios-ssn (LISTEN)
smbd    26023 root   48r  FIFO     0,0         2190875 pipel

> I have a feeling your OS messes some things up. :-)

I also think so, it's why I ask for help :)

thanks for your help

--
Vyskocil Vladimir
vyskocil at unice.fr







More information about the samba mailing list