[Samba] smbclient ends in NT_STATUS_CONNECTION_REFUSED error
Rowland Penny
rpenny at samba.org
Wed Jun 14 12:50:57 UTC 2017
On Wed, 14 Jun 2017 04:54:43 -0700 (PDT)
"basti.mueller31--- via samba" <samba at lists.samba.org> wrote:
> >/etc/hostname
> server
>
> >/etc/hosts
> 127.0.0.1 localhost
> 192.168.15.2 server.example.com
Try changing the above line to:
192.168.15.2 server.example.com server
>
> >systemctl restart samba-ad-dc
> Just did it and still get the nt error after that!
>
Try stopping Samba:
systemctl stop samba-ad-dc
Then run 'ps ax' and search the output for any Samba lines and if you
find any, use 'kill' to remove them e.g. if I run it on a DC, I get
this amongst the output:
11252 ? Ss 0:01 /usr/local/samba/sbin/winbindd -D --option=server role check:inhibit=yes --foreground
11253 ? S 0:02 /usr/local/samba/sbin/samba -D
11256 ? S 0:00 /usr/local/samba/sbin/smbd -D --option=server role check:inhibit=yes --foreground
11257 ? S 0:00 /usr/local/samba/sbin/smbd -D --option=server role check:inhibit=yes --foreground
11259 ? S 0:02 /usr/local/samba/sbin/winbindd -D --option=server role check:inhibit=yes --foreground
11262 ? S 0:00 /usr/local/samba/sbin/smbd -D --option=server role check:inhibit=yes --foreground
11264 ? S 0:00 /usr/local/samba/sbin/winbindd -D --option=server role check:inhibit=yes --foreground
11268 ? S 0:00 /usr/local/samba/sbin/smbd -D --option=server role check:inhibit=yes --foreground
11270 ? S 0:00 /usr/local/samba/sbin/smbd -D --option=server role check:inhibit=yes --foreground
18783 ? S 0:00 /usr/local/samba/sbin/smbd -D --option=server role check:inhibit=yes --foreground
18785 ? S 0:00 /usr/local/samba/sbin/samba -D
So I would run 'kill -9 11252'. I would remove this one first because
of the 'Ss', this should also remove any children of this process.
Rowland
More information about the samba
mailing list