Hot to do gio mount if my password is @? I want mount using well-known way
gio mount smb://<user>:<password>@<server>/<share>/
For my case
gio mount 'smb://WORKGROUP;q:@@192.168.122.236/sambashare'
But it doesn’t work… I already asked here without success. This is how to reproduced. There are Ubuntu 25.10 on host and remote machine.
Instruction is based on Install and Configure Samba
On host
a@host:~$
IP=192.168.122.236 && user="q"
ssh-copy-id $user@$IP
ssh $user@$IP
On remote (samba server)
a@rem1:~$
sudo apt update && sudo apt install -y samba
mkdir -p "$HOME/sambashare/"
sudo service smbd restart
sudo ufw allow samba
pass='@' && echo -e "$pass\n$pass" | sudo smbpasswd -a -s $(id -un)
sudo --preserve-env=HOME sh -c 'cat <<EOF >> "/etc/samba/smb.conf"
[sambashare]
comment = Samba on Ubuntu
path = "$HOME/sambashare"
read only = no
browsable = yes
EOF'
Then on the host
a@host:~$
: ${IP:="192.168.122.236"}
: ${user:="q"}
cdBasePath="/run/user/1000/gvfs/smb-share:domain=WORKGROUP,server="$IP",share=sambashare,user=${user}/"
password_smb="@"
# Prepare and mount remote folder to filesystem
remoteBasePath="smb://WORKGROUP;${user}@$IP/sambashare"
echo "Time to mount remote folder \""${remoteBasePath}"\" to my PC at \""${cdBasePath}"\""
# Mount Server's folder to filesystem
# wrong, why?
# gio mount "$remoteBasePath"
# gio mount 'smb://WORKGROUP;q:@@192.168.122.236/sambashare'
# workaround
echo "$password_smb" | gio mount "$remoteBasePath"