sudo apt install samba
sudo apt install smbclient
samba -V
Version 4.16.4-Ubuntu
workgroup = WORKGROUP
client max protocol = SMB3
client min protocol = NT1
server max protocol = SMB3
server min protocol = NT1
security = user
force user = user
sudo service smbd restart
sudo service smbd status
sudo smbstatus // display connections to server
sudo apt-mark hold samba // unhold samba TO UPGRADE
sudo apt-mark hold smbclient // unhold smbclient TO UPGRADE
These parameters allow to browse Windows LAN and network machines in Dolphin. To access shared folders on Windows PCs login and password are needed: Any Any. Problem with Windows 7 PC.
Actually only server min protocol = NT1 can be used, but in such case there will be no WORKGROUP icon in Dolphin and NO access to Windows 10 computers with SMB 1.0 activated BUT access to Windows 7 PC will be granted - therefore both client NT1 are necessary (for Windows 10 PCs with SMB 1.0). All Windows PCs and Android devices have access to shared folders on Kubuntu 22.10.
No access to shared folders on Windows
testparm
# Global parameters
[global]
client max protocol = NT1
client min protocol = NT1
log file = /var/log/samba/log.%m
logging = file
map to guest = Bad User
max log size = 1000
obey pam restrictions = Yes
pam password change = Yes
panic action = /usr/share/samba/panic-action %d
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
passwd program = /usr/bin/passwd %u
security = USER
server max protocol = SMB3
server min protocol = NT1
server role = standalone server
server string = %h server (Samba, Ubuntu)
unix password sync = Yes
usershare allow guests = Yes
workgroup = WORKGROUP
idmap config * : backend = tdb
force user = user
[printers]
browseable = No
comment = All Printers
create mask = 0700
path = /var/tmp
printable = Yes
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
[public]
guest ok = Yes
path = /media/user/drive/public/
read only = No
[soft]
guest ok = Yes
path = /media/user/drive/soft/
WSDD configuration file location and settings
Avahi daemon configuration file location and settings
sudo apt install cifs-utils - in case you need this functionality.
No comments:
Post a Comment