Page 1 of 1

Files saved under wrong user&group.

Posted: April 15th, 2014, 10:08 am
by martein
Dear Sabnzbd,

first of all, I want to say I've been a great fan of your product and I been using it for a while.
But not long ago, files started disapearing on my QNAP-Nas.
According to the logs, the file was downloaded, but not visible in the share.

I loged in with admin account by SSH and the files were visible.
I did a

Code: Select all

ls /l
and notised files were created with the wrong user&group.

When I loged into the control panel, I saw there was an update from QNAP and one from SABnzbd.
I installed both, fater which no new files were visible anymore.
I did a complete deinstall from SABnzbd, renamed the folders and reinstalled.

Code: Select all

[/share/MD0_DATA/Download/sabnzbd] # chmod -R 766 complete
[/share/MD0_DATA/Download/sabnzbd] # chown -R martein:everyone complete
The excisting folder rights are correct
[/share/MD0_DATA/Download/sabnzbd] and all in it are 766.
[group: martein:users]

All new folder and files made by sabnzbd are created
[group: admin:admin]
Main folders are visible, but the content in it, isn't anymore.

How can I correct this?
On the QNAP forums, they didn't know a solution.

Thanks in advanced.

I miss my SABnzbd :-[

Re: Files saved under wrong user&group.

Posted: April 15th, 2014, 11:56 am
by shypike
SABnzbd will create all files under the account it runs.
Unless you write a user script that sets the ownership right (assuming this is possible),
there's no way to change ownership.
You can, however, change access rights: use the permissions field in Config->Folders.
(More info: http://wiki.sabnzbd.org/unix-permissions )

Re: Files saved under wrong user&group.

Posted: April 15th, 2014, 1:46 pm
by martein
I setup those rights.
But when it comes to ownership I guess I'm fucked then :(

Re: Files saved under wrong user&group.

Posted: April 16th, 2014, 3:41 am
by shypike
Unless you run SABnzbd under the same account as the account that should own the files.