From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041111 Firefox/1.0 Description of problem: i see the following on a relatively clean fc3 install that has been yum'd recently... multiple poweroffs: $ whereis poweroff poweroff: /usr/bin/poweroff /sbin/poweroff /usr/share/man/man8/poweroff.8.gz that don't match: $ diff /usr/bin/poweroff /sbin/poweroff Binary files /usr/bin/poweroff and /sbin/poweroff differ because they are symlinks to different things: $ ls -al /usr/bin/poweroff /usr/bin/poweroff -> consolehelper $ ls -al /sbin/poweroff /sbin/poweroff -> halt checking to make sure what these were pointing to i further found two halts: $ ls -al /usr/bin/halt /usr/bin/halt -> consolehelper $ ls -al /sbin/halt /sbin/halt at the very least, this creates an interesting dependency on the current PATH of the user. is this intentional? b Version-Release number of selected component (if applicable): usermode-1.74-1 How reproducible: Always Steps to Reproduce: 1. whereis poweroff 2. 3. Actual Results: see above. Expected Results: a single instance? Additional info:
Right, I can see this on my FC3 box. This really looks like a duplicated functionality. Bill, it looks like we need to remove all this stuff either from usermode or SysVinit. IMHO the best solution is to remove the commands from usermode as these commands fit better to SysVinit.
This seems to be actually a feature as the usermode halt, poweroff, etc. in /usr/bin/ serves a purpose that a non-root user can execute these commands after successful authentication using consolehelper. So they're used as an interface to the original SysVinit halt, etc. so there's no functionality duplication here.