Results 1 to 6 of 6

Thread: Transmission WebUI authentication in Ubuntu Server

  1. #1
    Join Date
    Mar 2009
    Beans
    21
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Question Transmission WebUI authentication in Ubuntu Server

    Hi, I'm running a headless Ubuntu Server, and finally I made a startscript which starts transmission-daemon on boot. This makes it possible to open the Transmission WebUI from any computer elsewhere. BUT: I can't make any authentication. This is my settings file (i think - grabbed from /home/myusername/.config/transmission-daemon/settings.json):

    Code:
                                    
    {
        "blocklist-enabled": 0,
        "download-dir": "\/etc",
        "download-limit": 100,
        "download-limit-enabled": 0,
        "encryption": 1,
        "max-peers-global": 200,
        "peer-port": 51413,
        "pex-enabled": 1,
        "port-forwarding-enabled": 0,
        "rpc-access-control-list": "+127.0.0.1",
        "rpc-authentication-required": 1,
        "rpc-password": "mypassword",
        "rpc-port": 9091,
        "rpc-username": "myusername",
        "upload-limit": 100,
        "upload-limit-enabled": 0
    }l
    Is it the right settingsfile? I mean, the daemon is started on boot with this script:

    Code:
    #!/bin/sh.
    
    PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
    NAME="Transmission"
    DESC="torrent daemon"
    
    case "$1" in
            start)
                    echo -n "Starting $DESC: "
                    transmission-daemon
                    echo "$NAME."
                    ;;
            stop)
                    echo -n "Stopping $DESC: "
                    killall transmission-daemon
                    echo "$NAME."
                    ;;
            *)
                    N=/etc/init.d/$NAME
                    echo "Usage: $N {start|stop}" >&2
                    exit 1
                    ;;
    esac
    exit 0
    Where the hell does it get it's settings from? Just a thought: outside my home folder somewhere?

    By the way - i'm NOT using lighttpd which i ran into in many guides about setting it up. I use Apache2 but I don't know if it makes much of a difference. Plz help me about this, and feel free to ask!

  2. #2
    Join Date
    Mar 2008
    Location
    Connecticut
    Beans
    940
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Transmission WebUI authentication in Ubuntu Server

    Add your IP to your settings.json file

    Code:
    "rpc-whitelist": "127.0.0.1,192.168.1.121,192.168.1.100",
    "rpc-whitelist-enabled": 1,
    Change the IP's to meet your needs.


    Bill

    Here's my complete settings.json file

    Code:
    {
        "blocklist-enabled": 1,
        "download-dir": "\/media\/external\/Downloads",
        "download-limit": 100,
        "download-limit-enabled": 0,
        "encryption": 2,
        "lazy-bitfield-enabled": 1,
        "message-level": 2,
        "open-file-limit": 32,
        "peer-limit-global": 500,
        "peer-limit-per-torrent": 60,
        "peer-port": 51413,
        "peer-port-random-enabled": 0,
        "peer-port-random-high": 65535,
        "peer-port-random-low": 1024,
        "peer-socket-tos": 0,
        "pex-enabled": 1,
        "port-forwarding-enabled": 1,
        "preallocation": 1,
        "proxy": "",
        "proxy-auth-enabled": 0,
        "proxy-auth-password": "",
        "proxy-auth-username": "",
        "proxy-enabled": 0,
        "proxy-port": 80,
        "proxy-type": 0,
        "rpc-authentication-required": 0,
        "rpc-enabled": 1,
        "rpc-password": "",
        "rpc-port": 9091,
        "rpc-username": "",
        "rpc-whitelist": "127.0.0.1,192.168.1.121,192.168.1.100",
        "rpc-whitelist-enabled": 1,
        "upload-limit": 75,
        "upload-limit-enabled": 0,
        "upload-slots-per-torrent": 5
    }
    Last edited by MrWES; March 28th, 2009 at 01:16 PM.
    Ubuntu 10.04-Server: HP Pavilion: AMD Athlon 3200; 2gb RAM; GeForce4 MX - nForce; 160gb HDD; 1TB eSATA External HDD | Ubuntu 10.04: Dell D600; Intel Pentium M 1600 MHz; 2gb RAM; ATI Radeon 9000 (RV250); 60gb HD | Ubuntu User #24614

  3. #3
    Join Date
    Mar 2007
    Location
    Florida
    Beans
    126
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: Transmission WebUI authentication in Ubuntu Server

    Hi mha2908,
    I apologize for bringing back such an old thread, but this was quite a problem for me and I wanted other users to be aware of the way to fix this.

    I installed the latest stable Transmission release on my Intrepid server from kab's unofficial repository. I am not sure whether the default settings differ from the official package's settings, but it seems many users have the same problem with the official package.

    Even though I had stopped the daemon before editing /etc/transmission-daemon/settings.json, the "rpc-authentication-required" setting ALWAYS reverted itself when starting the daemon back up. This basically meant I could not disable authentication. Other settings were keeping, so after some poking around I found the problem. transmission-daemon was being started with the --auth flag because of its options in /etc/default/transmission-daemon.


    To Fix:
    1. Edit "/etc/default/transmission-daemon".
    2. It has the following line:
      Code:
      OPTIONS="--auth --config-dir $CONFIG_DIR"
    3. Change the line to:
      Code:
      OPTIONS="--config-dir $CONFIG_DIR"

    Now, transmission-daemon will listen to settings.json for the "rpc-authentication-required" setting, instead of overwriting it. Hope this helps!
    Last edited by martinw89; July 27th, 2009 at 01:47 AM.
    -Martin

  4. #4
    Join Date
    Jan 2007
    Beans
    86

    Re: Transmission WebUI authentication in Ubuntu Server

    Quote Originally Posted by martinw89 View Post
    Hi mha2908,
    I apologize for bringing back such an old thread, but this was quite a problem for me and I wanted other users to be aware of the way to fix this.
    [...]
    Hope this helps!
    Don't apologise, and it certainly did. I have been struggling with this for 40 minutes and it was driving me bonkers.

    Thanks for posting this I appreciate it.

  5. #5
    Join Date
    Mar 2009
    Location
    Ottawa, Canada
    Beans
    10
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Transmission WebUI authentication in Ubuntu Server

    Yeah, no apologies required. This had been iritating me for a couple days now.

    Thanks!

  6. #6
    Join Date
    Jun 2012
    Beans
    1

    Re: Transmission WebUI authentication in Ubuntu Server

    I realise the thread is at least 3 years old, but wanted to say thanks from 2012, I couldn't turn the authentication on, how irritating.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •