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
如果觉得我的文章对你有用,请随意赞赏