Permissions denied. Cannot understand why.

  • I have tried to fix this problem for a while now and I do not understand why this cant be done. SickRage cannot copy files to a share (log error further down).


    For a short while I thought it worked but now the problem is back. I have restarted OMV at least once.
    Could it be related to this error I get when I try to add a folder to my zfs pool?



    Could it be that the error with fstab is caused by some permission problem? And that makes all my changes only work for this session and be reverted after a restart?


    How can I fix this so all members in the Users group (that Sickrage should be a part of) can read and write in all shares? I can use these folders from all other computers on my network, even from my Android box running Kodi (adding Subtitles). That makes me think this must be a OMV problem.


    Both these shares are added with "Remote Share" plugin. One is placed on a Buffalo Nas and the other is on a Windows 10 machine. I can read and write

    Code
    2015-12-13 09:03:35 POSTPROCESSER::Unable to copy file /media/a6eceb29-64d8-48b4-8703-1f79c9c59f08/nyheter/tv/Scorpion.S02E11.HDTV.x264-LOL/scoprion.211.hdtv-lol.mp4 to /media/a6eceb29-64d8-48b4-8703-1f79c9c59f08/data/tools/mnt/share/share/TV3/Scorpion/Season 02/Scorpion - S02E11 - The Old College Try.mp4: error 13 : Permission denied
    2015-12-13 09:03:34 POSTPROCESSER::Unable to copy file /media/a6eceb29-64d8-48b4-8703-1f79c9c59f08/nyheter/tv/NCIS.Los.Angeles.S07E10.HDTV.x264-LOL/ncis.los.angeles.710.hdtv-lol.mp4 to /media/a6eceb29-64d8-48b4-8703-1f79c9c59f08/data/tools/mnt/FilmTV/TV/NCIS Los Angeles/Season 07/NCIS Los Angeles - S07E10 - Internal Affairs.mp4: error 13 : Permission denied
  • cat /proc/mounts


    cat /etc/fstab


    id sickbeard
    uid=113(sickbeard) gid=100(users) groups=100(users),1000(Home)

    • Offizieller Beitrag

    Try change some options in /etc/fstab in some cifs mounts like FilmTVusername=server,password=[pwd],gid=100,file_mode=0775,dir_mode=0775,sec=ntlm,_netdev,iocharset=utf8Unmount the remote share umount -l /media/a6eceb29-64d8-48b4-8703-1f79c9c59f08/data/tools/mnt/FilmTV


    run mount -a


    go to the directory run


    sudo -u sickbeard mkdir /media/a6eceb29-64d8-48b4-8703-1f79c9c59f08/data/tools/mnt/FilmTV/test_folder


    If is ok, then sickbeard should work.

  • There is something really off with my permissions.
    I cannot create a file in my zfs folders either. I tried by login in to eXtplorer-plugin and browsing to the folder and then create file.


    So I guess that issue is connected to this one.

  • I may have fixed the problem by adjusting the permissions on folder level, some of the problematic folder had group set as "root" so I changed that.


    I have to wait a while now to see what happens when new things need to be moved.

  • No. I have still got problems. One is Permission denied and the other Operation not permitted.


    Code
    2015-12-15 06:57:00 POSTPROCESSER::Unable to move file /media/a6eceb29-64d8-48b4-8703-1f79c9c59f08/nyheter/tv/The.Expanse.S01E01.720p.HDTV.x264-BATV/The.Expanse.S01E01.720p.HDTV.x264-BATV.mkv to /media/TVserier3/The Expanse/Season 01/The Expanse - S01E01 - Dulcinea.mkv: error 1 : Operation not permitted
    2015-12-15 06:54:23 POSTPROCESSER::Unable to move file /media/a6eceb29-64d8-48b4-8703-1f79c9c59f08/nyheter/tv/Scorpion.S02E12.HDTV.x264-LOL/scorpion.212.hdtv-lol.mp4 to /media/TVserier2/Scorpion/Season 02/Scorpion - S02E12 - Dam Breakthrough.mp4: error 13 : Permission denied


    The "Operation not permitted" seems to be the deletion part that fails, as the file is in place on the target drive. And when I look at ACL the user group have R/W/E permissions.


    The other one is from a remote share and When I look at that one in ACL the group is root and the permissions are R/E. And when I try to change it from the UI I get a long exception starting with:

    Code
    Failed to execute command 'export LANG=C; setfacl --remove-all --recursive -M '/tmp/setfaclLVBAVh' -- '/media/a6eceb29-64d8-48b4-8703-1f79c9c59f08/data/tools/mnt/share/' 2>&1': setfacl: /media/a6eceb29-64d8-48b4-8703-1f79c9c59f08/data/tools/mnt/share/: Operation not supported


    Is this the reason? I can reach that drive from other machines and I can create and delete files just fine.

  • I have the same problem with copy files from omv sichrage to a antoher ovm system CIFS share, i have allways the message "permission denied"


    @7ore please give me more information to fix this (preferably in german)


    Thank you

  • I cannot really remember how I fixed it. Probably by making sure "Everyone" have read/write access on the remote system (yes I know, security issues and so on). And as for German, I do not know enough German to pull that off.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!