View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 29 posts ] 
Go to page Previous  1, 2

Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject:
PostPosted: Mon Mar 07, 2005 2:48 pm 
Offline
Joined: Wed Feb 11, 2004 12:11 pm
Posts: 19
I've had the same problems as above on recent installations/upgrades of KnoppMyth. I started with a clean install of R5A9, upgraded to R5A10 and R5A12 and each time encountered similar permissions issues.

These are usually manifested by:
- setup/backend failing with error reading mysql.txt
- backend failing to start because of access denied on /var/log/mythtv/mythbackend.log
- apt-get or dpkg failing with an error about user mythtv not being a system user

After having 'fudged' a fix to the first two issues with the judicuous use of chmod in previous installs/upgrades, I read this thread, did some further digging and found that, like others, there was more than one mythtv user and group setup on my system:
Code:
root@mythtv:/# cat /etc/passwd | grep mythtv
mythtv:Nx4GQCbkaotOw:1000:1000:,,,:/home/mythtv:/bin/bash
mythtv:$1$GLU854Ty$NGBuJMMLs4jXBFBVAox9U/:105:105::/home/mythtv:/bin/sh

root@mythtv:/# cat /etc/group | grep mythtv
cdrom:*:24:mythtv,mythtv
audio:!:29:mythtv,mythtv
video:!:44:mythtv,mythtv
mythtv:x:1000:
mythtv:x:105:


I backed up the passwd/group files and manually deleted the mythtv user/group with the 1000 uid from the files. I then went a bit chown crazy on any files/directories that were left showing owners/groups of 1000, changing them to mythtv, and everything started working properly. The backend started without an error (including from boot) and I was able to use dpkg to install the new epia packages (gj there btw!).

I did previously have an R4V5 install with the /myth partition on a second drive and that drive got migrated to this install, but as I started with a clean install of R5A9 (not an upgrade) I don't understand how the user/group settings got into the new install??


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 17, 2005 8:26 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Very nice diagnoses! I suspect we can whip up a simple script to fix this too... Find the duplicates, kill any extra ones, if there are multiple UIDs/GIDs do a find with those to locate any files which need to be chowned, ... You want to have first whack at it?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 20, 2005 12:22 pm 
Offline
Joined: Thu Jan 13, 2005 9:55 am
Posts: 135
Location: Decatur, Ga., USA
I've tried all the tricks offered here to fix this bug, and none of them last more than one or two restarts of my backend. I've also noticed that the problem seems random: that is, it sometimes happens after a reboot, or it sometimes happens after a "Backup KnoppMyth" session. The aforementioned "Backup KnoppMyth" session is done within the frontend of my backend.

-sTv


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 20, 2005 3:58 pm 
Offline
Joined: Tue Jun 08, 2004 1:00 am
Posts: 12
I am logging in as the mythtv user with UID 1000, and thus all related directories are owned my the same UID. should i still delete UID 1000 and chown the dir/files....or delete the other mythtv user?

_________________
------
HTPC: Asus A7N8X-E / Atlon XP Mobile +2500
512 DDR3200
Nvidia GForce 5200
Hauppauge PVR350
Silverstone Lascala VFD HTPC case


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 20, 2005 4:19 pm 
Offline
Joined: Tue Jun 08, 2004 1:00 am
Posts: 12
I just saw the other thread that addresses the "extra user" issue. Now i'm puzzled, if UID 1000 is not the user to delete.

Cesman refers to the DOCS that talks about not using the user Mythtv on install...which doc does this refer to...I've looked.

will reinstalling with a different user name solve all of these conflicts?

_________________
------
HTPC: Asus A7N8X-E / Atlon XP Mobile +2500
512 DDR3200
Nvidia GForce 5200
Hauppauge PVR350
Silverstone Lascala VFD HTPC case


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 20, 2005 8:13 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
I don't think it matters which one you delete (so long as you chown everything owned by the UID you're deleting to the one you're keeping) except for a possible conflicts in a later upgrade. Cecil should know the answer on that count.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 26, 2005 7:28 am 
Offline
Joined: Wed Feb 11, 2004 12:11 pm
Posts: 19
In the upgrade section, mysettopbox.tv/doc says:
Quote:
Don't create a user called "mythtv", this user has already been created with a passowrd of "mythtv"

