[Mageia-dev] Anyone know where /usr/bin/shutdown comes from?

Charles A Edwards CAE at eslrahc.com
Sat Sep 8 00:16:59 CEST 2012


On Fri, 07 Sep 2012 20:08:53 +0200
Olivier Blin wrote:

> > Not owned by any package so presumably it's from a %post or similar.
> > Anyone know which package or a way to easily search for it?  
> 
> Looks like it's created by msec, see /usr/share/msec/plugins/msec.py:
>     shutdown.exists() or shutdown.symlink(CONSOLE_HELPER)
> 
> And from "rpm -q --scripts usermode":
> 
> postinstall scriptlet (using /bin/sh):
> if [ ! -z "$SECURE_LEVEL" ];then
> if [ -x /usr/sbin/msec -a "$SECURE_LEVEL" -gt "3" ]; then
> /usr/sbin/msec $SECURE_LEVEL || true ; fi
> fi


Yep.

If you look at the file type it's a symlink to consolehelper.
If called as user it will require root passwd to run.


    Charles

-- 
Man's unique agony as a species consists in his perpetual conflict
between the desire to stand out and the need to blend in.
		-- Sydney J. Harris
----------------------
Mageia release 3 (Cauldron) for x86_64$
On SuperSize....http://www.eslrahc.com
Registered Linux user #182463
3.5.3-tmb-server-1.mga3 x86_64
----------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: </pipermail/mageia-dev/attachments/20120907/78f1a2eb/attachment.asc>


More information about the Mageia-dev mailing list