I should mention that one of the files on this share is a keepass database, and I want to periodically synchronize a local copy of the database (On the Mint laptop) to it.
Through scanning the forums and the web, I can almost do what I want. I tried two different methods, described below.
1) I tried file > connect to server, and I can successfully connect to the smb share this way. It shows up as smb://user1@freenasIP/share. I don't have the option to use my Linux credentials as the default (like I do with windows), but there is an option to remember it so it's not too bad.
The bigger issue is that this share does not show up in the keepass2 file browser (based on mono I think?), so I cannot sync the keepass database without manually copying the file locally first (clunky and annoying). Also, it'd be nice if this share could show up in the user's home folder.
2) I tried editing fstab, adding the following line (and various variants of it):
Code: Select all
//freenasIP/share /home/user1/share cifs username=user1,password=pw,nofail,noperm,uid=1000,gid=1000 0 0
My issue here is I again can't seem to use the Linux Mint credentials for the SMB credentials. And I'm not keen on leaving a plaintext password on the system. I could use a credentials file, but as I understand it that would still be in plain text, just not accessible by any user who logged on.
With that background, can some one advise me on how improve upon these methods (or what instruction I failed to find on the web in my noobness...)?
The thing that seemed closest was fstab: if I could get the mount to automatically use the Linux Mint credentials for the SMB credentials (like Windows seems to by default) I think I am done.
If that isn't possible, then an encrypted file with the SMB credentials would be an acceptable plan B. Is this easy to do? Did I miss someting when looking at the credentials option to fstab?
Alternatively, I'm OK with the first option (connect to server) if I could get the share to show up in the keepass2 file browser (for syncing the database); being able to also map it to the user's home folder and/or use the Linux Mint credentials to connect to SMB would be bonuses.
I'm not attached to either of these methods in principle, they are just what I found & explored in a few hours of web research & experimentation.
If there's a better way to easily access my NAS from 3 windows and a linux mint computer, I'm all ears. Thus far it has been easiest for me to just set the same credentials for each of the 4 computers, set the freenas share to take these creds, and it all works (well except for this snag I'm hitting with Mint).
Thanks in advance for any advice