1. Goal
Access SMB shared folders from Slackware with credentials and stable options.
2. Files and components involved
/etc/fstab
/root/.smbcred
/mnt/share-win
/sbin/mount.cifs
3. Operational flow
vi /root/.smbcred
chmod 600 /root/.smbcred
mkdir -p /mnt/share-win
mount -t cifs //host/share /mnt/share-win -o credentials=/root/.smbcred
4. Operational verification
mount
grep cifs
ls -la /mnt/share-win
umount /mnt/share-win
5. Practical notes
After every restart, check listening sockets, logs, permissions, and the users accessing the service.
Before exposing the service in production, test access from a validation host and check any ACLs or firewall rules.
Quick checklist
[ ] Backup or copy of the existing configuration completed
[ ] Files and commands updated as expected
[ ] Local test completed successfully
[ ] Logs or final output verified
[ ] Rollback procedure documented