~ubuntu-branches/ubuntu/trusty/systemd/trusty

« back to all changes in this revision

Viewing changes to man/loginctl.1

Tags: upstream-202
ImportĀ upstreamĀ versionĀ 202

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
'\" t
2
 
.\"     Title: loginctl
3
 
.\"    Author: Lennart Poettering <lennart@poettering.net>
4
 
.\" Generator: DocBook XSL Stylesheets v1.77.1 <http://docbook.sf.net/>
5
 
.\"      Date: 03/07/2013
6
 
.\"    Manual: loginctl
7
 
.\"    Source: systemd
8
 
.\"  Language: English
9
 
.\"
10
 
.TH "LOGINCTL" "1" "" "systemd" "loginctl"
11
 
.\" -----------------------------------------------------------------
12
 
.\" * Define some portability stuff
13
 
.\" -----------------------------------------------------------------
14
 
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15
 
.\" http://bugs.debian.org/507673
16
 
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17
 
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18
 
.ie \n(.g .ds Aq \(aq
19
 
.el       .ds Aq '
20
 
.\" -----------------------------------------------------------------
21
 
.\" * set default formatting
22
 
.\" -----------------------------------------------------------------
23
 
.\" disable hyphenation
24
 
.nh
25
 
.\" disable justification (adjust text to left margin only)
26
 
.ad l
27
 
.\" -----------------------------------------------------------------
28
 
.\" * MAIN CONTENT STARTS HERE *
29
 
.\" -----------------------------------------------------------------
30
 
.SH "NAME"
31
 
loginctl \- Control the systemd login manager
32
 
.SH "SYNOPSIS"
33
 
.HP \w'\fBloginctl\ \fR\fB[OPTIONS...]\fR\fB\ \fR\fB{COMMAND}\fR\fB\ \fR\fB[NAME...]\fR\ 'u
34
 
\fBloginctl \fR\fB[OPTIONS...]\fR\fB \fR\fB{COMMAND}\fR\fB \fR\fB[NAME...]\fR
35
 
.SH "DESCRIPTION"
36
 
.PP
37
 
\fBloginctl\fR
38
 
may be used to introspect and control the state of the
39
 
\fBsystemd\fR(1)
40
 
login manager
41
 
\fBsystemd-logind.service\fR(8)\&.
42
 
.SH "OPTIONS"
43
 
.PP
44
 
The following options are understood:
45
 
.PP
46
 
\fB\-h\fR, \fB\-\-help\fR
47
 
.RS 4
48
 
Prints a short help text and exits\&.
49
 
.RE
50
 
.PP
51
 
\fB\-\-version\fR
52
 
.RS 4
53
 
Prints a short version string and exits\&.
54
 
.RE
55
 
.PP
56
 
\fB\-p\fR, \fB\-\-property=\fR
57
 
.RS 4
58
 
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
59
 
Sessions\&. If specified more than once all properties with the specified names are shown\&.
60
 
.RE
61
 
.PP
62
 
\fB\-a\fR, \fB\-\-all\fR
63
 
.RS 4
64
 
When showing unit/job/manager properties, show all properties regardless whether they are set or not\&.
65
 
.RE
66
 
.PP
67
 
\fB\-\-full\fR
68
 
.RS 4
69
 
Do not ellipsize cgroup members\&.
70
 
.RE
71
 
.PP
72
 
\fB\-\-no\-pager\fR
73
 
.RS 4
74
 
Do not pipe output into a pager\&.
75
 
.RE
76
 
.PP
77
 
\fB\-\-no\-ask\-password\fR
78
 
.RS 4
79
 
Don\*(Aqt query the user for authentication for privileged operations\&.
80
 
.RE
81
 
.PP
82
 
\fB\-\-kill\-who=\fR
83
 
.RS 4
84
 
When used with
85
 
\fBkill\-session\fR, choose which processes to kill\&. Must be one of
86
 
\fBleader\fR, or
87
 
\fBall\fR
88
 
to select whether to kill only the leader process of the session or all processes of the session\&. If omitted defaults to
89
 
\fBall\fR\&.
90
 
.RE
91
 
.PP
92
 
\fB\-s\fR, \fB\-\-signal=\fR
93
 
.RS 4
94
 
When used with
95
 
\fBkill\-session\fR
96
 
or
97
 
\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
98
 
\fBSIGTERM\fR\&.
99
 
.RE
100
 
.PP
101
 
\fB\-H\fR, \fB\-\-host\fR
102
 
.RS 4
103
 
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\&.
104
 
.RE
105
 
.PP
106
 
\fB\-P\fR, \fB\-\-privileged\fR
107
 
.RS 4
108
 
Acquire privileges via PolicyKit before executing the operation\&.
109
 
.RE
110
 
.PP
111
 
The following commands are understood:
112
 
.PP
113
 
\fBlist\-sessions\fR
114
 
.RS 4
115
 
List current sessions\&.
116
 
.RE
117
 
.PP
118
 
\fBsession\-status [ID\&.\&.\&.]\fR
119
 
.RS 4
120
 
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
121
 
\fBshow\-session\fR
122
 
instead\&.
123
 
.RE
124
 
.PP
125
 
\fBshow\-session [ID\&.\&.\&.]\fR
126
 
.RS 4
127
 
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
128
 
\fB\-\-all\fR
129
 
to show those too\&. To select specific properties to show use
130
 
\fB\-\-property=\fR\&. This command is intended to be used whenever computer\-parsable output is required\&. Use
131
 
\fBsession\-status\fR
132
 
if you are looking for formatted human\-readable output\&.
133
 
.RE
134
 
.PP
135
 
\fBactivate [ID\&.\&.\&.]\fR
136
 
.RS 4
137
 
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\&.
138
 
.RE
139
 
.PP
140
 
\fBlock\-session [ID\&.\&.\&.]\fR, \fBunlock\-session [ID\&.\&.\&.]\fR
141
 
.RS 4
142
 
Activates/deactivates the screen lock on one or more sessions, if the session supports it\&.
143
 
.RE
144
 
.PP
145
 
\fBlock\-sessions\fR, \fBunlock\-sessions\fR
146
 
.RS 4
147
 
Activates/deactivates the screen lock on all current sessions supporting it\&.
148
 
.RE
149
 
.PP
150
 
\fBterminate\-session [ID\&.\&.\&.]\fR
151
 
.RS 4
152
 
Terminates a session\&. This kills all processes of the session and deallocates all resources attached to the session\&.
153
 
.RE
154
 
.PP
155
 
\fBkill\-session [ID\&.\&.\&.]\fR
156
 
.RS 4
157
 
Send a signal to one or more processes of the session\&. Use
158
 
\fB\-\-kill\-who=\fR
159
 
to select which process to kill\&. Use
160
 
\fB\-\-signal=\fR
161
 
to select the signal to send\&.
162
 
.RE
163
 
.PP
164
 
\fBlist\-users\fR
165
 
.RS 4
166
 
List currently logged in users\&.
167
 
.RE
168
 
.PP
169
 
\fBuser\-status [USER\&.\&.\&.]\fR
170
 
.RS 4
171
 
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
172
 
\fBshow\-user\fR
173
 
instead\&. Users may be specified by their usernames or numeric user IDs\&.
174
 
.RE
175
 
.PP
176
 
\fBshow\-user [USER\&.\&.\&.]\fR
177
 
.RS 4
178
 
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
179
 
\fB\-\-all\fR
180
 
to show those too\&. To select specific properties to show use
181
 
\fB\-\-property=\fR\&. This command is intended to be used whenever computer\-parsable output is required\&. Use
182
 
\fBuser\-status\fR
183
 
if you are looking for formatted human\-readable output\&.
184
 
.RE
185
 
.PP
186
 
\fBenable\-linger [USER\&.\&.\&.]\fR, \fBdisable\-linger [USER\&.\&.\&.]\fR
187
 
.RS 4
188
 
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\&.
189
 
.RE
190
 
.PP
191
 
\fBterminate\-user [USER\&.\&.\&.]\fR
192
 
.RS 4
193
 
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\&.
194
 
.RE
195
 
.PP
196
 
\fBkill\-user [USER\&.\&.\&.]\fR
197
 
.RS 4
198
 
Send a signal to all processes of a user\&. Use
199
 
\fB\-\-signal=\fR
200
 
to select the signal to send\&.
201
 
.RE
202
 
.PP
203
 
\fBlist\-seats\fR
204
 
.RS 4
205
 
List currently available seats on the local system\&.
206
 
.RE
207
 
.PP
208
 
\fBseat\-status [NAME\&.\&.\&.]\fR
209
 
.RS 4
210
 
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
211
 
\fBshow\-seat\fR
212
 
instead\&.
213
 
.RE
214
 
.PP
215
 
\fBshow\-seat [NAME\&.\&.\&.]\fR
216
 
.RS 4
217
 
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
218
 
\fB\-\-all\fR
219
 
to show those too\&. To select specific properties to show use
220
 
\fB\-\-property=\fR\&. This command is intended to be used whenever computer\-parsable output is required\&. Use
221
 
\fBseat\-status\fR
222
 
if you are looking for formatted human\-readable output\&.
223
 
.RE
224
 
.PP
225
 
\fBattach [NAME] [DEVICE\&.\&.\&.]\fR
226
 
.RS 4
227
 
Persistently attach one or more devices to a seat\&. The devices should be specified via device paths in the
228
 
/sys
229
 
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
230
 
\fBflush\-devices\fR\&.
231
 
.RE
232
 
.PP
233
 
\fBflush\-devices\fR
234
 
.RS 4
235
 
Removes all device assignments previously created with
236
 
\fBattach\fR\&. After this call only automatically generated seats will remain and all seat hardware is assigned to them\&.
237
 
.RE
238
 
.PP
239
 
\fBterminate\-seat [NAME\&.\&.\&.]\fR
240
 
.RS 4
241
 
Terminates all sessions on a seat\&. This kills all processes of all sessions on a seat and deallocates all runtime resources attached to them\&.
242
 
.RE
243
 
.SH "EXIT STATUS"
244
 
.PP
245
 
On success 0 is returned, a non\-zero failure code otherwise\&.
246
 
.SH "ENVIRONMENT"
247
 
.PP
248
 
\fI$SYSTEMD_PAGER\fR
249
 
.RS 4
250
 
Pager to use when
251
 
\fB\-\-no\-pager\fR
252
 
is not given; overrides
253
 
\fI$PAGER\fR\&. Setting this to an empty string or the value
254
 
cat
255
 
is equivalent to passing
256
 
\fB\-\-no\-pager\fR\&.
257
 
.RE
258
 
.SH "SEE ALSO"
259
 
.PP
260
 
 
261
 
\fBsystemd\fR(1),
262
 
\fBsystemctl\fR(1),
263
 
\fBsystemd-logind.service\fR(8),
264
 
\fBlogind.conf\fR(5)