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 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!

  3. #3
    Join Date
    Feb 2007
    Beans
    24,961
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: transmission WebUI authentication in Ubuntu Server

    Please do not create multiple threads on the same issue. Threads merged.

  4. #4
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!

    Re: transmission WebUI authentication in Ubuntu Server

    Quote Originally Posted by mha2908 View Post

    Where the hell does it get it's settings from? Just a thought: outside my home folder somewhere?
    the init.d script runs as root.
    and reads the settings from /root/.config/blabla

    it's probably better to run the daemon as a non-root user:
    Code:
    su - username -c transmission-daemon
    if you run it as your user, then it will read the settings from your $HOME directory.

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

    Re: transmission WebUI authentication in Ubuntu Server

    allright, first i replaced

    Code:
            start)
                    echo -n "Starting $DESC: "
                    transmission-daemon
                    echo "$NAME."
                    ;;
    with

    Code:
            start)
                    echo -n "Starting $DESC: "
                    su - myusername -c transmission-daemon
                    echo "$NAME."
                    ;;
    but that returned an error. Maybe you misspelled something: "su - ", but i'm a TOTAL NOOB, so I don't know!

    Then i changed it back and edited the /root/.config/transmission-daemon/settings.json - but everytime it boots the file changes back to default, making the RCP-settings disabled. WTF do I do?
    Last edited by mha2908; March 28th, 2009 at 12:10 PM. Reason: typed "sudo" instead of "su"

  6. #6
    Join Date
    Oct 2007
    Beans
    2

    Re: transmission WebUI authentication in Ubuntu Server


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
  •