Files saved under wrong user&group.

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
martein
Newbie
Newbie
Posts: 2
Joined: April 15th, 2014, 9:51 am

Files saved under wrong user&group.

Post 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 :-[
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Files saved under wrong user&group.

Post 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 )
martein
Newbie
Newbie
Posts: 2
Joined: April 15th, 2014, 9:51 am

Re: Files saved under wrong user&group.

Post by martein »

I setup those rights.
But when it comes to ownership I guess I'm fucked then :(
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Files saved under wrong user&group.

Post by shypike »

Unless you run SABnzbd under the same account as the account that should own the files.
Post Reply