Package - Power Manager Login Window

The login window provides user interface when no user is active and the login window is displayed. In a multi-user environment this feedback ensures no user is taken by surprise by pending events.

Care is recommended when tweaking this functionality. Removing the required framework but not this package will revert your Mac to a console login.

To restore a broken login window, login as an administrator and run the following command:

Line  
1
sudo /System/Library/CoreServices/SecurityAgentPlugins/pmauth.bundle/Contents/MacOS/pmauthctl -u

The Power Manager Login Window package is recommended but not required.

The restart is needed to ensure the security rights take hold. Our testing found security changes do not propogate as expected until a restart.

SecurityAgentPlugins and pmauth

pmauthctl helps install and remove the login window interface. Facilities with third party Security Agent Plugins are recommended to review the order plugins are listed.

Use the following command to alter the default insertion order for Power Manager's plugin.

Line  
1
sudo /System/Library/CoreServices/SecurityAgentPlugins/pmauth.bundle/Contents/MacOS/pmauthctl -b "loginwindow_builtin:login" -i

pmauthctl updates the security rights and these modifications are propogated through to /etc/authorization.

Requirements

A restart is required after installing this package.

Files Installed

Scripts

Preparation

This package does not use a preparation script.

Post Installation

Line  
1
#!/bin/sh
2
# Part of DssW Power Manager
3
# Copyright (c) 2006 Dragon Systems Software Limited
4
# Support: support@dssw.co.uk
5
#
6
# This script completes the installation process by copying Mac OS X version
7
# dependent files and setting up permissions.
8
9
#
10
# Be careful messing with these files.
11
#
12
13
# Set up login window plug in...
14
# ...copy rather than soft link, removing bundle without uninstalling hangs loginwindow
15
cp -R "$3/usr/local/powermanager/bin/pmauth.bundle" "$3/System/Library/CoreServices/SecurityAgentPlugins/."
16
17
# ...be sure the copy worked
18
if [ -e "$3/System/Library/CoreServices/SecurityAgentPlugins/pmauth.bundle/" ]; then
19
20
    # ...those with custom loginwindow mechanisms should check pmauthctl's -b option
21
    "$3/System/Library/CoreServices/SecurityAgentPlugins/pmauth.bundle/Contents/MacOS/pmauthctl" -i
22
23
    echo "Installed loginwindow mechanism 'pmauth'"
24
25
fi