webosbrew / dev-manager-desktop

Device/DevMode Manager for webOS TV
Apache License 2.0
1.17k stars 73 forks source link

Permission denied on copying file to Kodi #179

Closed wbmk78 closed 8 months ago

wbmk78 commented 8 months ago

Hi, i installed Kodi correctly, but afterwards when i want to copy my advancedsettings.xml and sources.xml to the userdata folder, i get a permission denied message.

can i use chmod to alter the restrictions or do i need to use a different method?

mariotaku commented 8 months ago

Yes, I think chmod should work for your case. By the way how did you copy the files? Did you copy by SFTP tools?

wbmk78 commented 8 months ago

Hi, thanx for replying.. I did a install as per the instructions on this site: https://kodi.wiki/view/HOW-TO:Install_Kodi_for_webOS

Worked like a charm, but adding my own files is a bit of a problem due to permission restrictions..

I am uncertain what i need to do to get chmod working.. can't use sudo it seems.. not familiar with this terminal..

Could you point me in de right direction? Thanx in advance!

edit- I did not use a other method than the terminal in Devmode manager

Cyberoliv commented 8 months ago

Hi 🙂 I installed Kodi the same way and I have exactly the same problem. I tried to upload my advancedsettings.xml in /media/developer/apps/usr/palm/applications/org.xbmc.kodi/.kodi/userdata but got a "permission denied". I tried to do it via the "WebOS Dev Manager" App "Files" explorer, maybe wrong way ! But I dunno other yet.

image

image

I can upload elsewhere and try to chmod, but i can't :-( Is rooting the TV required ?

throwaway96 commented 8 months ago

I believe the permissions on everything under /media/developer should be set to 777 (i.e., read/write/execute for everyone) after a reboot.

Otherwise, you're probably not going to be able to change the permissions on any app directories without root. They'll be owned by some UID/GID you don't have access to.

Cyberoliv commented 8 months ago

I believe the permissions on everything under /media/developer should be set to 777 (i.e., read/write/execute for everyone) after a reboot.

Indeed, permissions 777 were applied after restarting the TV and I was able to add my files. And they have been recognized by Kodi !

Thanks !

wbmk78 commented 8 months ago

Thanx all for replying. Will try a complete reboot (quickstart off) when i get home!

wbmk78 commented 8 months ago

Yes, a reboot worked! Thanx again!

mariotaku commented 8 months ago

Looks like it's our old friend again. webOS jailer doesn't have right permission upon first installation sometimes.