For Ubuntu system, follow the steps below:
1. Install samba service
sudo apt update
sudo apt install samba -y
2. Create a shared directory
sudo mkdir -p /home/share sudo chmod -R 777 /home/share
3. Configure samba service
sudo vim /etc/samba/
[sambashare] path = /home/share browseable = yes read only = no writable = yes guest ok = yes force user = nobody
4. Restart the samba service and configure the Linux firewall
sudo systemctl restart smbd
sudo systemctl enable smbd
sudo ufw allow samba
access
win+R opens the run bar Enter \\192.168.\sambashare,Wait for the pop-up window and enter the username and password to access it
##The above method is too troublesome. You can directly access the sambashare shared folder as the drive letter of my computer, such as: Z Open "This Computer" Click on the top menu “Mapping Network Drives” Select a drive letter, for example: Z: Fill in the folder:\\192.168.1.100\sambashare Check: ✅ Recovery when reconnecting ✅ Log in with other credentials (if user is set) Enter a username/password,Complete the mapping!
6. For some win11 24H2 system access to samba may prompt extension errors, just execute the following two CMD commands.
1. Right-click the administrator to run PowerShell, and execute and issue two commands in turn.2. Set-SmbClientConfiguration -RequireSecuritySignature $false# Press Enter and enter Y3. Set-SmbClientConfiguration -EnableInsecureGuestLogons $true# Press Enter and enter Y