LinHES Forums
http://forums.linhes.org/

R4V3 reboot and halt not working
http://forums.linhes.org/viewtopic.php?f=6&t=1493
Page 1 of 1

Author:  britthouser [ Wed May 19, 2004 10:18 am ]
Post subject:  R4V3 reboot and halt not working

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

Author:  cesman [ Wed May 19, 2004 10:35 am ]
Post subject: 

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

Author:  britthouser [ Wed May 19, 2004 3:03 pm ]
Post subject: 

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.

Author:  britthouser [ Sun May 23, 2004 8:07 am ]
Post subject: 

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.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/