How can I password protect the web administration interface

Linux and UNIX specific discussions
juefried
Posts: 2
Joined: Sun Jan 18, 2009 1:32 pm
AV Hardware: Ubuntu 8.10, Denon S-302

How can I password protect the web administration interface

Postby juefried » Sun Jan 18, 2009 1:51 pm

I've installed TwonkyMedia on my Linux System (Ubuntu 8.10) for evaluation purpose. I've set it up so that it runs no longer as root which works just fine. Now I'd like to protect the web administration interface with user id / password so that not everybody in my network can mess around with my configuration. My guess is that password-protection is done in the file ~/.TwonkyMediaServer/twonkymedia-server.ini with the parameters accessuser and accesspwd. However, whenever the mediaserver is started, this ini-file is overwritten with some default values.

Has anyone an idea (a) how to activate password protection and/or (b) how this ini-mechanism works in TwonkyMedia?

Thanks for any help, Jürgen

peterfu
Posts: 33
Joined: Thu Dec 22, 2005 12:12 pm
Location: Austria

Re: How can I password protect the web administration interface

Postby peterfu » Sun Jan 18, 2009 4:44 pm

Here is a workaround for settings options, whcih are no more longer available via the web user interface:

Set ip adress (be carefull to choose the right one, if its the worng one You will have no access o the server):
http://<your-ip>:9000/rpc/set_option?ip=<your-ip>

Set accessuser:
http://<your-ip>:9000/prc/set_option?accessuser=<your username>

Set password:
http://<your-ip>:9000/rpc/set_option?accesspwd=<your password>

Uploaddirs (as example set to /raid/data/upload)
http://<your-ip>:9000/rpc/set_option?uploadmusicdir=/raid/data/upload
http://<your-ip>:9000/rpc/set_option?uploadvideodir=/raid/data/upload
http://<your-ip>:9000/rpc/set_option?uploadpicturedir=/raid/data/upload

br
Peter

juefried
Posts: 2
Joined: Sun Jan 18, 2009 1:32 pm
AV Hardware: Ubuntu 8.10, Denon S-302

Re: How can I password protect the web administration interface

Postby juefried » Sun Jan 18, 2009 5:03 pm

Thanks for the workaround - password protection is working now.
Jürgen

CyberDyne
Posts: 1
Joined: Tue Oct 26, 2010 3:48 pm
AV Hardware: THECUS N5200 Pro

Re: How can I password protect the web administration interface

Postby CyberDyne » Tue Oct 26, 2010 4:17 pm

[quote="peterfu"]Here is a workaround for settings options, whcih are no more longer available via the web user interface:

[u]Set ip adress (be carefull to choose the right one, if its the worng one You will have no access o the server):[/u]
http://<your-ip>:9000/rpc/set_option?ip=<your-ip>

[u]Set accessuser:[/u]
http://<your-ip>:9000/prc/set_option?accessuser=<your username>

[u]Set password:[/u]
http://<your-ip>:9000/rpc/set_option?accesspwd=<your password>

[u]Uploaddirs (as example set to /raid/data/upload)[/u]
http://<your-ip>:9000/rpc/set_option?uploadmusicdir=/raid/data/upload
http://<your-ip>:9000/rpc/set_option?uploadvideodir=/raid/data/upload
http://<your-ip>:9000/rpc/set_option?uploadpicturedir=/raid/data/upload

br
Peter[/quote]

Hello,
unfortunately this workarround doesn't work on my Twonky Media Server (

I've installed it the first time and everything seems to be perfect. I want to set a new account with new password, but when I want to login with these details, the system doesen't accept my username and password.

What can I do now? Reinstall doesn't work.

Greetings,
Klaus


Return to “Linux”

Who is online

Users browsing this forum: No registered users and 2 guests