sudo apt install samba samba-common-bin

/etc/samba/smb.conf -->
[consume]
   comment = Paperless Daten
   path = /opt/paperless/paperless-ngx/consume
   browsable = yes
   writable = yes
   guest ok = no
   create mask = 0770
   directory mask = 0770
   valid users = paperless

sudo systemctl restart smbd

sudo smbpasswd -a paperless