View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 7 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Thu Oct 07, 2004 3:43 am 
Offline
Joined: Thu Oct 07, 2004 3:39 am
Posts: 8
Hi!

When I running mythtv with SUID root KnoppMyth hang up when changing Channels...:(


Can anyone help???


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 08, 2004 1:14 am 
Offline
Joined: Tue Feb 03, 2004 3:23 am
Posts: 159
Location: Friesland, The Netherlands
My first reaction would be: Don't run it with SUID root then.

Seriously. Why do you want to do that? From the subjectline I understand you want to make the video run smoother. I don't think SUID root would make a difference here (even if you got it working properly).

This forum has lots of suggestions for making video run smoother. Maybe it's your hardware that can't keep up?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 08, 2004 2:04 am 
Offline
Joined: Thu Oct 07, 2004 3:39 am
Posts: 8
2004-10-08 10:01:04 Running as SUID root would allow some threads to run with realtime priority, improving video smoothness.

this is my mythfrontend log output...

It also stand in the new mythtv documentation...

I hav written mythtv but I mean mythfrontend...:)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 08, 2004 10:58 am 
Offline
Joined: Fri May 21, 2004 11:55 pm
Posts: 1206
Location: Silicon Valley, CA
I've tried to get this to work, too, without success.

If I use "chmod u+s /usr/bin/mythfrontend" my system completely hangs when I try to play a recorded show. I tried adding it to /etc/sudoers but that seems to do nothing.

My system still taunts me with:

Code:
2004-09-27 01:05:23 Running as SUID root would allow some threads to run with realtime priority, improving video smoothness.

_________________
Do you code to live, or live to code?
Search LinHES forum through Google


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 08, 2004 12:06 pm 
Offline
Joined: Tue Oct 05, 2004 6:59 pm
Posts: 15
Location: Philadelphia, PA
Basically, a normal user cannot raise the priority of a process (beyond a certain point), but if the frontend runs SUID root, it will help synchronization a bit since, say, the video and sound IO calls are able to do their jobs without waiting on another process to finish with the CPU.

If you're simply doing a chmod u+s on a file, when run, it will execute with the permissions of that file's owner no matter who is running it. But isn't ownership of mythfrontend usually "myth" or something similar (a normal user)? I *believe* if you chown the file to root, set u+s on the file, and make sure everyone (or at least a group containing your myth user) can read/execute the frontend program, then it will run SUID root and stop pestering you.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 08, 2004 1:04 pm 
Offline
Joined: Tue Apr 13, 2004 6:51 pm
Posts: 890
Location: Groton, MA
sootzoo wrote:
If you're simply doing a chmod u+s on a file, when run, it will execute with the permissions of that file's owner no matter who is running it.


I dont think this is correct. It's the process that has the priority, not the file. If a process owned by the root user is running at a raised priority, that priority is in effect for every operation/command it executes.

_________________
R5F1 - Dell P4 2.4Ghz 500MB - PVR250 x 2 - GeForce FX 5200 - Onboard sound/NIC 80GB ATA/250GB ATA/400GB SATA


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 08, 2004 1:09 pm 
Offline
Joined: Tue Oct 05, 2004 6:59 pm
Posts: 15
Location: Philadelphia, PA
You're right, I ran into this rebuilding sendmail some months ago, which likes to run SGID, but the file is still owned by the sendmail user.

My apologies.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 2 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