[root@sambaserver home]# findsmb
verificada o smb
consegue enxergar as maquinas na rede
[root@sambaserver home]# whatis findsmb
[root@sambaserver home]# nmblookup LUCASSERVER
192.168.15.80 LUCASSERVER<00>
192.168.1.67 LUCASSERVER<00>
[root@sambaserver samba]# nmblookup -A 192.168.1.67
added interface ens33 ip=2804:d55:5e40:5500:ca53:2f2b:6b73:25da bcast= netmask=ffff:ffff:ffff:ffff::
added interface ens33 ip=192.168.1.67 bcast=192.168.1.255 netmask=255.255.255.0
interpret_interface: using netmask value 255.255.255.0 from config file on interface ens33
add_interface: not adding duplicate interface 192.168.1.67
Socket opened.
Looking up status of 192.168.1.67
LUCASSERVER <00> - B <ACTIVE>
LUCASSERVER <03> - B <ACTIVE>
LUCASSERVER <20> - B <ACTIVE>
..__MSBROWSE__. <01> - <GROUP> B <ACTIVE>
WINDOWS <00> - <GROUP> B <ACTIVE>
WINDOWS <1d> - B <ACTIVE>
WINDOWS <1e> - <GROUP> B <ACTIVE>
MAC Address = 00-00-00-00-00-00
CRIAR USUARIO NO SAMBA
obs deve ser criado tbm no linux com o useradd e passwd antes
[root@sambaserver home]# smbpasswd -a lucas
New SMB password:lucas
Retype new SMB password:lucas
pdbedit -a lucas = tbm cria usuario
smbpasswd -x lucas deletar
visualizar
[root@sambaserver samba]# smbclient -L LUCASSERVER -U lucas%lucas
Sharename Type Comment
--------- ---- -------
demo Disk
publico Disk compartilhammento
downloads Disk downloads
IPC$ IPC IPC Service (Samba 4.12.3)
lucas Disk Home directory of lucas
SMB1 disabled -- no workgroup available
[root@sambaserver samba]# smbcontrol smbd shutdown && smbcontrol nmbd shutdown
shutdown nos server
[root@sambaserver /]# systemctl start {smb,nmb} inicializa o servico
[root@sambaserver samba]# systemctl status {smb,nmb} verifica status
[root@sambaserver samba]# systemctl status {smb,nmb}
[0m smb.service - Samba SMB Daemon
Loaded: loaded (/usr/lib/systemd/system/smb.service; enabled; vendor preset: disabled)
Active: active (running) since Sat 2021-06-26 14:35:45 EDT; 3s ago
Docs: man:smbd(8)
man:samba(7)
man:smb.conf(5)
Main PID: 1960 (smbd)
Status: "smbd: ready to serve connections..."
Tasks: 4 (limit: 11531)
Memory: 7.7M
CGroup: /system.slice/smb.service
1960 /usr/sbin/smbd --foreground --no-process-group
1963 /usr/sbin/smbd --foreground --no-process-group
1964 /usr/sbin/smbd --foreground --no-process-group
1965 /usr/sbin/smbd --foreground --no-process-group
Jun 26 14:35:44 sambaserver systemd[1]: Starting Samba SMB Daemon...
Jun 26 14:35:45 sambaserver smbd[1960]: [2021/06/26 14:35:45.105427, 0] ../../lib/util/become_daemon.c:136(daemon_ready)
Jun 26 14:35:45 sambaserver systemd[1]: Started Samba SMB Daemon.
Jun 26 14:35:45 sambaserver smbd[1960]: daemon_ready: daemon 'smbd' finished starting up and ready to serve connections
[0m nmb.service - Samba NMB Daemon
Loaded: loaded (/usr/lib/systemd/system/nmb.service; enabled; vendor preset: disabled)
Active: active (running) since Sat 2021-06-26 14:35:45 EDT; 3s ago
Docs: man:nmbd(8)
man:samba(7)
man:smb.conf(5)
Main PID: 1961 (nmbd)
Status: "nmbd: ready to serve connections..."
Tasks: 1 (limit: 11531)
Memory: 2.7M
CGroup: /system.slice/nmb.service
1961 /usr/sbin/nmbd --foreground --no-process-group
Jun 26 14:35:44 sambaserver systemd[1]: Starting Samba NMB Daemon...
Jun 26 14:35:45 sambaserver systemd[1]: Started Samba NMB Daemon.
Jun 26 14:35:45 sambaserver nmbd[1961]: [2021/06/26 14:35:45.066960, 0] ../../lib/util/become_daemon.c:136(daemon_ready)
Jun 26 14:35:45 sambaserver nmbd[1961]: daemon_ready: daemon 'nmbd' finished starting up and ready to serve connections
VERIFICA OS USUARIOS DO LINUX CRIADOS
[root@sambaserver home]# pdbedit -L
lucas:1001: