LinHES Forums http://forum.linhes.org/ |
|
Can not access mythweb or user mythtv in putty SOLVED http://forum.linhes.org/viewtopic.php?f=6&t=19106 |
Page 1 of 1 |
Author: | bearwood [ Tue Oct 14, 2008 11:49 pm ] |
Post subject: | Can not access mythweb or user mythtv in putty SOLVED |
I have auto-installed version 5.5 to a new HD and all went really well. As always I get way more channels after a channel scan (DVB) than I wish to see so I normally go into Mythweb and clean it all up, but no Mythweb just a timeout screen unavailable. I don't get a screen requesting login:password which I used to get. I can access the mythbox via putty using the username I entered but I cannot access it using mythtv (the password fails). Obviously I can ping the box as well. I can access the myth files via a saamba share using mythtv:mythtv as well?? The passwords are the same in mysql.txt and mythweb-htaccess if that helps. I can not find a .htaccess file in /etc/mythtv which some other posts referred to. Children are home from school so pressure is on now ![]() |
Author: | tophee [ Wed Oct 15, 2008 3:49 am ] |
Post subject: | |
I can't remember if there is anything specifically you need to do to fix this, but I'd suggest reading the hints and tips thread by tjc. It may give you some answers, however as an alternative, you can tweak your channel listings through Mythtv-setup. HTH. Regards Chris |
Author: | manicmike [ Wed Oct 15, 2008 5:45 am ] |
Post subject: | Re: Can not access mythweb or user mythtv in putty |
bearwood wrote: I can access the mythbox via putty using the username I entered but I cannot access it using mythtv (the password fails).
User mythtv has been denied ssh access for quite a few versions (3 or 4?). The reason is that everyone in the world knows the password! If you want to enable access for mythtv, just modify /etc/ssh/sshd_config. If you do this, you are really asking for everyone to hack your machine (really, don't do it). Mike |
Author: | tjc [ Wed Oct 15, 2008 6:51 am ] |
Post subject: | |
Create another user, login as that, then do: Code: su - mythtv
As Mike said, the mythtv account is blocked from logging in directly with ssh for good reason. |
Author: | bearwood [ Wed Oct 15, 2008 2:38 pm ] |
Post subject: | |
Thanks guys. This accounts for ssh into the box as user mythtv but what about mythweb. I don't even get a login screen. I'll search back thru the hints and tips for earlier installs more thoroughly to see if I can find the reference to mythweb being blocked |
Author: | mjl [ Wed Oct 15, 2008 7:43 pm ] |
Post subject: | |
Hi, I am going to assume you may mean webmin ? It isn't started as default. Do your loggin (non mythtv user ) then you can su - to become root. Once as root you can then /etc/init.d/webmin start Once done stop it to save resources and close another direct doorway in to your system. Mike |
Author: | bearwood [ Thu Oct 16, 2008 4:24 am ] |
Post subject: | |
Hi Mike, No I do not use webmin. I am wanting to use mythweb so I can schedule recordings, delete recordings etc from another computer on the network. I used to type http://192.168.0.5 into the browser and up came a login box and then mythweb after a succesful login. I am not even getting the login box, just a timeout Quote: You tried to access the address http://192.168.0.5/, which is currently unavailable
Eddy |
Author: | graysky [ Thu Oct 16, 2008 1:36 pm ] |
Post subject: | |
bearwood wrote: Hi Mike,
No I do not use webmin. I am wanting to use mythweb so I can schedule recordings, delete recordings etc from another computer on the network. I used to type http://192.168.0.5 into the browser and up came a login box and then mythweb after a succesful login. I am not even getting the login box, just a timeout Quote: You tried to access the address http://192.168.0.5/, which is currently unavailable Eddy Is apache2 running on the mythbox? Code: # /etc/init.d/apache2 start At the least you should see something -- an error message even. Not just connection timed out. If it is running, maybe the box you're attempting to connect from is blocking it somehow. Try going to the local machine (the mythtvbox), exit the frontend and load up a shell and try to connect via lynx or firefox if you have it installed. Lynx is there by default: Code: $ lynx localhost
What happens there? Also try reading your apache2 logs in /var/log/apache2 |
Author: | bearwood [ Fri Oct 17, 2008 1:54 am ] |
Post subject: | |
Graysky thanks for the input. It is obviously a password/permissions?? problem with apache. Apache2 is running already. lynx localhost from the mythbox brings up a window with which states: Show the 401 message body (y/n) --pressing yes brings up a statement along the lines Authorization Required. This s erver can verify that you are authorized to access the document requested. Either you supplied the wrong credentials ( e.g, bad password ), or your browser doesn't understand how to give the right credentials. The apache2 access.log just had one entry for the lynx localhost thing. The apache2 error.log: [list=][Tue Oct 14 20:19:47 2008] [notice] Digest: generating secret for digest authentication ... [Tue Oct 14 20:19:47 2008] [notice] Digest: done [Tue Oct 14 20:19:48 2008] [notice] Apache/2.2.3 (Debian) PHP/5.2.4-2 with Suhosin-Patch configured -- resuming normal operations [Tue Oct 14 20:20:23 2008] [notice] caught SIGTERM, shutting down [Wed Oct 15 13:23:51 2008] [notice] Digest: generating secret for digest authentication ... [Wed Oct 15 13:23:51 2008] [notice] Digest: done [Wed Oct 15 13:23:51 2008] [notice] Apache/2.2.3 (Debian) PHP/5.2.4-2 with Suhosin-Patch configured -- resuming normal operations [Wed Oct 15 13:24:10 2008] [notice] caught SIGTERM, shutting down [Wed Oct 15 13:44:10 2008] [notice] Digest: generating secret for digest authentication ... [Wed Oct 15 13:44:10 2008] [notice] Digest: done [Wed Oct 15 13:44:10 2008] [notice] Apache/2.2.3 (Debian) PHP/5.2.4-2 with Suhosin-Patch configured -- resuming normal operations [Wed Oct 15 13:59:25 2008] [notice] Digest: generating secret for digest authentication ... [Wed Oct 15 13:59:25 2008] [notice] Digest: done [Wed Oct 15 13:59:26 2008] [warn] pid file /var/run/apache2.pid overwritten -- Unclean shutdown of previous Apache run? [Wed Oct 15 13:59:26 2008] [notice] Apache/2.2.3 (Debian) PHP/5.2.4-2 with Suhosin-Patch configured -- resuming normal operations [Wed Oct 15 15:13:25 2008] [notice] caught SIGTERM, shutting down [Wed Oct 15 15:14:17 2008] [notice] Digest: generating secret for digest authentication ... [Wed Oct 15 15:14:17 2008] [notice] Digest: done [Wed Oct 15 15:14:18 2008] [notice] Apache/2.2.3 (Debian) PHP/5.2.4-2 with Suhosin-Patch configured -- resuming normal operations [Wed Oct 15 15:52:06 2008] [notice] Digest: generating secret for digest authentication ... [Wed Oct 15 15:52:06 2008] [notice] Digest: done [Wed Oct 15 15:52:07 2008] [warn] pid file /var/run/apache2.pid overwritten -- Unclean shutdown of previous Apache run? [Wed Oct 15 15:52:07 2008] [notice] Apache/2.2.3 (Debian) PHP/5.2.4-2 with Suhosin-Patch configured -- resuming normal operations [Wed Oct 15 17:16:22 2008] [notice] caught SIGTERM, shutting down [Wed Oct 15 17:17:16 2008] [notice] Digest: generating secret for digest authentication ... [Wed Oct 15 17:17:16 2008] [notice] Digest: done [Wed Oct 15 17:17:17 2008] [notice] Apache/2.2.3 (Debian) PHP/5.2.4-2 with Suhosin-Patch configured -- resuming normal operations [Thu Oct 16 06:59:40 2008] [notice] caught SIGTERM, shutting down [Thu Oct 16 07:23:27 2008] [notice] Digest: generating secret for digest authentication ... [Thu Oct 16 07:23:28 2008] [notice] Digest: done [Thu Oct 16 07:23:28 2008] [notice] Apache/2.2.3 (Debian) PHP/5.2.4-2 with Suhosin-Patch configured -- resuming normal operations [Thu Oct 16 11:50:47 2008] [notice] caught SIGTERM, shutting down [Thu Oct 16 20:04:18 2008] [notice] Digest: generating secret for digest authentication ... [Thu Oct 16 20:04:19 2008] [notice] Digest: done [Thu Oct 16 20:04:19 2008] [notice] Apache/2.2.3 (Debian) PHP/5.2.4-2 with Suhosin-Patch configured -- resuming normal operations [/list] Quote: root@mythtv:/etc/apache2# ls -l
total 60 -rw-r--r-- 1 root root 28 Oct 8 2006 README -rw-r--r-- 1 root root 24428 Oct 15 13:44 apache2.conf drwxr-xr-x 2 root root 4096 Sep 29 2007 conf.d -rw-r--r-- 1 root root 895 Oct 8 2006 envvars -rw-r--r-- 1 root root 0 Oct 31 2006 httpd.conf -rw-r--r-- 1 root root 27 Oct 8 2006 magic drwxr-xr-x 2 root root 4096 Feb 4 2008 mods-available drwxr-xr-x 2 root root 4096 Sep 26 2007 mods-enabled -rw-r--r-- 1 root root 10 Oct 31 2006 ports.conf drwxr-xr-x 2 root root 4096 Jun 3 2007 sites-available drwxr-xr-x 2 root root 4096 Nov 5 2006 sites-enabled Is the httpd.conf meant to be a zero byte file? I'll have to do some reading about permissions again to remember what the 3 groups are for the xrw. |
Author: | alien [ Fri Oct 17, 2008 2:16 am ] |
Post subject: | |
So "lynx localhost" works (or at least gets to auth failure, but that is probably because the -auth parm wasn't set), but typing http://192.168.0.5/ on a different computer gets no response. Sounds like a connectivity problem. Are you sure the ip address is correct and the remote computer can reach it? Ex. can you putty into 192.168.0.5 box from the computer you are trying http from? |
Author: | bearwood [ Fri Oct 17, 2008 3:15 am ] |
Post subject: | Mythweb acces SOLVED |
The problem lies with the browser "Opera" .I tried Firefox out of frustration and it works. Go figure. Maybe I should have said I am trying access from a windows computer. I don not know if the linux version of Opera has this problem but the windoze version certainly does Thanks to all |
Author: | alien [ Fri Oct 17, 2008 10:06 am ] |
Post subject: | |
Have you by any chance set up a proxy in opera? An external proxy would not find the local IP address of your mythbox. |
Author: | bearwood [ Fri Oct 17, 2008 1:14 pm ] |
Post subject: | |
Opera does have a proxy, so that explains that I guess. ![]() |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |