upthetoon

Members
  • Posts

    112
  • Joined

  • Last visited

Everything posted by upthetoon

  1. Hi sacretagent, Ii tried creating that button too but it didn't seem to work. I tried running the command in by itself and the su command doesn't seem to work. It's a recognised command but if do a "whoami" after running su - nobody i'm still root. Is it working fine on your set? I'm running 5.0 beta 2
  2. Nice work! This seems like the best solution but I could never figure out how to run them as nobody. Cheers!
  3. it just checks to see if such a directory exists then changes the permission on each folder (and its contents). the folder names are based on how my Categories are set up to download in sabnzbd. you will need to modify the script to suit your own categories/folders. you also need to specify the username:group since you wont have the same group "pwusers" on your system. or just remove the lines that have "chown" in it and change the lines with "chmod -R 775" to say "chmod -R 777" (this will make all the files accessible to anyone, no security basically). copy the script (after you modified it) onto your flash drive (eg, /flash/scripts/chownchmod.sh). to make this automatic, I just added a line to crontab to run the script, chownchmod.sh, every 5 minutes. if you dont know how to do this, here is an outline of the steps: - at the command prompt, type "crontab -e" - use the commands shown here http://www.computerhope.com/unix/uvi.htm#05 to edit the file. google "linux VI editor" for more help on this - the line you add will look something like this: */5 * * * * /boot/scripts/chownchmod.sh >/dev/null 2>&1 - when you are finished, press "SHIFT+q" then type "qw" to save changes its not an elegant solution but it gets the job done. helpful links: http://www.funtoo.org/en/articles/linux/lpi/3/ search for "chown" to find the relevant part http://www.openjs.com/scripts/jslibrary/demos/crontab.php Thanks schmegg. I made a post-processing script for Sabnzbd that changes the user to nobody after each download. That seems to work pretty well although it doesn't seem to work in every case. I think its to do with the sorting the Sab does. I think I'll use your idea too and run it once a day or something to change any left over folders that are missed by the post-processing script. @sacretagent You don't want to be putting it in your GO script. Your box will take a while to boot and its not persistant, any files created after a boot will not be changed until the next boot. If you are only using Sabnzbd you could try a post processing script. The line below will change a downloaded folder and files owner to "nobody" when used in a post-processing script; chown -R nobody:users "$1"
  4. Great, thanks! I have sabnzbd set to run a post-processing script to fix the permissions but it isn't always successful. I think it's to do with the sorting when it doesn't work as expected. The script itself is just a one-liner... chown -R nobody.users "$1"
  5. hmm... I haven't played with the fan speed. I do recall a screen that mentioned it in the BIOS buy I can't remember the context. I run my server headless and in a small cupboard so I can't just nip into the BIOS and have a look I'm afraid. Mine came with a free Asetek Fan Speed Controller Kit so you'd hope it would work with that! I never bothered trying it though.
  6. You could add the Samsung F3 to the "OK to use" list Rajahal? They seem to be still available in some places here in the UK. I ordered a 2TB Samsung HD203WI just before Christmas.
  7. It works fine, I have my cache drive connected to one of the 2 sata III ports and I've had no issues after I got the settings right in the BIOS.
  8. I have just put in a new 2TB drive that is pre-clearing now and a 500gig drive that is destined to be a cache drive. I put the cache drive into one of the 2 sata III slots. It is seen at the BIOS but not at the OS level. It could be a driver issue with the sata III controller? It's a Marvell 91XX controller. A couple of other threads include comments of people successfully using Marvell 6GB/s controllers but I'm not sure if its the same one. Any idea's where I can go from here? EDIT: A-ha! After a bit of googling I put the controller into AHCI mode instead of IDE and the drive is now recognised. Will be able to use it properly once I get my pro license. Hopefully it will be OK, I've had a look in unmenu and the device isn't properly recognised; 03:00.0 SATA controller: Unknown device 1b4b:9123 (rev 10) (prog-if 01 [AHCI 1.0]) Subsystem: ASUSTeK Computer Inc. Unknown device 8400 Flags: bus master, fast devsel, latency 0, IRQ 32 I/O ports at ec00 I/O ports at e880 I/O ports at e800 I/O ports at e480 I/O ports at e400 Memory at f7fff800 (32-bit, non-prefetchable) Expansion ROM at f7fe0000 [disabled] Capabilities: [40] Power Management version 3 Capabilities: [50] Message Signalled Interrupts: Mask- 64bit- Queue=0/0 Enable+ Capabilities: [70] Express Legacy Endpoint, MSI 00 Capabilities: [100] Advanced Error Reporting Kernel driver in use: ahci Kernel modules: ahci
  9. I tried running the app with "Su nobody" or "su - nobody" but it didn't do anything. I did a "ps -ef" and it wasn't running. I then tried "Su nobody" or "su - nobody" in isolation but when I put them in the terminal if doesn't echo anything back. Your script seems good but I'm not 100% sure what I'm doing and couldn't find a ported start-stop-daemon. I think I'll just run the new perms script against the download folders every now and then. Thanks for the help.
  10. The sudo command isn's present in this OS unfortunately. Thanks for sharing your config, I'll have a proper sit down and try and set mine up in a similar way soon.
  11. I have SABnzbd/Transmission running as user 'download' and have the files setup to be owned by user 'download'. The user 'download' is only member of the group 'download'. This is my restricted user account. In this way, if those programs are compromised, then they can not access any of the files in my array. Previously I had them running as user 'nobody', but that user seems too promiscuous especially when all of your files are owned by 'nobody'. The files are not written directly to my array. After they are finished and I double-check the files, I do a 'chown nobody.users * && chmod 0660 *' on them before moving them into the array. That is quite user intensive, I admire your dedication! Do you invoke the application as another user directly from the go script? If so could you post that part of the script please? I've tried a couple of ways but not managed it. I think I will just run it as nobody if I can manage it.
  12. @Brit Are you running sabnzbd as it's own user? Are the files it downloads owned by "nobody" still. I'm having issues with files being owned by "root" with 5.0 beta 2.
  13. Moving the cache folder to the flash drive now allows the cache drive to spin down... I'm a happy camper If you use sabnzbd quite a lot this could give excessive read/writes on your flash drive?
  14. @dimh I have yet to add a cache drive to my system so I have installed sabnzbd in a folder on my array (using the dependancy package and instructions in this thread) This is also where the temporary files are stored. My drive does spin down so your cache drive should too, there must be an issue with something.
  15. Romir has been updating the dependancies package as the components are upgraded. I'm sure he will switch out the par2 app when he see's what you have found. Repair isn't working here either.
  16. That one doesnt seem to have the 2 extra sata III ports or Usb3 ports. One of the reasons I picked the board above was the 8 sata ports.
  17. The models seem to be slightly different here in the UK. I have a friend moving to the states and he looked without success for this board in the US online stores for his own build. This is the one I have... http://www.scan.co.uk/products/asus-p7h55-m-usb3-intel-h55-s-1156-pci-e-20-%28x16%29-ddr3-2200%28oc%29-sata-6gb-s-usb-30-matx You are right, this does not have an internal USB header (I didn't see many boards that did). My system is sitting in a cupboard so I'm not bothered about the USB thumb sticking out of the top of the case. You could get an internal header adapter for a few dollars if this was an issue for you.
  18. Yep, everything seems to be working well. I have one issue with permissions of files created by add-on applications but that won't be related to the hardware. I haven't tried any of the WOL features, my server is on all the time. If I get some time at the weekend I'll have a dabble with it.
  19. Can anyone confirm the owner of the files that SABnzbd creates on their 5.0b2 array please? I asked this a couple of pages back but it got lost in another conversation. Any files I download are owned by "root" and not "nobody" and this creates issues with Samba shares. There were a couple of solutions posted in the beta2 thread but I haven't got any of them working and I'd love to know if this problem affects everyone or if there is a root cause I should be looking for. I don't have a cache drive so I was wondering if it was somehow due to me having the app running from a user share on the array.
  20. EDIT: Just seen your thread on the transmission package and I've put this in the wrong place... Thanks for adding the transmission package. The settings page in unMENU does not include a parameter for a watch folder. I installed the autotrans Firefox extension so I can add torrents from my browser but to use it with something like sickbeard you seem to need a watch folder. If I add the watch folder parameter to your auto install script will it be persistant prostuff1?
  21. I have been playing around with this, I still haven't come up with a definitive solution though. I am also confused as to why more people are not seeing this issue. At the minute if Sabnzbd has to create a new folder (a new season folder for example) I run the newperms script against it to regain access. I have been looking at running the sabnzbd.exe as the user "nobody" and found this snipet on the net... http://stackoverflow.com/questions/66870/how-do-i-run-a-program-as-nobody "... may add your application to /etc/sudoers with proper settings and you'll be able to run it as with sudo -u nobody. This will work for both scripts and binary executables. This could also work for scripts if you'll create a tiny helper executable which simply does exec("/home/you/bin/your-application"). This executable can be made suid-nobody (see above) and you may freely modify your-application." A combination of these two methods might be the best? Still not 100% sure how I can invoke it from the go script though.
  22. Is anyone having a permissions issue with the folders Sabnzbd creates under 5.0 beta 2? Here is a thread on it... http://lime-technology.com/forum/index.php?topic=7747.0
  23. I am also seeing this issue. Does this happen for everyone running beta 2 and Sabnzbd? I would also love to know how to run the application as "nobody" from the go script, could someone please detail how to do that? Cheers.
  24. As an update... I went ahead with my build. Asus P7H55-M/USB3 i3 540 (it was £4 more than the 530) 4GB Corsair XMS3, DDR3 PC3-10666 450W Corsair 450VXUK Coolermaster CM 690 II Lite 2TB Western Digital WD20EARS (parity) with 2 x 1.5TB samsung drives I already had for data. It's all working really well. I haven't used either of the 2 SATA III ports but I'll give one of them ago when I add a cache drive. Around Christmas time I'll be adding the cache drive, another 2TB drive and upgrading to the pro version of unraid (on the free edition at the moment).