Project

General

Profile

Bug #204

Impossible to logon to webui (file permission problem ?)

Added by Alan - over 14 years ago. Updated about 14 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
General
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Found in version:
Affected Versions:

Description

Hello !

I have a strange problem on one of my Ubuntu Karmic servers (on the other Ubuntu Machine it is working fine)

There is no way i can log into the webUI. It always gives an authentication problem error.

First i tried:

sudo dpkg-reconfigure hts-tvheadend

but whatever credentials i type here it is not working with the webui.

I also tried to remove and reinstall everything like this:

sudo apt-get remove hts-tvheadend
sudo deluser hts
sudo delgroup hts
sudo rm -rf /home/hts
sudo apt-get clean
sudo apt-get install hts-tvheadend

It does not even ask the credentials again. Than i run reconfigure but still no luck.

I supect that i have some kind of a file permission problem.
Could you tell where the credentials are stored in the filesystem ? Maybe this file has a bad permission.

On the system i changed the default file permission mask to 770 for all users. Maybe this has to do something with the problem.

Thanks in advance

History

#1

Updated by Andreas Smas over 14 years ago

Can you spot anything suspicious in the logfile (/var/log/daemon.log)

#2

Updated by Alan - over 14 years ago

Thanks you for the help.

I checked the daemon.log and found out that the daemon had no permission to access /home/hts/.hts/tvheadend directory.

Strangely when i tried

sudo chmod -R 777 /home/hts

it did not help. Than i found the real problem. It was the /home directory what i previously changed the permissions from root:root to root:users. Somehow this prevented the tvheadend daemon from working properly.

Eighter changeing back the permission:

sudo chown root:root /home

or setting the permission

sudo chmod 777 /home

solved the problem.

Thank you for the help !!!

#3

Updated by Hein Rigolo over 14 years ago

A bit drastic to change it to 777 and root:root and certainly not recommended

Are you running the tvheadend process with a different user then the default hts?
what version are you running?

#4

Updated by Alan - over 14 years ago

It is by default root:root, i just changed it to root:users previously to let the other users browse the /home directory. This caused the problem somehow. Changing back to the default root:root solved ALL problems. The chmod 777 was just a workaround, but i agree it is not a good solution.

I am using Ubuntui Karmic anyway.

#5

Updated by Andreas Smas about 14 years ago

  • Status changed from New to Fixed
  • Found in version set to invalid

Also available in: Atom PDF