sudo apt install cifs-utils
sudo mkdir /mnt/media
cat <<EOF > ~/.smbcredentials
username=xxx
password=xxx
EOF
echo "//$smb_server/media /mnt/media cifs credentials=/home/$user/.smbcredentials,uid=1000,gid=1000,iocharset=utf8 0 0" >> /etc/fstab
sudo mount -a
Last modification:August 24, 2022
© Allow specification reprint