'\" t .TH "LOGINCTL" "1" "" "systemd 204" "loginctl" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" loginctl \- Control the systemd login manager .SH "SYNOPSIS" .HP \w'\fBloginctl\ \fR\fB[OPTIONS...]\fR\fB\ \fR\fB{COMMAND}\fR\fB\ \fR\fB[NAME...]\fR\ 'u \fBloginctl \fR\fB[OPTIONS...]\fR\fB \fR\fB{COMMAND}\fR\fB \fR\fB[NAME...]\fR .SH "DESCRIPTION" .PP \fBloginctl\fR may be used to introspect and control the state of the \fBsystemd\fR(1) login manager \fBsystemd-logind.service\fR(8)\&. .SH "OPTIONS" .PP The following options are understood: .PP \fB\-h\fR, \fB\-\-help\fR .RS 4 Prints a short help text and exits\&. .RE .PP \fB\-\-version\fR .RS 4 Prints a short version string and exits\&. .RE .PP \fB\-p\fR, \fB\-\-property=\fR .RS 4 When showing session/user properties, limit display to certain properties as specified as argument\&. If not specified all set properties are shown\&. The argument should be a property name, such as Sessions\&. If specified more than once all properties with the specified names are shown\&. .RE .PP \fB\-a\fR, \fB\-\-all\fR .RS 4 When showing unit/job/manager properties, show all properties regardless whether they are set or not\&. .RE .PP \fB\-\-full\fR .RS 4 Do not ellipsize cgroup members\&. .RE .PP \fB\-\-no\-pager\fR .RS 4 Do not pipe output into a pager\&. .RE .PP \fB\-\-no\-ask\-password\fR .RS 4 Don\*(Aqt query the user for authentication for privileged operations\&. .RE .PP \fB\-\-kill\-who=\fR .RS 4 When used with \fBkill\-session\fR, choose which processes to kill\&. Must be one of \fBleader\fR, or \fBall\fR to select whether to kill only the leader process of the session or all processes of the session\&. If omitted defaults to \fBall\fR\&. .RE .PP \fB\-s\fR, \fB\-\-signal=\fR .RS 4 When used with \fBkill\-session\fR or \fBkill\-user\fR, choose which signal to send to selected processes\&. Must be one of the well known signal specifiers such as SIGTERM, SIGINT or SIGSTOP\&. If omitted defaults to \fBSIGTERM\fR\&. .RE .PP \fB\-H\fR, \fB\-\-host\fR .RS 4 Execute operation remotely\&. Specify a hostname, or username and hostname separated by @, to connect to\&. This will use SSH to talk to the remote login manager instance\&. .RE .PP \fB\-P\fR, \fB\-\-privileged\fR .RS 4 Acquire privileges via PolicyKit before executing the operation\&. .RE .PP The following commands are understood: .PP \fBlist\-sessions\fR .RS 4 List current sessions\&. .RE .PP \fBsession\-status [ID\&.\&.\&.]\fR .RS 4 Show terse runtime status information about one or more sessions\&. This function is intended to generate human\-readable output\&. If you are looking for computer\-parsable output, use \fBshow\-session\fR instead\&. .RE .PP \fBshow\-session [ID\&.\&.\&.]\fR .RS 4 Show properties of one or more sessions or the manager itself\&. If no argument is specified properties of the manager will be shown\&. If a session ID is specified properties of the session is shown\&. By default, empty properties are suppressed\&. Use \fB\-\-all\fR to show those too\&. To select specific properties to show use \fB\-\-property=\fR\&. This command is intended to be used whenever computer\-parsable output is required\&. Use \fBsession\-status\fR if you are looking for formatted human\-readable output\&. .RE .PP \fBactivate [ID\&.\&.\&.]\fR .RS 4 Activate one or more sessions\&. This brings one or more sessions into the foreground, if another session is currently in the foreground on the respective seat\&. .RE .PP \fBlock\-session [ID\&.\&.\&.]\fR, \fBunlock\-session [ID\&.\&.\&.]\fR .RS 4 Activates/deactivates the screen lock on one or more sessions, if the session supports it\&. .RE .PP \fBlock\-sessions\fR, \fBunlock\-sessions\fR .RS 4 Activates/deactivates the screen lock on all current sessions supporting it\&. .RE .PP \fBterminate\-session [ID\&.\&.\&.]\fR .RS 4 Terminates a session\&. This kills all processes of the session and deallocates all resources attached to the session\&. .RE .PP \fBkill\-session [ID\&.\&.\&.]\fR .RS 4 Send a signal to one or more processes of the session\&. Use \fB\-\-kill\-who=\fR to select which process to kill\&. Use \fB\-\-signal=\fR to select the signal to send\&. .RE .PP \fBlist\-users\fR .RS 4 List currently logged in users\&. .RE .PP \fBuser\-status [USER\&.\&.\&.]\fR .RS 4 Show terse runtime status information about one or more logged in users\&. This function is intended to generate human\-readable output\&. If you are looking for computer\-parsable output, use \fBshow\-user\fR instead\&. Users may be specified by their usernames or numeric user IDs\&. .RE .PP \fBshow\-user [USER\&.\&.\&.]\fR .RS 4 Show properties of one or more users or the manager itself\&. If no argument is specified properties of the manager will be shown\&. If a user is specified properties of the user is shown\&. By default, empty properties are suppressed\&. Use \fB\-\-all\fR to show those too\&. To select specific properties to show use \fB\-\-property=\fR\&. This command is intended to be used whenever computer\-parsable output is required\&. Use \fBuser\-status\fR if you are looking for formatted human\-readable output\&. .RE .PP \fBenable\-linger [USER\&.\&.\&.]\fR, \fBdisable\-linger [USER\&.\&.\&.]\fR .RS 4 Enable/disable user lingering for one or more users\&. If enabled for a specific user a user manager is spawned for him/her at boot, and kept around after logouts\&. This allows users who aren\*(Aqt logged in to run long\-running services\&. .RE .PP \fBterminate\-user [USER\&.\&.\&.]\fR .RS 4 Terminates all sessions of a user\&. This kills all processes of all sessions of the user and deallocates all runtime resources attached to the user\&. .RE .PP \fBkill\-user [USER\&.\&.\&.]\fR .RS 4 Send a signal to all processes of a user\&. Use \fB\-\-signal=\fR to select the signal to send\&. .RE .PP \fBlist\-seats\fR .RS 4 List currently available seats on the local system\&. .RE .PP \fBseat\-status [NAME\&.\&.\&.]\fR .RS 4 Show terse runtime status information about one or more seats\&. This function is intended to generate human\-readable output\&. If you are looking for computer\-parsable output, use \fBshow\-seat\fR instead\&. .RE .PP \fBshow\-seat [NAME\&.\&.\&.]\fR .RS 4 Show properties of one or more seats or the manager itself\&. If no argument is specified properties of the manager will be shown\&. If a seat is specified properties of the seat are shown\&. By default, empty properties are suppressed\&. Use \fB\-\-all\fR to show those too\&. To select specific properties to show use \fB\-\-property=\fR\&. This command is intended to be used whenever computer\-parsable output is required\&. Use \fBseat\-status\fR if you are looking for formatted human\-readable output\&. .RE .PP \fBattach [NAME] [DEVICE\&.\&.\&.]\fR .RS 4 Persistently attach one or more devices to a seat\&. The devices should be specified via device paths in the /sys file system\&. To create a new seat attach at least one graphics card to a previously unused seat name\&. Seat names may consist only of a\-z, A\-Z, 0\-9, "\-" and "_" and must be prefixed with "seat"\&. To drop assignment of a device to a specific seat just reassign it to a different seat, or use \fBflush\-devices\fR\&. .RE .PP \fBflush\-devices\fR .RS 4 Removes all device assignments previously created with \fBattach\fR\&. After this call only automatically generated seats will remain and all seat hardware is assigned to them\&. .RE .PP \fBterminate\-seat [NAME\&.\&.\&.]\fR .RS 4 Terminates all sessions on a seat\&. This kills all processes of all sessions on a seat and deallocates all runtime resources attached to them\&. .RE .SH "EXIT STATUS" .PP On success 0 is returned, a non\-zero failure code otherwise\&. .SH "ENVIRONMENT" .PP \fI$SYSTEMD_PAGER\fR .RS 4 Pager to use when \fB\-\-no\-pager\fR is not given; overrides \fI$PAGER\fR\&. Setting this to an empty string or the value cat is equivalent to passing \fB\-\-no\-pager\fR\&. .RE .SH "SEE ALSO" .PP \fBsystemd\fR(1), \fBsystemctl\fR(1), \fBsystemd-logind.service\fR(8), \fBlogind.conf\fR(5)