Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Users

Opening a symlink over smb

 

 

MythTV users RSS feed   Index | Next | Previous | View Threaded


dfishburn.mythtv at gmail

Jul 13, 2012, 7:25 PM

Post #1 of 3 (370 views)
Permalink
Opening a symlink over smb

I am using Mythbuntu 12.04 with XBMC 11.0.

I didn't realize XMBC didn't support 0.25 fixes, so I am trying to find
some stop gap measures.

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] myt:/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] myt:/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



In Windows explorer, I am simply trying to copy the file (link name) to
a different directory.
"You need permission to perform this action"

In my XBMC logs I see (different file but the same for each of them):
20:54:06 T:62325248 INFO: FileSmb->Open: Unable to open file :
'smb://atv:atv [at] m4/tv/Undercover%5fBoss%5f%2d%5f2012%2d05%2d11%2c%5f8%2d00%5fPM%5f%2d%5fMasTec%2empg'
unix_err:'d' error :
'Permission denied'


Any suggestions for me?

Thanks,
Dave

_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-users


rongblor at googlemail

Jul 13, 2012, 9:51 PM

Post #2 of 3 (355 views)
Permalink
Re: Opening a symlink over smb [In reply to]

On 14 Jul 2012, at 03:25 AM, DFishburn <dfishburn.mythtv [at] gmail> wrote:

> I am using Mythbuntu 12.04 with XBMC 11.0.
>
> I didn't realize XMBC didn't support 0.25 fixes, so I am trying to find some stop gap measures.
>
> 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] myt:/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] myt:/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.

Cheers,
Robert.

>
>
> In Windows explorer, I am simply trying to copy the file (link name) to a different directory.
> "You need permission to perform this action"
>
> In my XBMC logs I see (different file but the same for each of them):
> 20:54:06 T:62325248 INFO: FileSmb->Open: Unable to open file : 'smb://atv:atv [at] m4/tv/Undercover%5fBoss%5f%2d%5f2012%2d05%2d11%2c%5f8%2d00%5fPM%5f%2d%5fMasTec%2empg'
> unix_err:'d' error : 'Permission denied'
>
>
> Any suggestions for me?
>
> Thanks,
> Dave
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users [at] mythtv
> http://www.mythtv.org/mailman/listinfo/mythtv-users
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-users


dfishburn.mythtv at gmail

Jul 14, 2012, 6:27 AM

Post #3 of 3 (345 views)
Permalink
Re: Opening a symlink over smb [In reply to]

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] myt:/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] myt:/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


_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-users

MythTV users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.