✅ Mount Command (for testing)
You can run this manually to test the mount:
-o credentials=/home/YOUR_USERNAME/.smbcredentials,iocharset=utf8,uid=1000,gid=1000,file_mode=0775,dir_mode=0775
Replace:
-
YOUR_USERNAMEwith your actual Linux username. -
uid=1000andgid=1000with your user/group ID if different (id -uandid -gto check).
✅ 2. Line for /etc/fstab
Add this line to the bottom of /etc/fstab:
//mxuni/wd2-var-www/ /mnt/lan/xiola@mxuni/ cifs credentials=/home/YOUR_USERNAME/.smbcredentials,iocharset=utf8,uid=1000,gid=1000,file_mode=0775,dir_mode=0775 0 0
⚠️ If your username has a space or special characters, wrap the mount path in quotes.
✅ 3. .smbcredentials Format
Ensure this file exists and has the right format and permissions:
username=YOUR_SMB_USERNAME
password=YOUR_SMB_PASSWORD
domain=YOUR_DOMAIN # Optional; remove this line if not needed
Set permissions securely:
chmod 600 ~/.smbcredentials
✅ Test It:
sudo mount -a
If it mounts without errors, it's working