I am trying to setup an auto-mounting network drive. The network drive requires a user/pass. In the man page for "mount.cifs" there are two ways to provide the user/pass.
- [not recommended] put the user/pass in /etc/fstab
- create a separate credentials file and put the user/pass in the credentials file
"[option 2] is preferred over having passwords in plaintext in a shared file, such as /etc/fstab. Be sure to protect any credentials file properly."
- My background is: software developer, lots of linux software development (installing development libraries, installing applications like Eclipse, or java). I am not an IT or sysadmin guy.
- This is on my own development machine
Given my lack of IT/sysadmin background, what is the standard suggested method for "protecting any credentials file properly"?
(I would also appreciate, if there are multiple methods for protecting the credentials file, to please list in order of most common to least and describe the tradeoffs.)