March 24, 200818 yr Hi all, i'm sorry but i don't understand clearly the share functionality. In my unraid server i have 4 HDD, the disk3 is used to save my movie, i have the following structure : - Disk3 - MOVIES - DOCUMENTS - CONCERTS - COMICS My need is simple, i must have a directory named tvixhd1, it's obligatory for my HDD multimedia Dvico. And in this directory i would like to add the folders of my disk3. Is it possible ? Thanks for help
March 24, 200818 yr This will get you close... type the following commands, or add them to the end of your "go" script and then reboot the unRaid server. (If you type them, you do not need to do the "sleep" command, it is only to give the array time to come on-line in the "go" script. You only need the echo commands. It will create a new read-only share named "tivxhd1", pointing to /mnt/disk3 where it will then have access to the folders within it. The last line, smbcontrol will request that the samba process re-reads the smb.shares file to create the new share for your media player. Yes, there are other ways to do this, but this is probably the easiest. To have a user share automatically created would have required you to have a top-level directory named tvixhd1 on disk3 and the other directories within it. This is messy for your other PCs on your lan. By simply adding an entry as I show below using the name "tvixhd1" you get a SAMBA share/alias to the exact same folders that are on disk3, but with the name you need for your media player. Joe L. sleep 30 echo "[tvixhd1]" >>/etc/samba/smb.shares echo "path = /mnt/disk3" >>/etc/samba/smb.shares echo "read only = Yes" >>/etc/samba/smb.shares echo "force user = root" >>/etc/samba/smb.shares echo "map archive = Yes" >>/etc/samba/smb.shares echo "map system = Yes" >>/etc/samba/smb.shares echo "map hidden = Yes" >>/etc/samba/smb.shares echo "create mask = 0711" >>/etc/samba/smb.shares echo "directory mask = 0711" >>/etc/samba/smb.shares smbcontrol smbd reload-config
March 24, 200818 yr Author Hi Joe, 1000 thanks to you, i tested quickly and it's work fine. Tomorrow i will test more.
Archived
This topic is now archived and is closed to further replies.