💾 Archived View for gemini.susa.net › linux_notes.gmi captured on 2023-05-24 at 18:04:37. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-01-29)

-=-=-=-=-=-=-

Mount a Samba/CIFS/SMB share on Linux

Create this script in e.g. your local ~/bin/ directory.

#!/bin/bash

echo "Mount /theserver/kevsan to /media/kevsan/mymountpoint"
sudo mount -t cifs -o uid=kevsan,username=kevsan //theserver/kevsan /media/kevsan/mymountpoint