How To: Mount a cifs share permanently with correct rw permissions

Put simply: How to mount a cifs share in linux permanently with the correct permissions to allow read-write access.

In /etc/fstab

// /mnt/sharedir cifs uid=$&;1000,guid=$&;1000,rw,credentials=/home/$&;user/.$&;passwordfile,$&;user 0 0}

Replace $ value with your own uid, guid and credentials file location and user.

The credentials file should be set out like:



Like this Article? Share it!

About the Author

Author Gravatar

Andy has been in IT support in the academic industry for over 7 years now, with an in-depth knowledge of both Windows and Unix based systems.

Related Posts

Leave a Comment