setup samba on raspberry pi 4 code example Example 1: pi samba config sudo nano /etc/samba/smb.conf Example 2: configure samba on RPI sudo smbpasswd -a pi