2 .TH "LOGINCTL" "1" "" "systemd 219" "loginctl"
3 .\" -----------------------------------------------------------------
4 .\" * Define some portability stuff
5 .\" -----------------------------------------------------------------
6 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7 .\" http://bugs.debian.org/507673
8 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
9 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
12 .\" -----------------------------------------------------------------
13 .\" * set default formatting
14 .\" -----------------------------------------------------------------
15 .\" disable hyphenation
17 .\" disable justification (adjust text to left margin only)
19 .\" -----------------------------------------------------------------
20 .\" * MAIN CONTENT STARTS HERE *
21 .\" -----------------------------------------------------------------
23 loginctl \- Control the systemd login manager
25 .HP \w'\fBloginctl\fR\ 'u
26 \fBloginctl\fR [OPTIONS...] {COMMAND} [NAME...]
30 may be used to introspect and control the state of the
33 \fBsystemd-logind.service\fR(8)\&.
36 The following options are understood:
38 \fB\-\-no\-ask\-password\fR
40 Do not query the user for authentication for privileged operations\&.
43 \fB\-p\fR, \fB\-\-property=\fR
45 When showing session/user/seat 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
46 "Sessions"\&. If specified more than once, all properties with the specified names are shown\&.
49 \fB\-a\fR, \fB\-\-all\fR
51 When showing session/user/seat properties, show all properties regardless of whether they are set or not\&.
54 \fB\-l\fR, \fB\-\-full\fR
56 Do not ellipsize process tree entries\&.
62 \fBkill\-session\fR, choose which processes to kill\&. Must be one of
65 to select whether to kill only the leader process of the session or all processes of the session\&. If omitted, defaults to
69 \fB\-s\fR, \fB\-\-signal=\fR
74 \fBkill\-user\fR, choose which signal to send to selected processes\&. Must be one of the well known signal specifiers, such as
78 \fBSIGSTOP\fR\&. If omitted, defaults to
82 \fB\-n\fR, \fB\-\-lines=\fR
87 \fBsession\-status\fR, controls the number of journal lines to show, counting from the most recent ones\&. Takes a positive integer argument\&. Defaults to 10\&.
90 \fB\-o\fR, \fB\-\-output=\fR
95 \fBsession\-status\fR, controls the formatting of the journal entries that are shown\&. For the available choices, see
96 \fBjournalctl\fR(1)\&. Defaults to
100 \fB\-H\fR, \fB\-\-host=\fR
102 Execute the operation remotely\&. Specify a hostname, or a username and hostname separated by
103 "@", to connect to\&. The hostname may optionally be suffixed by a container name, separated by
104 ":", which connects directly to a specific container on the specified host\&. This will use SSH to talk to the remote machine manager instance\&. Container names may be enumerated with
105 \fBmachinectl \-H \fR\fB\fIHOST\fR\fR\&.
108 \fB\-M\fR, \fB\-\-machine=\fR
110 Execute operation on a local container\&. Specify a container name to connect to\&.
115 Do not pipe output into a pager\&.
120 Do not print the legend, i\&.e\&. column headers and the footer with hints\&.
123 \fB\-h\fR, \fB\-\-help\fR
125 Print a short help text and exit\&.
130 Print a short version string and exit\&.
134 The following commands are understood:
135 .SS "Session Commands"
139 List current sessions\&.
142 \fBsession\-status\fR [\fIID\fR\&.\&.\&.]
144 Show terse runtime status information about one or more sessions, followed by the most recent log data from the journal\&. Takes one or more session identifiers as parameters\&. If no session identifiers are passed the status of the caller\*(Aqs session is shown\&. This function is intended to generate human\-readable output\&. If you are looking for computer\-parsable output, use
149 \fBshow\-session\fR [\fIID\fR\&.\&.\&.]
151 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 are shown\&. By default, empty properties are suppressed\&. Use
153 to show those too\&. To select specific properties to show, use
154 \fB\-\-property=\fR\&. This command is intended to be used whenever computer\-parsable output is required\&. Use
155 \fBsession\-status\fR
156 if you are looking for formatted human\-readable output\&.
159 \fBactivate\fR [\fIID\fR]
161 Activate a session\&. This brings a session into the foreground, if another session is currently in the foreground on the respective seat\&. Takes a session identifier as argument\&. If no argument is specified the session of the caller is put into foreground\&.
164 \fBlock\-session\fR [\fIID\fR\&.\&.\&.], \fBunlock\-session\fR [\fIID\fR\&.\&.\&.]
166 Activates/deactivates the screen lock on one or more sessions, if the session supports it\&. Takes one or more session identifiers as arguments\&. If no argument is specified the session of the caller is locked/unlocked\&.
169 \fBlock\-sessions\fR, \fBunlock\-sessions\fR
171 Activates/deactivates the screen lock on all current sessions supporting it\&.
174 \fBterminate\-session\fR \fIID\fR\&.\&.\&.
176 Terminates a session\&. This kills all processes of the session and deallocates all resources attached to the session\&.
179 \fBkill\-session\fR \fIID\fR\&.\&.\&.
181 Send a signal to one or more processes of the session\&. Use
183 to select which process to kill\&. Use
185 to select the signal to send\&.
191 List currently logged in users\&.
194 \fBuser\-status\fR [\fIUSER\fR\&.\&.\&.]
196 Show terse runtime status information about one or more logged in users, followed by the most recent log data from the journal\&. Takes one or more user names or numeric user IDs as parameters\&. If no parameters are passed the status of the caller\*(Aqs user is shown\&. This function is intended to generate human\-readable output\&. If you are looking for computer\-parsable output, use
198 instead\&. Users may be specified by their usernames or numeric user IDs\&.
201 \fBshow\-user\fR [\fIUSER\fR\&.\&.\&.]
203 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 are shown\&. By default, empty properties are suppressed\&. Use
205 to show those too\&. To select specific properties to show, use
206 \fB\-\-property=\fR\&. This command is intended to be used whenever computer\-parsable output is required\&. Use
208 if you are looking for formatted human\-readable output\&.
211 \fBenable\-linger\fR [\fIUSER\fR\&.\&.\&.], \fBdisable\-linger\fR [\fIUSER\fR\&.\&.\&.]
213 Enable/disable user lingering for one or more users\&. If enabled for a specific user, a user manager is spawned for the user at boot and kept around after logouts\&. This allows users who are not logged in to run long\-running services\&. Takes one or more user names or numeric UIDs as argument\&. If no argument is specified enables/disables lingering for the user of the session of the caller\&.
216 \fBterminate\-user\fR \fIUSER\fR\&.\&.\&.
218 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\&.
221 \fBkill\-user\fR \fIUSER\fR\&.\&.\&.
223 Send a signal to all processes of a user\&. Use
225 to select the signal to send\&.
231 List currently available seats on the local system\&.
234 \fBseat\-status\fR [\fINAME\fR\&.\&.\&.]
236 Show terse runtime status information about one or more seats\&. Takes one or more seat names as parameters\&. If no seat names are passed the status of the caller\*(Aqs session\*(Aqs seat is shown\&. This function is intended to generate human\-readable output\&. If you are looking for computer\-parsable output, use
241 \fBshow\-seat\fR [\fINAME\fR\&.\&.\&.]
243 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
245 to show those too\&. To select specific properties to show, use
246 \fB\-\-property=\fR\&. This command is intended to be used whenever computer\-parsable output is required\&. Use
248 if you are looking for formatted human\-readable output\&.
251 \fBattach\fR \fINAME\fR \fIDEVICE\fR\&.\&.\&.
253 Persistently attach one or more devices to a seat\&. The devices should be specified via device paths in the
255 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,
259 and must be prefixed with
260 "seat"\&. To drop assignment of a device to a specific seat, just reassign it to a different seat, or use
261 \fBflush\-devices\fR\&.
266 Removes all device assignments previously created with
267 \fBattach\fR\&. After this call, only automatically generated seats will remain, and all seat hardware is assigned to them\&.
270 \fBterminate\-seat\fR \fINAME\fR\&.\&.\&.
272 Terminates all sessions on a seat\&. This kills all processes of all sessions on the seat and deallocates all runtime resources attached to them\&.
276 On success, 0 is returned, a non\-zero failure code otherwise\&.
283 is not given; overrides
284 \fI$PAGER\fR\&. Setting this to an empty string or the value
286 is equivalent to passing
287 \fB\-\-no\-pager\fR\&.
292 Override the default options passed to
300 \fBsystemd-logind.service\fR(8),