[mythtv-users] Opening a symlink over smb

DFishburn dfishburn.mythtv at gmail.com
Sat Jul 14 13:27:51 UTC 2012


On 14/07/2012 12:51 AM, Robert Longbottom wrote:
> ...
> What I did was the following:
>
> 1.  Created a new directory "renames".
> 2.  Used mythlink.pl to create symlinks in this directory.
> 3.  Added a new samba share
> 4.  Try to watch the recordings over samba using the link human readable name.
>
> This always leads to permission denied errors.
> This also occurs if I map the drive on my Windows box and try to get VLC to play it.
>
> I was hoping someone who has more experience at this could spot my problem or tell me how to do it right.
>
> This is my directory:
> drwxrwxr-x 11 motion mythtv  8192 Jul  1 14:30 ./
> drwxr-xr-x 16 root   root    4096 Jul  3 19:18 ../
> drwxrwxrwx  3 mythtv mythtv 40960 Jul 13 00:00 recordings/
> drwxrwxrwx  2 mythtv mythtv  8192 Jul 13 22:02 renames/
>
> This is the recording I am trying to play:
> fishburn at myth:/media/mythtv/renames$ ll Desperate_Housewives_-_2012-05-13\,_9-01_PM_-_Give_Me_the_Blame\;_Finishing_the_Hat.mpg
> lrwxrwxrwx 1 mythtv mythtv 48 Jul 13 22:02 Desperate_Housewives_-_2012-05-13,_9-01_PM_-_Give_Me_the_Blame;_Finishing_the_Hat.mpg -> /media/mythtv/recordings/1004_20120513210100.mpg*
>
> fishburn at myth:/media/mythtv/renames$ ll /media/mythtv/recordings/1004_20120513210100.mpg
> -rwxrwxrwx 1 mythtv mythtv 4632797184 May 13 23:00 /media/mythtv/recordings/1004_20120513210100.mpg*
>
>
> On windows, I map the drive using the mythtv user.
>
> This is my samba config.
> [global]
> workgroup = MSHOME
> server string = %h server (Samba, Mythbuntu)
> log file = /var/log/samba/log.%m
> max log size = 1000
> syslog = 0
> panic action = /usr/share/samba/panic-action %d
> dns proxy = no
> security = user
> printing = bsd
>
> domain master = yes
> local master = yes
> preferred master = yes
> os level = 100
> netbios name = OPENELEC
> security = user
> guest account = root
> socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536
> wins support = yes
> syslog only = yes
> name resolve order = lmhosts wins bcast host
> printcap name = /dev/null
> load printers = no
>
>
> [tv]
> path = /media/mythtv/renames
> available = yes
> browsable = yes
> public = yes
> writable = yes
> valid users = mythtv atv
> create mask = 0777
>
> You probably need to set
>
> follow symlinks = yes
>
> I think that might do it.
>
>
Thanks Robert, that got me almost there.

In the end I needed the following:

In the [global] section:
unix extensions = no

In my share I need both of these:
follow symlinks = yes
wide links = yes

Wide links was required since the links are in the /renames directory 
and they reference the /recordings directory which are not within the 
same share.

Much appreciated.

Dave




More information about the mythtv-users mailing list