Red Hat Bugzilla – Bug 146729
multiple instances of poweroff?
Last modified: 2013-07-02 19:05:29 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5)
Description of problem:
i see the following on a relatively clean fc3 install that has been
$ whereis poweroff
poweroff: /usr/bin/poweroff /sbin/poweroff
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
$ ls -al /usr/bin/halt
/usr/bin/halt -> consolehelper
$ ls -al /sbin/halt
at the very least, this creates an interesting dependency on the
current PATH of the user. is this intentional?
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. whereis poweroff
Actual Results: see above.
Expected Results: a single instance?
Right, I can see this on my FC3 box. This really looks like a duplicated
Bill, it looks like we need to remove all this stuff either from usermode or
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.