compilação do Samba 4 no centos7 - Error NT_STATUS_CONNECTION_REFUSED

1. compilação do Samba 4 no centos7 - Error NT_STATUS_CONNECTION_REFUSED

Perfil removido
removido

(usa Nenhuma)

Enviado em 26/02/2018 - 13:18h


# /opt/samba/bin/smbclient -L localhost -U%
Connection to localhost failed (Error NT_STATUS_CONNECTION_REFUSED)


# /opt/samba/sbin/samba -V
Version 4.7.5


# nmap localhost

Starting Nmap 6.40 ( http://nmap.org ) at 2018-02-26 13:10 BRT
Nmap scan report for localhost (127.0.0.1)
Host is up (0.000011s latency).
Other addresses for localhost (not scanned): 127.0.0.1
Not shown: 993 closed ports
PORT STATE SERVICE
22/tcp open ssh
25/tcp open smtp
53/tcp open domain
135/tcp open msrpc
49152/tcp open unknown
49153/tcp open unknown
49154/tcp open unknown

Nmap done: 1 IP address (1 host up) scanned in 0.25 seconds


Comunicação entre as maquinas da rede com ping OK

# systemctl disable firewalld
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
Removed symlink /etc/systemd/system/basic.target.wants/firewalld.service.

# systemctl stop firewalld


# cat /etc/selinux/config

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
# SELINUX=enforcing
SELINUX=disabled
# SELINUXTYPE= can take one of three two values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted




# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp dpt:microsoft-ds
ACCEPT tcp -- anywhere anywhere tcp dpt:epmap
ACCEPT tcp -- anywhere anywhere tcp dpt:netbios-ssn
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT icmp -- anywhere anywhere
ACCEPT all -- anywhere anywhere
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited

Chain FORWARD (policy ACCEPT)
target prot opt source destination
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited

Chain OUTPUT (policy ACCEPT)
target prot opt source destination



# iptables -L -t nat
Chain PREROUTING (policy ACCEPT)
target prot opt source destination

Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Chain POSTROUTING (policy ACCEPT)
target prot opt source destination




# cat /etc/resolv.conf
; generated by /usr/sbin/dhclient-script
nameserver 8.8.8.8



  


2. Re: compilação do Samba 4 no centos7 - Error NT_STATUS_CONNECTION_REFUSED

Daniel Lara Souza
danniel-lara

(usa Fedora)

Enviado em 26/02/2018 - 15:38h

e com algum usuário por exemplo admin

/opt/samba/bin/smbclient -L localhost -U admin

funciona ?


3. Re: compilação do Samba 4 no centos7 - Error NT_STATUS_CONNECTION_REFUSED

Perfil removido
removido

(usa Nenhuma)

Enviado em 26/02/2018 - 17:18h

danniel-lara escreveu:

e com algum usuário por exemplo admin

/opt/samba/bin/smbclient -L localhost -U admin

funciona ?


# /opt/samba/bin/smbclient -L localhost -U centos
Enter centos's password:

Sharename Type Comment
--------- ---- -------
netlogon Disk
sysvol Disk
exatas Disk compartilha com exatas
IPC$ IPC IPC Service (Samba 4.7.5)
Reconnecting with SMB1 for workgroup listing.
Connection to localhost failed (Error NT_STATUS_CONNECTION_REFUSED)
Failed to connect with SMB1 -- no workgroup available


Usuário e senha ok no Windows não funciona:
\\ip



4. Re: compilação do Samba 4 no centos7 - Error NT_STATUS_CONNECTION_REFUSED

Carlos A. P. Cunha
Carlos_Cunha

(usa Linux Mint)

Enviado em 26/02/2018 - 18:45h

Opa!
Já esta errado o DNS, o mesmo deve estar com seu IP.

Siga os processo oficial.



#-------------------------------------------------------------------------------------#
Administrador de Redes Mistas Linux/Windows
LPI 101-102
LPI 201
Para consultas particulares acesse:
www.cunhatec.com.br

"Falar é fácil, me mostre o código." - Linus Torvalds


5. Re: compilação do Samba 4 no centos7 - Error NT_STATUS_CONNECTION_REFUSED

Perfil removido
removido

(usa Nenhuma)

Enviado em 26/02/2018 - 23:14h


https://wiki.samba.org/index.php/Setting_up_Samba_as_an_Active_Directory_Domain_Controller#Introduct...

Seria isso?

# cp /opt/samba/private/krb5.conf /etc/krb5.conf


# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
10.0.0.1 DC1.jmn.example.com DC1

# cat /etc/resolv.conf
domain jmn.example.com
nameserver 8.8.8.8

# reboot


# /opt/samba/bin/smbclient -L localhost -U%

Sharename Type Comment
--------- ---- -------
netlogon Disk
sysvol Disk
exatas Disk compartilha com exatas
IPC$ IPC IPC Service (Samba 4.7.5)
Reconnecting with SMB1 for workgroup listing.

Server Comment
--------- -------

Workgroup Master
--------- -------


1- Usuário e senha não esta funcionando no Windows

# /opt/samba/bin/smbclient -L localhost -Ucentos


2- Centos não aparece no ambiente de rede do Windows






6. Re: compilação do Samba 4 no centos7 - Error NT_STATUS_CONNECTION_REFUSED

Perfil removido
removido

(usa Nenhuma)

Enviado em 27/02/2018 - 13:11h

Coloquei o usuário administrator e Administrator conforme o samba4 não funcionou.




7. Re: compilação do Samba 4 no centos7 - Error NT_STATUS_CONNECTION_REFUSED

Carlos A. P. Cunha
Carlos_Cunha

(usa Linux Mint)

Enviado em 01/03/2018 - 15:43h

Recomendo refazer tudo, pois algo não fez como eles informarão.
Sempre me baseio pelo link que passei e não tenho problemas.
Eu tentaria isso....

#-------------------------------------------------------------------------------------#
Administrador de Redes Mistas Linux/Windows
LPI 101-102
LPI 201
Para consultas particulares acesse:
www.cunhatec.com.br

"Falar é fácil, me mostre o código." - Linus Torvalds






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts