Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Please help iron out permissions for folders inside ArchVM, to get SAB running

Featured Replies

I'm running IronicBadger's ArchVM, and have SABnzbd and SickBeard installed.  Since the day I installed these programs, about a month ago, I've never had SABnzbd run without experiencing various permissions issues.  If I just let SAB run, without having it visible in any tab in a browser, it runs for days without problems, but as soon as I look at it for more than a couple minutes, it starts reporting problems with being unable to access folders and/or files.

 

I've replied to and started several threads looking for resolution, and have gotten lots of responses, but it's all been rather hit and miss, and nothing has led to a full resolution, so I decided to create another thread to try to get this resolved once and for all.

 

Here are the issues, and where I am right now.

 

First issue, and possibly the root of all other issues (not sure), is that I am unable to modify the configuration of SABnzbd file locations, and have those changes stick.

 

  * I've just spent some more time investigating this, and it seems that if I select a folder that SAB does not have 'correct' permissions to write to, it will not save that folder in the options.  I tried changing it to some random folder, just to see what would happen, and it did save fine, but gave a warning.

 

2014-05-28 21:13:09,599 ERROR: Cannot change permissions of /mnt/backup/newsgroups

 

I'm not sure why it wanted to change permissions of that folder, nor am I sure why it could not.  However, it did at least save this change in the options, which it was not doing before.  The permissions for that folder are included here...

 

[root@IronicsArchVM_v4 download]# cd /mnt/backup
[root@IronicsArchVM_v4 backup]# ls -l
total 4096
drwxrwxrwx 2 nobody users      0 Oct 29  2012 Amazon
drwxrwxrwx 2 nobody users      0 Jan 16 17:24 Chris
-rwxrwxrwx 1 nobody users   1852 Jun 14  2012 chris Firefox Recovery Key.html
-rwxrwxrwx 1 nobody users 389530 Dec 20  2010 Chris old bookmarks.html
drwxrwxrwx 2 nobody users      0 May 26 02:27 Drivers
-rwxrwxrwx 1 nobody users     95 Oct 30  2013 GARMIN CODES.unl
drwxrwxrwx 2 nobody users      0 May 26 02:16 HTPC Tools
drwxrwxrwx 2 nobody users      0 May 28 20:00 JRMC
drwxrwxrwx 2 nobody users      0 Aug  1  2013 Myrna
drwxrwxrwx 2 nobody users      0 Apr 30 15:45 newsgroups
drwxrwxrwx 2 nobody users      0 May 27 17:38 nzb
drwxrwxrwx 2 nobody users      0 Jan  2 02:32 OpenStreetMaps
drwxrwxrwx 2 nobody users      0 Oct 29  2013 Outlook
drwxrwxrwx 2 nobody users      0 May 14 02:52 Phone Tools
drwxrwxrwx 2 nobody users      0 May 27 02:15 Programs
drwxrwxrwx 2 nobody users      0 May  3 02:16 Quicken
drwxrwxrwx 2 nobody users      0 Oct  4  2012 Rosetta Stone
drwxrwxrwx 2 nobody users      0 Jan 30 20:27 Router
drwxrwxrwx 2 nobody users      0 May 27 02:15 unRAID
-rwxrwxrwx 1 nobody users     62 Oct 31  2012 Windows7HP Product ID.txt

 

Now, if I try changing that to /mnt/download/incomplete, then save, that doesn't stick.  It goes back to /mnt/backup/newsgroups the next time I go into the settings/folder tab.  It also gives this error in the "Latest Warnings" area...

 

2014-05-28 21:27:40,240 ERROR: download_dir directory: /mnt/download/incomplete error accessing

 

permissions for this folder are...

 

[root@IronicsArchVM_v4 download]# cd /mnt/download
[root@IronicsArchVM_v4 download]# ls -l
total 4
drwxr-xr-x 2 root root 4096 May 28 21:17 incomplete

 

I assumed the problem is that the folder has root:root permissions, so I did this...

 

[root@IronicsArchVM_v4 download]# chown -R nobody:users .
[root@IronicsArchVM_v4 download]# ls -l
total 4
drwxr-xr-x 2 nobody users 4096 May 28 21:17 incomplete

 

but that didn't help, so then I did a chmod -R 777 *, and got this...

 

[root@IronicsArchVM_v4 download]# chmod -R 777 *
[root@IronicsArchVM_v4 download]# ls -l
total 4
drwxrwxrwx 2 nobody users 4096 May 28 21:17 incomplete

 

That also did not fix this issue.  I still cannot change the temp download directory to /mnt/download/incomplete.

 

I've been messing around with this for so long, and have tried so many things, I suspect I've jacked it up beyond repair at this point, and am considering just creating a new ArchVM from scratch to see if that resolves all these stupid issues.

 

With that said, I don't know what I did to get these problems in the first place.  It never worked right, I've had permissions issues since the day I started on this process.

 

Can anyone tell me what permissions should be, on which folders, and which files, and what settings need to be changed from stock to just get a simple SAB setup working as it should?

 

I can provide MUCH more information as far as what I have in my fstab and permissions on various files and folders, but this thread has already grown too long.

 

I REALLY, REALLY appreciate any help anyone can provide to get this resolved.

  • Author

I created a new ArchVM, from scratch.  I fully updated it with pacman -Syyu, then I installed sabnzbd.

 

I updated the sabnzbd.ini file with the minimum changes to get it running.  Then I changed the download folder locations, and setup a rule to move music files to a specific folder, then downloaded a nzb and tested.

 

I got 3 errors, all related to permissions.  What does one need to do to get sab working without these errors?

 

When 	Type 	Warning
2014-05-31 01:10:45,285	ERROR:	Post Processing Failed for nzb_d2632d17dce49de8c728056c66bc581c (Cannot create final folder /mnt/music/newsgroup/nzb_d2632d17dce49de8c728056c66bc581c)
2014-05-31 01:10:45,284	ERROR:	Failed making (/mnt/music/newsgroup/nzb_d2632d17dce49de8c728056c66bc581c)
2014-05-31 01:06:44,019	ERROR:	Error removing /mnt/backup/nzb/nzb_d2632d17dce49de8c728056c66bc581c.nzb

 

Here are the permissions of all my mounts.  The backup folder is where I put the nzb watched folder and the download folder is where I put the incomplete downloads...

 

[root@IronicsArchVM_v5 ~]# cd /mnt
[root@IronicsArchVM_v5 mnt]# ls -l
total 4
drwxr-xr-x 2 root   root     0 May 30 13:33 adult
drwxr-xr-x 2 nobody users    0 May 31 01:06 backup
drwxr-xr-x 2 root   root     0 May 30 13:33 documents
drwxr-xr-x 2 nobody users    0 May 27 15:14 download
drwxr-xr-x 2 root   root     0 May 30 13:33 music
drwxr-xr-x 2 root   root     0 May 30 13:33 photos
drwxr-xr-x 2 root   root  4096 Feb  4 14:54 tmp
drwxr-xr-x 2 root   root     0 May 30 13:33 video

 

and here is my fstab...

 

#
# /etc/fstab: static file system information
#
# <file system> <dir>   <type>  <options>       <dump>  <pass>
# /dev/xvda1
UUID=93ec2c22-36c1-487c-a888-adde602a16fe       /               ext4            rw,relatime,data=ordered        0 1

//media/adult /mnt/adult cifs auto,x-systemd.automount,guest,noperm,noserverino,uid=nobody,gid=users 0 0
//media/backup /mnt/backup cifs auto,x-systemd.automount,guest,noperm,noserverino,uid=nobody,gid=users 0 0
//media/documents /mnt/documents cifs auto,x-systemd.automount,guest,noperm,noserverino,uid=nobody,gid=users 0 0
//media/download /mnt/download cifs auto,x-systemd.automount,guest,noperm,noserverino,uid=nobody,gid=users 0 0
//media/music /mnt/music cifs auto,x-systemd.automount,guest,noperm,noserverino,uid=nobody,gid=users 0 0
//media/photos /mnt/photos cifs auto,x-systemd.automount,guest,noperm,noserverino,uid=nobody,gid=users 0 0
//media/video /mnt/video cifs auto,x-systemd.automount,guest,noperm,noserverino,uid=nobody,gid=users 0 0

  • Author

