View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 4 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Wed May 19, 2004 10:18 am 
Offline
Joined: Thu Jan 22, 2004 7:13 pm
Posts: 11
When I select Knoppmyth from the main menu, and then reboot or halt, nothing would happen. I changed my .fvwm2rc file from:

exec KnoppMyth-run

to

exec xterm -e KnoppMyth-run

so I could see what was going on. Whenever I select reboot, i would get this error message:

/usr/bin/sudo:reboot: command not found

Same thing for halt.I guess we need to have the full path to halt and reboot explicitly configured in those buttons, but I wasn't sure how todo that.

thx,
britt


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 19, 2004 10:35 am 
Offline
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location: Fontana, Ca
As root, vi /etc/sudoers. Where did you download the ISO from? Did you verify the MD5SUM? The R4V3 that I released [i[does[/i] have the path set. It should look like this:
Code:
mythtv ALL=NOPASSWD:/sbin/halt,/sbin/reboot,/bin/mount,/bin/umount,/usr/bin/mplayer,/usr/local/bin/mythbackup,/usr/local/bin/mythrestore

_________________
cesman

When the source is open, the possibilities are endless!


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 19, 2004 3:03 pm 
Offline
Joined: Thu Jan 22, 2004 7:13 pm
Posts: 11
I can't remember which mirror I downloaded the iso from, but I did check the md5sum and it was correct. I also have that line in my /etc/sudoers file:

root@challenger:~ # grep myth /etc/sudoers
mythtv ALL=NOPASSWD:/sbin/halt,/sbin/reboot,/bin/mount,/bin/umount,/usr/bin/mplayer,/usr/local/bin/mythbackup,/usr/local/bin/mythrestore
root@challenger:~ #

IIRC, this file just lists what commands each user may execute. It isn't a matter of mythtv not beable to execute them. Its when the sudo command is called, reboot and halt are not in current path, so it can't find them to execute them.


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 23, 2004 8:07 am 
Offline
Joined: Thu Jan 22, 2004 7:13 pm
Posts: 11
I think I figured out what is different. I had other permissions problems on my box, and I started poking around in my /etc/passwd and /etc/group. I noticed that I had two entries in /etc/passwd for use mythtv - 1000 and 101. I think 1000 got created during the R4v3 upgrade, but 101 is the one I used to use. When the upgrade happened and it prompted me regular user, etc. I again chose mythtv. I think this may be the issue. So I commented out 1000, and chown'd all its files to 101 by doing:

find / -user 1000 -exec chown mythtv \{\} \;

rebooted and ......same thing:

/usr/bin/sudo: reboot: command not found
/usr/bin/sudo: halt: command not found

Could I be missing some other change required for sudo to fully remove the 1000 user and make it 101 instead?

thx,
britt

PS. One suggestion I have for improvement. In the /home/mythtv/.fvwm/.fvwm2rc file, replace:
exec KnoppMyth-run

with:
exec KnoppMyth-run 2>&1| tee -a /var/log/mythtv/mythfrontend.log

that way stdout and stderr are visible in a log file. Makes troubleshooint alot easier.


Top
 Profile  
 

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


All times are UTC - 6 hours




Who is online

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