Note that the credentials in this file are read from the equals sign to a line feed. smbcredentials) Create this file in the osmc home, so using nano: nano ~/.smbcredentials This is what a credentials file should look like. We suggest the usage of a “credentials” file for security reasons. Some setups may require vers=3.1.1 to be used instead (possibly Synology users). ![]() You may have to add an additional parameter to your /etc/, namely vers=3.0 to enforce the usage of SMB version 3 especially if you have connection issues with Windows 10. This is true for all of the following examples also.] The mounts will not automatically be unmounted if the mount point ends with a /. [ EDIT : Make sure that the mount point (/mnt/… does not end with a / )įor example, /mnt/server/share1/ will cause problems with autofs. mnt// -fstype=cifs,rw,credentials=/home/osmc/.smbcredentials,iocharset=utf8,uid=osmc,gid=osmc :/// Next you need to create a map to the share: sudo nano /etc/Īnd add /mnt// -fstype=cifs,rw,credentials=/home/osmc/.smbcredentials,iocharset=utf8,uid=osmc,gid=osmc :/// (Don’t forget to save the file: CTRL-O ENTER CTRL-X) Just a plain \ before the space is all that’s needed.įor SMB shares sudo nano /etc/auto.masterĪnd add to the end of the file: /- /etc/ -timeout 15 browse If you are migrating from using fstab, you were used to replacing spaces with \040.For example /mnt/My Files should be /mnt/My\ Files If you have spaces in the name, then you need a \ before the space.For example if your server is MyServer, then /mnt/ would become /mnt/MyServer ![]() ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |