https://help.ubuntu.com/community/MountWindowsSharesPermanently
Is what I'm going from.
I'm on ubuntu server LTS 12.04.4, and unRaid 5.0.5, Plex 2.0.20
The ubuntu server is connecting to the unRaid server via cifs. On the ubuntu box, you need to install cifs-utils either through package manager or apt-get at command line on the ubuntu box.
make a backup of the /etc/fstab file somewhere, then I made the following modifications:
//dumbo/Movies /media/Movies cifs file_mode=0777,dir_mode=0777,_netdev,user=<username>,password=<password>,uid=1000,gid=1000 0 0
//dumbo/Audio /media/Audio cifs file_mode=0777,dir_mode=0777,_netdev,user=<username>,password=<password>,uid=1000,gid=1000 0 0
//dumbo/Tv /media/Tv cifs file_mode=0777,dir_mode=0777,_netdev,user=<username>,password=<password>,uid=1000,gid=1000 0 0
//dumbo/Othervideo /media/Othervideo cifs file_mode=0777,dir_mode=0777,_netdev,user=<username>,password=<password>,uid=1000,gid=1000 0 0
where dumbo is unRaid box, /media/Movies etc are empty real folders on the ubuntu box. <username> is a unRaid user name, <password> is the corresponding password.
Each share is mounted with 777 full read/write/execute for owner/group/ and others permissions. I wanted to get the shares mounted like this because I'm using the ubuntu server as a Plex streaming box. Plex Server runs under the user 'plex' and that user needed to have read/write permissions for the shares, or the metadata it gathers wouldn't work - and other fails.
[sOLVED]