so, I changed my fstab folder to this...

 

#
# /etc/fstab: static file system information
#
# <file system> <dir>   <type>  <options>       <dump>  <pass>
# /dev/xvda1
UUID=93ec2c22-36c1-487c-a888-adde602a16fe       /               ext4            rw,relatime,data=ordered        0 1

//media/adult /mnt/adult cifs auto,x-systemd.automount,guest,noperm,noserverino,uid=nobody,gid=users,file_mode=0777,dir_mode=0777,noperm 0 0
//media/backup /mnt/backup cifs auto,x-systemd.automount,guest,noperm,noserverino,uid=nobody,gid=users,file_mode=0777,dir_mode=0777,noperm 0 0
//media/documents /mnt/documents cifs auto,x-systemd.automount,guest,noperm,noserverino,uid=nobody,gid=users,file_mode=0777,dir_mode=0777,noperm 0 0
//media/download /mnt/download cifs auto,x-systemd.automount,guest,noperm,noserverino,uid=nobody,gid=users,file_mode=0777,dir_mode=0777,noperm 0 0
//media/music /mnt/music cifs auto,x-systemd.automount,guest,noperm,noserverino,uid=nobody,gid=users,file_mode=0777,dir_mode=0777,noperm 0 0
//media/photos /mnt/photos cifs auto,x-systemd.automount,guest,noperm,noserverino,uid=nobody,gid=users,file_mode=0777,dir_mode=0777,noperm 0 0
//media/video /mnt/video cifs auto,x-systemd.automount,guest,noperm,noserverino,uid=nobody,gid=users,file_mode=0777,dir_mode=0777,noperm 0 0

 

then, I rebooted the VM, then checked folder permissions, and they were all back to root:root...

 

[root@IronicsArchVM_v5 ~]# cd /mnt
[root@IronicsArchVM_v5 mnt]# ls -l
total 4
drwxr-xr-x 2 root root    0 May 31 01:33 adult
drwxr-xr-x 2 root root    0 May 31 01:33 backup
drwxr-xr-x 2 root root    0 May 31 01:33 documents
drwxr-xr-x 2 root root    0 May 31 01:33 download
drwxr-xr-x 2 root root    0 May 31 01:33 music
drwxr-xr-x 2 root root    0 May 31 01:33 photos
drwxr-xr-x 2 root root 4096 Feb  4 14:54 tmp
drwxr-xr-x 2 root root    0 May 31 01:33 video

 

Then I downloaded another nzb, and it also failed...

 

2014-05-31 01:57:55,500	ERROR:	Post Processing Failed for Woodsmith Shop-S07E13-Proper (Cannot create final folder /mnt/video/TV/Archive/Woodsmith Shop-S07E13-Proper)
2014-05-31 01:57:55,500	ERROR:	Failed making (/mnt/video/TV/Archive/Woodsmith Shop-S07E13-Proper)

 

I checked folder permissions again, and now I got this...

 

[root@IronicsArchVM_v5 mnt]# ls -l
total 4
drwxr-xr-x 2 root   root     0 May 31 01:33 adult
drwxrwxrwx 2 nobody users    0 May 31 01:39 backup
drwxr-xr-x 2 root   root     0 May 31 01:33 documents
drwxrwxrwx 2 nobody users    0 May 27 15:14 download
drwxr-xr-x 2 root   root     0 May 31 01:33 music
drwxr-xr-x 2 root   root     0 May 31 01:33 photos
drwxr-xr-x 2 root   root  4096 Feb  4 14:54 tmp
drwxrwxrwx 2 nobody users    0 May 29 08:43 video

 

Surely somebody has this working.  What needs changed to get a working setup?  It shouldn't be this hard, should it?

I initially had some fun with this as well. Some things to look at:

 

These are my mounts within fstab:

//192.168.1.50/downloads/      /mnt/downloads  cifs rw,guest,noauto,x-systemd.automount,uid=nobody,gid=users,file_mode=0777,dir_mode=0777 0 0

