I am trying to get a basic post processing script written. I have it completed, but get a permission denied on deleting a directory.
Quick background...I am running sab version 0.7.9 on a Synology DS1512+.
I replicated the steps manually by ssh'ing into the box and and switching to the sabnzbd users. I get the same error on this last step. Obvious permissions issue. Heres is the problem though. I have SAB create folders with 777 permissions. When I do ls -la the permissions are 777. The folder is totally empy. When a I manually create a folder, I can remove it without any issue.
Below are the errors I get:
If you look at the permissions they look to be correct. Does SAB have a folder or file lock that it adds. Am I being a total idiot and the issue is right under my nose....Please help:-)
Code: Select all
MacDaddyNAS> su sabnzbd
BusyBox v1.16.1 (2012-09-26 04:07:47 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.
/volume1/@appstore/sabnzbd/var $ cd /volume1/Ebooks/00Downloads/
/volume1/Ebooks/00Downloads $ whoami
sabnzbd
/volume1/Ebooks/00Downloads $ ls -lrth
drwxrwxrwx 2 sabnzbd users 4.0K Feb 6 11:02 Microsoft.Press.-.Team.Collaboration.Using.Microsoft.Office.for.More.Effective.Teamwork.2012.RETAiL.eBOOk-rebOOk
drwxrwxrwx 2 sabnzbd users 4.0K Feb 6 11:04 Manning.Hello.HTML5.and.CSS3.2012.RETAIL.eBook-ELOHiM
/volume1/Ebooks/00Downloads $ rm -rf Manning.Hello.HTML5.and.CSS3.2012.RETAIL.eBook-ELOHiM/
rm: can't remove 'Manning.Hello.HTML5.and.CSS3.2012.RETAIL.eBook-ELOHiM': Permission denied
/volume1/Ebooks/00Downloads $ rmdir Manning.Hello.HTML5.and.CSS3.2012.RETAIL.eBook-ELOHiM/
rmdir: 'Manning.Hello.HTML5.and.CSS3.2012.RETAIL.eBook-ELOHiM/': Permission denied
