[cp@len ~]$ smbclient -U cp //home/cp
Password for [WORKGROUP\cp]:
do_connect: Connection to home failed (Error NT_STATUS_UNSUCCESSFUL)
Где находятся машины:
- Хостовая ОС: KVM/QEMU Rocky Linux 9.3; Ядро: Linux 5.14.0-62.18.1.el9_3.0.1.x86_64_6
- Клиентская ОС: Rocky Linux 9.3; Ядро: Linux 5.14.0-362.8.1.el9_3.x86_6; имя хоста: Лен; IP: 192.168.1.119
Обратите внимание на вкрапления комментариев (# ----- Некоторые пояснения)
# ----- Preliminaries
# smbstatus --version
Version 4.19.4
#
# ----- Verify selinux is disabled:
# getenforce
Permissive
#
# ----- Verify the firewall is not running:
# systemctl status firewallc
Unit firewallc.service could not be found.
#
# ----- Verify the samba daemon is running
# systemctl status smb
● smb.service - Samba SMB Daemon
Loaded: loaded (/usr/lib/systemd/system/smb.service; enabled; preset: disabled)
Active: active (running) since Fri 2024-10-18 15:53:17 EDT; 44min ago
Docs: man:smbd(8)
man:samba(7)
man:smb.conf(5)
Main PID: 5999 (smbd)
Status: "smbd: ready to serve connections..."
Tasks: 3 (limit: 100238)
Memory: 7.3M
CPU: 791ms
CGroup: /system.slice/smb.service
├─5999 /usr/sbin/smbd --foreground --no-process-group
├─6001 /usr/sbin/smbd --foreground --no-process-group
└─6002 /usr/sbin/smbd --foreground --no-process-group
Oct 18 16:26:40 len rpcd_winreg[6193]: Copyright Andrew Tridgell and the Samba Team >
Oct 18 16:35:50 len samba-dcerpcd[6219]: [2024/10/18 16:35:50.047616, 0] ../../source>
Oct 18 16:35:50 len samba-dcerpcd[6219]: samba-dcerpcd version 4.19.4 started.
Oct 18 16:35:50 len samba-dcerpcd[6219]: Copyright Andrew Tridgell and the Samba Tea>
Oct 18 16:35:50 len rpcd_classic[6228]: [2024/10/18 16:35:50.135322, 0] ../../source3>
Oct 18 16:35:50 len rpcd_classic[6228]: rpcd_classic version 4.19.4 started.
Oct 18 16:35:50 len rpcd_classic[6228]: Copyright Andrew Tridgell and the Samba Team>
Oct 18 16:35:50 len rpcd_winreg[6230]: [2024/10/18 16:35:50.153252, 0] ../../source3/>
Oct 18 16:35:50 len rpcd_winreg[6230]: rpcd_winreg version 4.19.4 started.
Oct 18 16:35:50 len rpcd_winreg[6230]: Copyright Andrew Tridgell and the Samba Team >
#
# ----- Print the smb.conf file
# cat /etc/samba/smb.conf
[global]
client min protocol = SMB3
workgroup = WORKGROUP
server string = Samba Server %v
netbios name = 192.168.1.119
security = user
map to guest = bad user
name resolve order = lmhosts bcast host
dns proxy = no
log level = 2
passdb backend = tdbsam
printing = cups
printcap name = cups
load printers = no
cups options = raw
[homes]
comment = Home Directories
browseable = No
read only = No
create mask = 0644
directory mask = 0755
inherit acls = Yes
valid users = cp
# hosts allow = foo
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @printadmin root
force group = @printadmin
create mask = 0664
directory mask = 0775
# ----- Test the smb.conf file
# testparm /etc/samba/smb.conf
Load smb config files from /etc/samba/smb.conf
Loaded services file OK.
Weak crypto is allowed by GnuTLS (e.g. NTLM as a compatibility fallback)
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
# Global parameters
[global]
client min protocol = SMB3
dns proxy = No
load printers = No
map to guest = Bad User
name resolve order = lmhosts bcast host
netbios name = 192.168.1.119
printcap name = cups
security = USER
server string = Samba Server %v
idmap config * : backend = tdb
cups options = raw
[homes]
browseable = No
comment = Home Directories
create mask = 0644
inherit acls = Yes
read only = No
valid users = cp
[printers]
browseable = No
comment = All Printers
create mask = 0600
path = /var/tmp
printable = Yes
[print$]
comment = Printer Drivers
create mask = 0664
directory mask = 0775
force group = @printadmin
path = /var/lib/samba/drivers
write list = @printadmin root
#
# ----- List the server shares
# smbclient -L 192.168.1.119
Password for [WORKGROUP\cp]:
Sharename Type Comment
--------- ---- -------
print$ Disk Printer Drivers
IPC$ IPC IPC Service (Samba Server 4.19.4)
cp Disk Home Directories
SMB1 disabled -- no workgroup available
ERROR
Accessing cp's home directory AS USER cp: ***** FAILS *****
[cp@len ~]$ smbclient -U cp //home/cp
Password for [WORKGROUP\cp]:
do_connect: Connection to home failed (Error NT_STATUS_UNSUCCESSFUL)J
Подробнее здесь: https://stackoverflow.com/questions/791 ... emu-server