How to mount a public Windows Samba share using GIO

Publikováno

v

,

Samba version 4 doesn’t show the Anonymous option in the authentication dialog and leaving username and password empty doesn’t work. The solution is to use anonymous as both username and password.

gio mount smb://anonymous:anonymous@spike.local/users/Public

The mounted folder can then be accessed from a file manager (such as nemo) or in /run/user/$(id -u)/gvfs.