|
NAMEconsole-kit-daemon - ConsoleKit daemonSYNOPSISconsole-kit-daemon [--debug] [--help] [--no-daemon] [--timed-exit]DESCRIPTIONconsole-kit-daemon is a service for defining and tracking users, login sessions and seats. It provides interfaces for managing switching sessions and session migration when using mechanisms such as Virtual Terminals (VT). ConsoleKit provides a number of interfaces to specify what displays are managed by the display manager, and how.ConsoleKit maintains a database of which users are logged into the system. ConsoleKit groups sessions by seats which represent a set of hardware (usually a keyboard and mouse). Other process communicate with ConsoleKit via D-Bus. One session leader process is responsible for asking console-kit-daemon to open a new session. In the typical case, the session leader would be a ConsoleKit enabled display manager, such as GDM. This leader makes a connection to the D-Bus system bus and asks console-kit-daemon to open a session when needed. If the operation succeeds, console-kit-daemon will return a cookie to the session leader. The session leader should store this variable in the environment as XDG_SESSION_COOKIE so that it may be shared with its child processes. The environment variable contains the UUID used to tie processes to a session. At this point the session will be registered with ConsoleKit and a particular set of information about the session will be stored along with it. The Session will remain open until the Session Leader disconnects from the D-Bus system bus. The session will be removed from its seat, and deregistered. Various other programs need to know information about running user sessions, such as the Fast User Switch Applet and other mechanisms for switching the console to use a different VT display. Such programs make use of ConsoleKit interfaces to determine if user switching is supported and to manage the switching of different sessions on the same seat. ConsoleKit provides a pam_ck_connector so that non-graphical logins (e.g. telnet, ssh, etc.) are registered with ConsoleKit. This functionality works if this PAM module is enabled in the pam.conf(4) configuration. Thus ConsoleKit can be used as a utmp/wtmp replacement since it stores a superset of the information as in the utmp/wtmp database. The ConsoleKit database is stored in the file /var/run/ConsoleKit/database. It stores information about active Seats, Sessions, and the current SessionLeader. OPTIONSThe following options are supported:--debug
-h, --help
--no-daemon
--timed-exit
ENVIRONMENT VARIABLESSee environ(5) for descriptions of environment variables.DISPLAY
XDG_SESSION_COOKIE
XDG_RUNTIME_DIR
The following environment variables are set when console-kit-daemon runs the run-seat.d scripts. These values correspond to those values returned by the ck-list-session(1) utility. CK_SESSION_SEAT_ID
CK_SESSION_SEAT_UID
CK_SESSION_DISPLAY_DEVICE
CK_SESSION_X11_DISPLAY_DEVICE
CK_SESSION_X11_DISPLAY
CK_SESSION_REMOTE_HOST_NAME
CK_SESSION_IS_ACTIVE
CK_SESSION_IS_LOCAL
CK_SESSION_IS_DYNAMIC
EXTENDED DESCRIPTIONConsoleKit Seat ConfigurationConsoleKit seat configuration files are located in the /etc/ConsoleKit/seats.d directory. Each seat configuration file ends with the .seat suffix. ConsoleKit provides a default seat file named 00-primary.seat. Additional seat configuration files may be added. These files are in standard INI format.The settings below are in "group/key=default_value" format, and show the default values of the 00-primary.seat file. For example, to specify a different "Seat Entry/Name" value, you would modify the this file so it contains these lines: [Seat Entry] [...] Name=Customized seat name The following keys are supported for configuring ConsoleKit seats: Seat Entry/Version=1.0
Seat Entry/Name=Primary seat
Seat Entry/ID=StaticSeat
Seat Entry/Hidden=false
Seat Entry/Devices
Seat Entry/Sessions=Local
ConsoleKit Session ConfigurationConsoleKit session configuration files are located in the /etc/ConsoleKit/sessions.d directory. Each session configuration file ends with the .session suffix. Additional seat configuration files may be added. These files are in standard INI format.The settings below are in "group/key" format, so to specify the "Session Entry/Name" value, the file shoulld contain these lines: [Session Entry] [...] Name=Customized Session The following keys are supported for configuring ConsoleKit sessions: Session Entry/Name
Session Entry/Type
Session Entry/Description
Session Entry/DisplayTemplate
Local/variable
ConsoleKit System Restart and Stopconsole-kit-daemon provides D-Bus interfaces that will restart or stop the system. When console-kit-daemon receives a D-Bus request to restart the system, it will run the /usr/lib/ConsoleKit/scripts/ck-system-restart script if the user has privilege to do this operation. When console-kit-daemon receives a D-Bus request to stop the system, it will run the /usr/lib/ConsoleKit/scripts/ck-system-stop script if the user has privilege to do this operation.EXAMPLESExample 1: To start the ConsoleKit daemonexample% console-kit-daemon Example 2: To configure ConsoleKit to start multiple sessions on a single seat To start two local displays: DISPLAY ":0" on vt7 and DISPLAY ":1" on "vt8", edit the 00-primary.seat file as follows: [Seat Entry] Version=1.0 Name=Primary seat Description=start static displays :0 on vt7 and :1 on vt8 Hidden=false Devices= Sessions=Local;Local2; Then, in addition to the original /etc/ConsoleKit/sessions.d/Local.session file, add the following /etc/ConsoleKit/sessions.d/Local2.session file: [Session Entry] Name=Local Type=LoginWindow Description=Local Login Screen DisplayTemplate=Local [Local] display=:1 vt=/dev/vt/8 SEE ALSOMore information can be found at:https://github.com/ConsoleKit2/ConsoleKit2 ck-history(1), ck-launch-session(1), ck-list-sessions(1), svcadm(1m), environ(5), smf(5), console(4) NOTESBrian Cameron, Sun Microsystems Inc., 2009. Copyright (c) 2009 by Sun Microsystems, Inc.Some of the documentation in this manpage is from the ConsoleKit documentation written by William Jon McCann.
Visit the GSP FreeBSD Man Page Interface. |