Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
xPanda
Feb 6, 2003

Was that me or the door?
Does anyone have a good solution for changing the owner of completed downloads on *nix systems?

I've got SABnzbd+ 0.6.8 installed on a Scientific Linux 6.1 system, and it runs under the SABnzbd user. Upon completion, they are owned by SABnzbd:SABnzbd, but I'd like them to be owned by some other user and group. I made a script with this in it:
code:
#!/bin/bash
sudo /bin/chown -R someuser:somegroup $1
I used visudo to update sudoers to allow this command to be run without a password:
code:
SABnzbd ALL= NOPASSWD: /bin/chown
I changed the default category to run this script. SABnzbd supposedly captures the standard output of these scripts to a log, but I haven't been able to find it. I added to the script some lines to check the user it ran as (it was SABnzbd) and the arguments supplied to the script, and they all worked as expected, but the files simply won't change owner. Using sudo -u to run the same command as sudo works, so I don't know what's going on. Any ideas?

Adbot
ADBOT LOVES YOU

xPanda
Feb 6, 2003

Was that me or the door?
Does anyone have a good startup script for SickBeard which would work on RHEL6 they'd be willing to share? The one I found which worked has a disclaimer saying it should not be run as root, which is rather odd for a startup script. The init scripts included with sickbeard don't seem to be compatible with whichever service system RHEL6 employs.

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply