More > JRiver Media Center 21 for Linux

MC21.0.4 won't store samba file paths in Tools-Options (perhaps elsewhere?)

<< < (2/2)

AlexS:
Thanks I'll try again with fstab mounts.

AlexS:
I added this to /etc/fstab and it works...

//{SERVERIP}/Music /media/Music cifs username={UserName},password={Password},rw,nounix,iocharset=utf8,file_mode=0777,dir_mode=0777,sec=ntlm 0 0

Not very secure (exposed passwords) but will do for now...

I'm not sure if the other file path format needs supporting however?

Thanks for your help!

mwillems:
Yeah, don't put your credentials in a world readable file, there's a better way.  Put your credentials in a root owned file that's readable only by root, and then reference that file in the fstab mount instructions. 

Sample formatting for the file and code snippets available here:

https://wiki.archlinux.org/index.php/Samba#Add_Share_to_.2Fetc.2Ffstab

Additionally, if you're running a distro that uses systemd (most modern distros), you might want to consider setting them up to automount on first access so that the mount doesn't fail if the system tries to mount the shares before network is up (also described on the wiki entry I linked).

Navigation

[0] Message Index

[*] Previous page

Go to full version