//192.168.1.50/movies/          /mnt/movies    cifs rw,guest,noauto,x-systemd.automount,uid=nobody,gid-users,file_mode=0777,dir_mode=0777 0 0

//192.168.1.50/tv/              /mnt/tv        cifs rw,guest,noauto,x-systemd.automount,uid=nobody,gid=users,file_mode=0777,dir_mode=0777 0 0

//192.168.1.50/software/        /mnt/software  cifs rw,guest,noauto,x-systemd.automount,uid=nobody,gid=users,file_mode=0777,dir_mode=0777 0 0

 

My permissions for /mnt/:

 

drwxrwxrwx 2 nobody users    0 May 31 06:47 downloads

drwxr-xr-x 2 root  root    0 Jun  1 07:21 movies

drwxr-xr-x 2 root  root  4096 May 31 05:55 private

drwxr-xr-x 2 root  root    0 Jun  1 07:21 software

drwxr-xr-x 2 root  root  4096 Feb  4 14:54 tmp

drwxrwxrwx 2 nobody users    0 Jun  2 07:46 tv

 

I am not sure if the nobody:users is required, and I realize it's likely pretty insecure but the system is not available outside my network so I'm not too concerned.

 

I setup the password for my Dom0 root to be the same as the password for my VM's.

 

Can you confirm that the permissions for your /mnt/download folder are recursive? In other words, all your subfolders have the same permissions as the parent?

 

One of these changes (or a combination of) got SAB writing to my downloads folder.

  • Author

Well, I think I've gotten this squared away now.  I have been using user share based permissions on my server for years, and it has mostly worked okay.  I use these because I have users that access my media that don't always read warning messages, & I want to protect my media from bulk deletions.

 

Alas, these permissions just don't work with Virtual Machines.  I ended up removing all permissions/restrictions from all of my user shares and now my permissions issues inside the VM's are resolved also.

 

I suppose I could try figuring out how to add more users (to match the VM's) and add these restrictions back into unRAID, but with the changes coming down the pipe in how we create and manage VM's, this feels like it will be a constantly changing situation for awhile, and I just don't have the time to dedicate to this issue now.

 

Hopefully, the boys don't delete all my stuff before I can get this situation locked down again, but for now I'm calling this 'good enough'.

 

Thanks for the feedback/advice.

The problem may be that that you're mounting the shares as "guest".  Here's my fstab from my Ubuntu 14.04 VM from which I run all of nzb/torrent clients:

//burns/Music /mnt/user/Music cifs auto,file_mode=0777,dir_mode=0777,credentials=/etc/samba/credentials,_netdev,uid=1000,gid=1000 0 0
//burns/Movies /mnt/user/Movies cifs auto,file_mode=0777,dir_mode=0777,credentials=/etc/samba/credentials,_netdev,uid=1000,gid=1000 0 0
//burns/TV_Shows /mnt/user/TV_Shows cifs auto,file_mode=0777,dir_mode=0777,credentials=/etc/samba/credentials,_netdev,uid=1000,gid=1000 0 0
//burns/Kids_Movies /mnt/user/Kids_Movies auto,cifs file_mode=0777,dir_mode=0777,credentials=/etc/samba/credentials,_netdev,uid=1000,gid=1000 0 0
//burns/Kids_TV /mnt/user/Kids_TV cifs auto,file_mode=0777,dir_mode=0777,credentials=/etc/samba/credentials,_netdev,uid=1000,gid=1000 0 0
//burns/Photos /mnt/user/Photos cifs auto,file_mode=0777,dir_mode=0777,credentials=/etc/samba/credentials,_netdev,uid=1000,gid=1000 0 0
//burns/Videos /mnt/user/Videos cifs auto,file_mode=0777,dir_mode=0777,credentials=/etc/samba/credentials,_netdev,uid=1000,gid=1000 0 0
//burns/Incoming /mnt/user/Incoming cifs auto,file_mode=0777,dir_mode=0777,credentials=/etc/samba/credentials,_netdev,uid=1000,gid=1000 0 0

 

Where /etc/samba/credentials is a permissions protected file that has the username and password of an authorized read/write user of that share in the following format:

username=yourusername
password=youpass

 

Might be worth a try.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.