I guess this means that the username entered in the initial knoppmyth setup dialogs should never be mythtv - it should be a 'real' username instead (doh!) - and therefore that it's the installation script that's creating the second mythtv user. I never noticed that before - always used mythtv/mythtv in the past. This explains why I've always had permission problems after the move to R5 and why other R4 users have reported similar problem on upgrade (like me, they're used to entering mythtv and don't read the docs properly).

There is a simple solution to this problem (ATTN KNOPPMYTH DEVS)... make the setup script validate the username input and if mythtv is entered as a username either flag up an error or just skip the user setup all together. Probably a fairly simple change and it would effectively stop this problem from happening in future releases (not that I'm forgetful enough to do the same thing again now I know what the problem is :roll: ).


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 26, 2005 10:08 am 
Offline
Joined: Mon Oct 06, 2003 10:38 am
Posts: 4978
Location: Nashville, TN
in the new installer the additional user portion will be optional.

_________________
Have a question search the forum and have a look at the KnoppMythWiki.

Xsecrets


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 27, 2005 5:11 pm 
Offline
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location: Fontana, Ca
ATTENTION USERS READ THE INSTRUCTIONS BEFORE YOU INSTALL.

_________________
cesman

When the source is open, the possibilities are endless!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 28, 2005 6:07 am 
Offline
Joined: Wed Feb 11, 2004 12:11 pm
Posts: 19
Sorry, didn't mean to sound flippant. Just trying to make a suggestion for some extra validation for dumbasses like me who do read the instructions and still get it wrong. :oops:


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 10, 2005 2:11 pm 
Offline
Joined: Tue May 10, 2005 12:29 pm
Posts: 35
I would like to state that you guy's are very knowledgeble and I am so glad I found this forum, I hope in the futre I can give back as much as has been given to me.

I would suggest if it is possible to make this thread a sticky.

Thanks to all :D


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 10, 2005 4:17 pm 
Offline
Joined: Mon Oct 06, 2003 10:38 am
Posts: 4978
Location: Nashville, TN
Just out of curiosity why have we had soo many people in the last couple of month creating a mythtv user when this portion of the setup hasn't changed more or less since knoppmyth's creation. Is there something that has changed that is leading people to use this username?

_________________
Have a question search the forum and have a look at the KnoppMythWiki.

Xsecrets


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 10, 2005 4:27 pm 
Offline
Joined: Thu Jan 13, 2005 9:55 am
Posts: 135
Location: Decatur, Ga., USA
Quote:
Just out of curiosity why have we had soo many people in the last couple of month creating a mythtv user when this portion of the setup hasn't changed more or less since knoppmyth's creation. Is there something that has changed that is leading people to use this username?


I never had the phantom second mythtv user problem. Every time I installed KnoppMyth, I created a normal non-mythtv user. It never occurred to me to create a mythtv user.

Being locked out of mythbackend.log continues to haunt me in KnoppMyth R5A15. Damn.

I noticed this time that is seemed to happen AFTER I added mythbackend.log to the "System Logs" area of the "System" pane in Webmin.
I use Webmin for almost all admin duties for my Knopp boxen.

Something I'm doing is causing Knoppix to think that mythbackend.log belongs to root/admin and not mythtv/mythtv. Or could it be that KnoppMyth is doing it?
It also seems to happen when a new mythbackend.log is created.

Hope this helps us crush this bug. I have RTFM and found no definitive answers.

-Bob K.


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 10, 2005 4:45 pm 
Offline
Joined: Tue Dec 07, 2004 12:04 pm
Posts: 369
Xsecrets wrote:
Just out of curiosity why have we had soo many people in the last couple of month creating a mythtv user when this portion of the setup hasn't changed more or less since knoppmyth's creation. Is there something that has changed that is leading people to use this username?


...boy was I disappointed just now to find out that the user 'mythtv' was already taken in the forum... <grin>

-brendan


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 29 posts ] 
Go to page Previous  1, 2



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 33 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu