Page 1 of 1

sabnzbd multi-user ( or with apache htpasswd ? )

Posted: April 3rd, 2013, 4:20 pm
by olbaid
Hi !
I'm a long-time user of SABnzbd, and I love this soft !
So thank you very much for it ! :-)


With a couple of friends, we're thinking about building a big seedbox ( mainly for torrent but I'd like to put SABnzbd on it ).
I would like to secure the server with a unique autentification, when connecting to the web-server.
At this time I was thinking of a simple htpasswd, with multiple users on it.
The thing is that SAB comes with an other web-server, and I don't know how to make them work together, or simply use one of them. ( If you do, it would be amazing :p )

So my question is : How can I add more users in the SABnzbd anthentification ? ( by hand or not, doesn't mater )

Thank you so much in advance !
Olbaid

( sorry for my poor english )


PS : I'm on a Debian 6.0 distrib

Re: sabnzbd multi-user ( or with apache htpasswd ? )

Posted: April 3rd, 2013, 4:25 pm
by shypike
olbaid wrote: So my question is : How can I add more users in the SABnzbd anthentification ? ( by hand or not, doesn't mater )
Not possible.
The only way is to run multiple instances, each with its own port and working folder(s).

Re: sabnzbd multi-user ( or with apache htpasswd ? )

Posted: April 3rd, 2013, 4:31 pm
by olbaid
ok ! :(
Thank you for your answer !

Re: sabnzbd multi-user ( or with apache htpasswd ? )

Posted: June 25th, 2013, 1:06 pm
by reims67
Hi,

I agree with you Shypike, it is currently not possible. However, I'm running the kind of configuration Olbaid wants without any change to sabnzbd.(sorry for the late reply, I have lost my password and my login)

Here is the configuration I use:
- 1 system account for sabnzbd ('sab')
- N system accounts for each user (can be real un*x accounts [it is in my case] or not)

sabnzbd runs using "sab" account as well as a daemon I wrote.

My daemon scans all users "watch" directories and moves the files into sabnzbd watch directory. At end of download, I use sabnzbd script feature to call one of my script to move the downloaded files to the appropriate user final directory.

I have an ajax web UI allowing users to control their downloads (reorganize, pause, cancel), organize their rss and categories. Each user only sees its own data and an admin account permits global configuration of the application. The web UI is a standard PHP application running with apache (htpasswd protected). All password verification is delegated to the webserver. Users has never access directly to the only running sabnzbd.

Each user can put as many .nzb as they want, a round-robin on jobs will ensure no user keeps sabnzbd for more than 1 minute (very useful for very big job). One user also has "admin" privilege allowing creation of users inside the GUI, enter parameter to connect to sabnzbd, remove any user jobs, ...

The program is fully functionnable (I use it with 9 other persons for more than a year).

Currently, some features are missing, not working or not working as expected:
- no installer (first installation is a bit tricky, especially admin creation which requires an account in my app which requires admin to be created).
- no installation manual (would be too easy ;) ).
- in very few cases, my daemon suddenly stops to take into account watch and complete directory (only occurs 1 time in 9 months), I suspect this freeze comes from PHP update while daemon is running.
- in few cases, a failed download does not have its files move back to the user directory, the web UI reports the xfer error.
- my daemon provides very basic support for nzbstatus (firefox plugin), just enough to work but nothing more.
- the daemon is not yet a "real" daemon, I run it inside a "screen" to be able to see log in real time.

some sabnzbd features become unavailable:
- other script plugins are not compatible with my script plugin. In reality, it may work but plugin moving/renaming directories will probably generate errors and plugins will be shared by all users because there is only 1 sabnzbd running all user jobs.
- job priority is internally used by my program.

Individual RSS and categories are fully functionnal.

My program also performs additionnal tasks on download data (remove files by pattern, remove empty directory).

Re: sabnzbd multi-user ( or with apache htpasswd ? )

Posted: June 25th, 2013, 4:43 pm
by shypike
reims67 wrote: My daemon scans all users "watch" directories and moves the files into sabnzbd watch directory. At end of download, I use sabnzbd script feature to call one of my script to move the downloaded files to the appropriate user final directory.
Nice, want to publish it on github.com ?

Re: sabnzbd multi-user ( or with apache htpasswd ? )

Posted: June 26th, 2013, 12:54 am
by reims67
Currently, I don't think it is ready to be publish on github but I can make it available on my own site, just the time to make an install manual.

Re: sabnzbd multi-user ( or with apache htpasswd ? )

Posted: July 3rd, 2013, 2:53 am
by reims67
Hi again,

My work mades me a bit busy and it tooks me a longer time than expected to make a quick install guide but here is my little program.
http://w-id.eu/muwinzb-20130703.tgz. Installation manual is inside docs/ directory as well as few snapshots.

Re: sabnzbd multi-user ( or with apache htpasswd ? )

Posted: August 6th, 2013, 8:03 pm
by etmmast
Thanks that's what I was looking for, I will try it out ;)

gr. Marco