]> git.proxmox.com Git - pve-docs.git/blame - pveum.1-synopsis.adoc
update static information
[pve-docs.git] / pveum.1-synopsis.adoc
CommitLineData
1f554f76
DM
1*pveum* `<COMMAND> [ARGS] [OPTIONS]`
2
e2d681b3 3*pveum acl delete* `<path> --roles <string>` `[OPTIONS]`
1f554f76
DM
4
5Update Access Control List (add or remove permissions).
6
013dc89f 7`<path>`: `<string>` ::
1f554f76
DM
8
9Access control path
10
2489d6df 11`--groups` `<string>` ::
1f554f76
DM
12
13List of groups.
14
2489d6df 15`--propagate` `<boolean>` ('default =' `1`)::
1f554f76
DM
16
17Allow to propagate (inherit) permissions.
18
2489d6df 19`--roles` `<string>` ::
1f554f76
DM
20
21List of roles.
22
e9cd3bd4
TL
23`--tokens` `<string>` ::
24
25List of API tokens.
26
2489d6df 27`--users` `<string>` ::
1f554f76
DM
28
29List of users.
30
5c1699e5
TL
31*pveum acl list* `[FORMAT_OPTIONS]`
32
33Get Access Control List (ACLs).
34
e2d681b3 35*pveum acl modify* `<path> --roles <string>` `[OPTIONS]`
1f554f76
DM
36
37Update Access Control List (add or remove permissions).
38
013dc89f 39`<path>`: `<string>` ::
1f554f76
DM
40
41Access control path
42
2489d6df 43`--groups` `<string>` ::
1f554f76
DM
44
45List of groups.
46
2489d6df 47`--propagate` `<boolean>` ('default =' `1`)::
1f554f76
DM
48
49Allow to propagate (inherit) permissions.
50
2489d6df 51`--roles` `<string>` ::
1f554f76
DM
52
53List of roles.
54
e9cd3bd4
TL
55`--tokens` `<string>` ::
56
57List of API tokens.
58
2489d6df 59`--users` `<string>` ::
1f554f76
DM
60
61List of users.
62
e2d681b3
TL
63*pveum acldel*
64
65An alias for 'pveum acl delete'.
66
67*pveum aclmod*
68
69An alias for 'pveum acl modify'.
70
71*pveum group add* `<groupid>` `[OPTIONS]`
1f554f76
DM
72
73Create new group.
74
013dc89f 75`<groupid>`: `<string>` ::
1f554f76
DM
76
77no description available
78
2489d6df 79`--comment` `<string>` ::
1f554f76
DM
80
81no description available
82
e2d681b3 83*pveum group delete* `<groupid>`
1f554f76
DM
84
85Delete group.
86
013dc89f 87`<groupid>`: `<string>` ::
1f554f76
DM
88
89no description available
90
5c1699e5
TL
91*pveum group list* `[FORMAT_OPTIONS]`
92
93Group index.
94
e2d681b3 95*pveum group modify* `<groupid>` `[OPTIONS]`
1f554f76
DM
96
97Update group data.
98
013dc89f 99`<groupid>`: `<string>` ::
1f554f76
DM
100
101no description available
102
2489d6df 103`--comment` `<string>` ::
1f554f76
DM
104
105no description available
106
e2d681b3
TL
107*pveum groupadd*
108
109An alias for 'pveum group add'.
110
111*pveum groupdel*
112
113An alias for 'pveum group delete'.
114
115*pveum groupmod*
116
117An alias for 'pveum group modify'.
118
35a75dd3 119*pveum help* `[OPTIONS]`
1f554f76
DM
120
121Get help about specified command.
122
35a75dd3 123`--extra-args` `<array>` ::
1f554f76 124
35a75dd3 125Shows help for a specific command
1f554f76 126
2489d6df 127`--verbose` `<boolean>` ::
1f554f76
DM
128
129Verbose output format.
130
1f554f76
DM
131*pveum passwd* `<userid>`
132
133Change user password.
134
013dc89f 135`<userid>`: `<string>` ::
1f554f76
DM
136
137User ID
138
c5aa7e14
TL
139*pveum realm add* `<realm> --type <string>` `[OPTIONS]`
140
141Add an authentication server.
142
143`<realm>`: `<string>` ::
144
145Authentication domain ID
146
147`--base_dn` `\w+=[^,]+(,\s*\w+=[^,]+)*` ::
148
149LDAP base domain name
150
151`--bind_dn` `\w+=[^,]+(,\s*\w+=[^,]+)*` ::
152
153LDAP bind domain name
154
155`--capath` `<string>` ('default =' `/etc/ssl/certs`)::
156
157Path to the CA certificate store
158
159`--cert` `<string>` ::
160
161Path to the client certificate
162
163`--certkey` `<string>` ::
164
165Path to the client certificate key
166
167`--comment` `<string>` ::
168
169Description.
170
171`--default` `<boolean>` ::
172
173Use this as default realm
174
175`--domain` `\S+` ::
176
177AD domain name
178
179`--filter` `<string>` ::
180
181LDAP filter for user sync.
182
183`--group_classes` `<string>` ('default =' `groupOfNames, group, univentionGroup, ipausergroup`)::
184
185The objectclasses for groups.
186
187`--group_dn` `\w+=[^,]+(,\s*\w+=[^,]+)*` ::
188
189LDAP base domain name for group sync. If not set, the base_dn will be used.
190
191`--group_filter` `<string>` ::
192
193LDAP filter for group sync.
194
195`--group_name_attr` `<string>` ::
196
197LDAP attribute representing a groups name. If not set or found, the first value of the DN will be used as name.
198
199`--mode` `<ldap | ldap+starttls | ldaps>` ('default =' `ldap`)::
200
201LDAP protocol mode.
202
203`--password` `<string>` ::
204
205LDAP bind password. Will be stored in '/etc/pve/priv/realm/<REALM>.pw'.
206
207`--port` `<integer> (1 - 65535)` ::
208
209Server port.
210
211`--secure` `<boolean>` ::
212
213Use secure LDAPS protocol. DEPRECATED: use 'mode' instead.
214
215`--server1` `<string>` ::
216
217Server IP address (or DNS name)
218
219`--server2` `<string>` ::
220
221Fallback Server IP address (or DNS name)
222
223`--sslversion` `<tlsv1 | tlsv1_1 | tlsv1_2 | tlsv1_3>` ::
224
225LDAPS TLS/SSL version. It's not recommended to use version older than 1.2!
226
227`--sync-defaults-options` `[enable-new=<1|0>] [,full=<1|0>] [,purge=<1|0>] [,scope=<users|groups|both>]` ::
228
229The default options for behavior of synchronizations.
230
231`--sync_attributes` `\w+=[^,]+(,\s*\w+=[^,]+)*` ::
232
233Comma separated list of key=value pairs for specifying which LDAP attributes map to which PVE user field. For example, to map the LDAP attribute 'mail' to PVEs 'email', write 'email=mail'. By default, each PVE user field is represented by an LDAP attribute of the same name.
234
235`--tfa` `type=<TFATYPE> [,digits=<COUNT>] [,id=<ID>] [,key=<KEY>] [,step=<SECONDS>] [,url=<URL>]` ::
236
237Use Two-factor authentication.
238
239`--type` `<ad | ldap | pam | pve>` ::
240
241Realm type.
242
243`--user_attr` `\S{2,}` ::
244
245LDAP user attribute name
246
247`--user_classes` `<string>` ('default =' `inetorgperson, posixaccount, person, user`)::
248
249The objectclasses for users.
250
251`--verify` `<boolean>` ('default =' `0`)::
252
253Verify the server's SSL certificate
254
255*pveum realm delete* `<realm>`
256
257Delete an authentication server.
258
259`<realm>`: `<string>` ::
260
261Authentication domain ID
262
263*pveum realm list* `[FORMAT_OPTIONS]`
264
265Authentication domain index.
266
267*pveum realm modify* `<realm>` `[OPTIONS]`
268
269Update authentication server settings.
270
271`<realm>`: `<string>` ::
272
273Authentication domain ID
274
275`--base_dn` `\w+=[^,]+(,\s*\w+=[^,]+)*` ::
276
277LDAP base domain name
278
279`--bind_dn` `\w+=[^,]+(,\s*\w+=[^,]+)*` ::
280
281LDAP bind domain name
282
283`--capath` `<string>` ('default =' `/etc/ssl/certs`)::
284
285Path to the CA certificate store
286
287`--cert` `<string>` ::
288
289Path to the client certificate
290
291`--certkey` `<string>` ::
292
293Path to the client certificate key
294
295`--comment` `<string>` ::
296
297Description.
298
299`--default` `<boolean>` ::
300
301Use this as default realm
302
303`--delete` `<string>` ::
304
305A list of settings you want to delete.
306
307`--digest` `<string>` ::
308
309Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.
310
311`--domain` `\S+` ::
312
313AD domain name
314
315`--filter` `<string>` ::
316
317LDAP filter for user sync.
318
319`--group_classes` `<string>` ('default =' `groupOfNames, group, univentionGroup, ipausergroup`)::
320
321The objectclasses for groups.
322
323`--group_dn` `\w+=[^,]+(,\s*\w+=[^,]+)*` ::
324
325LDAP base domain name for group sync. If not set, the base_dn will be used.
326
327`--group_filter` `<string>` ::
328
329LDAP filter for group sync.
330
331`--group_name_attr` `<string>` ::
332
333LDAP attribute representing a groups name. If not set or found, the first value of the DN will be used as name.
334
335`--mode` `<ldap | ldap+starttls | ldaps>` ('default =' `ldap`)::
336
337LDAP protocol mode.
338
339`--password` `<string>` ::
340
341LDAP bind password. Will be stored in '/etc/pve/priv/realm/<REALM>.pw'.
342
343`--port` `<integer> (1 - 65535)` ::
344
345Server port.
346
347`--secure` `<boolean>` ::
348
349Use secure LDAPS protocol. DEPRECATED: use 'mode' instead.
350
351`--server1` `<string>` ::
352
353Server IP address (or DNS name)
354
355`--server2` `<string>` ::
356
357Fallback Server IP address (or DNS name)
358
359`--sslversion` `<tlsv1 | tlsv1_1 | tlsv1_2 | tlsv1_3>` ::
360
361LDAPS TLS/SSL version. It's not recommended to use version older than 1.2!
362
363`--sync-defaults-options` `[enable-new=<1|0>] [,full=<1|0>] [,purge=<1|0>] [,scope=<users|groups|both>]` ::
364
365The default options for behavior of synchronizations.
366
367`--sync_attributes` `\w+=[^,]+(,\s*\w+=[^,]+)*` ::
368
369Comma separated list of key=value pairs for specifying which LDAP attributes map to which PVE user field. For example, to map the LDAP attribute 'mail' to PVEs 'email', write 'email=mail'. By default, each PVE user field is represented by an LDAP attribute of the same name.
370
371`--tfa` `type=<TFATYPE> [,digits=<COUNT>] [,id=<ID>] [,key=<KEY>] [,step=<SECONDS>] [,url=<URL>]` ::
372
373Use Two-factor authentication.
374
375`--user_attr` `\S{2,}` ::
376
377LDAP user attribute name
378
379`--user_classes` `<string>` ('default =' `inetorgperson, posixaccount, person, user`)::
380
381The objectclasses for users.
382
383`--verify` `<boolean>` ('default =' `0`)::
384
385Verify the server's SSL certificate
386
387*pveum realm sync* `<realm>` `[OPTIONS]`
388
389Syncs users and/or groups from the configured LDAP to user.cfg. NOTE:
390Synced groups will have the name 'name-$realm', so make sure those groups
391do not exist to prevent overwriting.
392
393`<realm>`: `<string>` ::
394
395Authentication domain ID
396
397`--dry-run` `<boolean>` ('default =' `0`)::
398
399If set, does not write anything.
400
401`--enable-new` `<boolean>` ('default =' `1`)::
402
403Enable newly synced users immediately.
404
405`--full` `<boolean>` ::
406
407If set, uses the LDAP Directory as source of truth, deleting users or groups not returned from the sync. Otherwise only syncs information which is not already present, and does not deletes or modifies anything else.
408
409`--purge` `<boolean>` ::
410
411Remove ACLs for users or groups which were removed from the config during a sync.
412
413`--scope` `<both | groups | users>` ::
414
415Select what to sync.
416
e2d681b3 417*pveum role add* `<roleid>` `[OPTIONS]`
1f554f76
DM
418
419Create new role.
420
013dc89f 421`<roleid>`: `<string>` ::
1f554f76
DM
422
423no description available
424
2489d6df 425`--privs` `<string>` ::
1f554f76
DM
426
427no description available
428
e2d681b3 429*pveum role delete* `<roleid>`
1f554f76
DM
430
431Delete role.
432
013dc89f 433`<roleid>`: `<string>` ::
1f554f76
DM
434
435no description available
436
5c1699e5
TL
437*pveum role list* `[FORMAT_OPTIONS]`
438
439Role index.
440
e2d681b3 441*pveum role modify* `<roleid>` `[OPTIONS]`
1f554f76 442
e2d681b3 443Update an existing role.
1f554f76 444
013dc89f 445`<roleid>`: `<string>` ::
1f554f76
DM
446
447no description available
448
2489d6df 449`--append` `<boolean>` ::
1f554f76
DM
450
451no description available
452+
453NOTE: Requires option(s): `privs`
454
2489d6df 455`--privs` `<string>` ::
1f554f76
DM
456
457no description available
458
e2d681b3
TL
459*pveum roleadd*
460
461An alias for 'pveum role add'.
462
463*pveum roledel*
464
465An alias for 'pveum role delete'.
466
467*pveum rolemod*
468
469An alias for 'pveum role modify'.
470
1f554f76
DM
471*pveum ticket* `<username>` `[OPTIONS]`
472
473Create or verify authentication ticket.
474
013dc89f 475`<username>`: `<string>` ::
1f554f76
DM
476
477User name
478
2489d6df 479`--otp` `<string>` ::
1f554f76
DM
480
481One-time password for Two-factor authentication.
482
2489d6df 483`--path` `<string>` ::
1f554f76
DM
484
485Verify ticket, and check if user have access 'privs' on 'path'
486+
487NOTE: Requires option(s): `privs`
488
2489d6df 489`--privs` `<string>` ::
1f554f76
DM
490
491Verify ticket, and check if user have access 'privs' on 'path'
492+
493NOTE: Requires option(s): `path`
494
2489d6df 495`--realm` `<string>` ::
1f554f76 496
c2993fe5 497You can optionally pass the realm using this parameter. Normally the realm is simply added to the username <username>@<relam>.
1f554f76 498
e2d681b3 499*pveum user add* `<userid>` `[OPTIONS]`
1f554f76
DM
500
501Create new user.
502
013dc89f 503`<userid>`: `<string>` ::
1f554f76
DM
504
505User ID
506
2489d6df 507`--comment` `<string>` ::
1f554f76
DM
508
509no description available
510
2489d6df 511`--email` `<string>` ::
1f554f76
DM
512
513no description available
514
2489d6df 515`--enable` `<boolean>` ('default =' `1`)::
1f554f76 516
e2d681b3 517Enable the account (default). You can set this to '0' to disable the account
1f554f76 518
2489d6df 519`--expire` `<integer> (0 - N)` ::
1f554f76 520
c2993fe5 521Account expiration date (seconds since epoch). '0' means no expiration date.
1f554f76 522
2489d6df 523`--firstname` `<string>` ::
1f554f76
DM
524
525no description available
526
2489d6df 527`--groups` `<string>` ::
1f554f76
DM
528
529no description available
530
2489d6df 531`--keys` `<string>` ::
1f554f76
DM
532
533Keys for two factor auth (yubico).
534
2489d6df 535`--lastname` `<string>` ::
1f554f76
DM
536
537no description available
538
e2d681b3 539`--password` `<string>` ::
1f554f76
DM
540
541Initial password.
542
e2d681b3 543*pveum user delete* `<userid>`
1f554f76
DM
544
545Delete user.
546
013dc89f 547`<userid>`: `<string>` ::
1f554f76
DM
548
549User ID
550
5c1699e5
TL
551*pveum user list* `[OPTIONS]` `[FORMAT_OPTIONS]`
552
553User index.
554
555`--enabled` `<boolean>` ::
556
557Optional filter for enable property.
558
e9cd3bd4
TL
559`--full` `<boolean>` ('default =' `0`)::
560
561Include group and token information.
562
e2d681b3 563*pveum user modify* `<userid>` `[OPTIONS]`
1f554f76
DM
564
565Update user configuration.
566
013dc89f 567`<userid>`: `<string>` ::
1f554f76
DM
568
569User ID
570
2489d6df 571`--append` `<boolean>` ::
1f554f76
DM
572
573no description available
574+
575NOTE: Requires option(s): `groups`
576
2489d6df 577`--comment` `<string>` ::
1f554f76
DM
578
579no description available
580
2489d6df 581`--email` `<string>` ::
1f554f76
DM
582
583no description available
584
e2d681b3 585`--enable` `<boolean>` ('default =' `1`)::
1f554f76 586
e2d681b3 587Enable the account (default). You can set this to '0' to disable the account
1f554f76 588
2489d6df 589`--expire` `<integer> (0 - N)` ::
1f554f76 590
c2993fe5 591Account expiration date (seconds since epoch). '0' means no expiration date.
1f554f76 592
2489d6df 593`--firstname` `<string>` ::
1f554f76
DM
594
595no description available
596
2489d6df 597`--groups` `<string>` ::
1f554f76
DM
598
599no description available
600
2489d6df 601`--keys` `<string>` ::
1f554f76
DM
602
603Keys for two factor auth (yubico).
604
2489d6df 605`--lastname` `<string>` ::
1f554f76
DM
606
607no description available
608
e9cd3bd4
TL
609*pveum user permissions* `[<userid>]` `[OPTIONS]` `[FORMAT_OPTIONS]`
610
611Retrieve effective permissions of given user/token.
612
613`<userid>`: `(?^:^(?^:[^\s:/]+)\@(?^:[A-Za-z][A-Za-z0-9\.\-_]+)(?:!(?^:[A-Za-z][A-Za-z0-9\.\-_]+))?$)` ::
614
615User ID or full API token ID
616
617`--path` `<string>` ::
618
619Only dump this specific path, not the whole tree.
620
ac70d7d1
TL
621*pveum user tfa delete* `<userid>` `[OPTIONS]`
622
623Change user u2f authentication.
624
625`<userid>`: `<string>` ::
626
627User ID
628
629`--config` `type=<TFATYPE> [,digits=<COUNT>] [,id=<ID>] [,key=<KEY>] [,step=<SECONDS>] [,url=<URL>]` ::
630
631A TFA configuration. This must currently be of type TOTP of not set at all.
632
633`--key` `<string>` ::
634
635When adding TOTP, the shared secret value.
636
637`--password` `<string>` ::
638
639The current password.
640
641`--response` `<string>` ::
642
643Either the the response to the current u2f registration challenge, or, when adding TOTP, the currently valid TOTP value.
644
e9cd3bd4
TL
645*pveum user token add* `<userid> <tokenid>` `[OPTIONS]` `[FORMAT_OPTIONS]`
646
647Generate a new API token for a specific user. NOTE: returns API token
648value, which needs to be stored as it cannot be retrieved afterwards!
649
650`<userid>`: `<string>` ::
651
652User ID
653
654`<tokenid>`: `(?^:[A-Za-z][A-Za-z0-9\.\-_]+)` ::
655
656User-specific token identifier.
657
658`--comment` `<string>` ::
659
660no description available
661
662`--expire` `<integer> (0 - N)` ('default =' `same as user`)::
663
664API token expiration date (seconds since epoch). '0' means no expiration date.
665
666`--privsep` `<boolean>` ('default =' `1`)::
667
668Restrict API token privileges with separate ACLs (default), or give full privileges of corresponding user.
669
670*pveum user token list* `<userid>` `[FORMAT_OPTIONS]`
671
672Get user API tokens.
673
674`<userid>`: `<string>` ::
675
676User ID
677
678*pveum user token modify* `<userid> <tokenid>` `[OPTIONS]` `[FORMAT_OPTIONS]`
679
680Update API token for a specific user.
681
682`<userid>`: `<string>` ::
683
684User ID
685
686`<tokenid>`: `(?^:[A-Za-z][A-Za-z0-9\.\-_]+)` ::
687
688User-specific token identifier.
689
690`--comment` `<string>` ::
691
692no description available
693
694`--expire` `<integer> (0 - N)` ('default =' `same as user`)::
695
696API token expiration date (seconds since epoch). '0' means no expiration date.
697
698`--privsep` `<boolean>` ('default =' `1`)::
699
700Restrict API token privileges with separate ACLs (default), or give full privileges of corresponding user.
701
702*pveum user token permissions* `<userid> <tokenid>` `[OPTIONS]` `[FORMAT_OPTIONS]`
703
704Retrieve effective permissions of given token.
705
706`<userid>`: `<string>` ::
707
708User ID
709
710`<tokenid>`: `(?^:[A-Za-z][A-Za-z0-9\.\-_]+)` ::
711
712User-specific token identifier.
713
714`--path` `<string>` ::
715
716Only dump this specific path, not the whole tree.
717
718*pveum user token remove* `<userid> <tokenid>` `[FORMAT_OPTIONS]`
719
720Remove API token for a specific user.
721
722`<userid>`: `<string>` ::
723
724User ID
725
726`<tokenid>`: `(?^:[A-Za-z][A-Za-z0-9\.\-_]+)` ::
727
728User-specific token identifier.
729
e2d681b3
TL
730*pveum useradd*
731
732An alias for 'pveum user add'.
733
734*pveum userdel*
735
736An alias for 'pveum user delete'.
737
738*pveum usermod*
739
740An alias for 'pveum user modify'.
741
1f554f76 742