]> git.proxmox.com Git - pve-docs.git/blame - pveum.1-synopsis.adoc
qm: pct: mention move-disk for storage and reassign
[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
d2656385
TL
139*pveum pool add* `<poolid>` `[OPTIONS]`
140
141Create new pool.
142
143`<poolid>`: `<string>` ::
144
145no description available
146
147`--comment` `<string>` ::
148
149no description available
150
151*pveum pool delete* `<poolid>`
152
153Delete pool.
154
155`<poolid>`: `<string>` ::
156
157no description available
158
159*pveum pool list* `[FORMAT_OPTIONS]`
160
161Pool index.
162
163*pveum pool modify* `<poolid>` `[OPTIONS]`
164
165Update pool data.
166
167`<poolid>`: `<string>` ::
168
169no description available
170
171`--comment` `<string>` ::
172
173no description available
174
175`--delete` `<boolean>` ::
176
177Remove vms/storage (instead of adding it).
178
179`--storage` `<string>` ::
180
181List of storage IDs.
182
183`--vms` `<string>` ::
184
185List of virtual machines.
186
c5aa7e14
TL
187*pveum realm add* `<realm> --type <string>` `[OPTIONS]`
188
189Add an authentication server.
190
191`<realm>`: `<string>` ::
192
193Authentication domain ID
194
34f3e481
TL
195`--autocreate` `<boolean>` ('default =' `0`)::
196
197Automatically create users if they do not exist.
198
c5aa7e14
TL
199`--base_dn` `\w+=[^,]+(,\s*\w+=[^,]+)*` ::
200
201LDAP base domain name
202
203`--bind_dn` `\w+=[^,]+(,\s*\w+=[^,]+)*` ::
204
205LDAP bind domain name
206
207`--capath` `<string>` ('default =' `/etc/ssl/certs`)::
208
209Path to the CA certificate store
210
4772952b
TL
211`--case-sensitive` `<boolean>` ('default =' `1`)::
212
213username is case-sensitive
214
c5aa7e14
TL
215`--cert` `<string>` ::
216
217Path to the client certificate
218
219`--certkey` `<string>` ::
220
221Path to the client certificate key
222
34f3e481
TL
223`--client-id` `<string>` ::
224
225OpenID Client ID
226
227`--client-key` `<string>` ::
228
229OpenID Client Key
230
c5aa7e14
TL
231`--comment` `<string>` ::
232
233Description.
234
235`--default` `<boolean>` ::
236
237Use this as default realm
238
239`--domain` `\S+` ::
240
241AD domain name
242
243`--filter` `<string>` ::
244
245LDAP filter for user sync.
246
247`--group_classes` `<string>` ('default =' `groupOfNames, group, univentionGroup, ipausergroup`)::
248
249The objectclasses for groups.
250
251`--group_dn` `\w+=[^,]+(,\s*\w+=[^,]+)*` ::
252
253LDAP base domain name for group sync. If not set, the base_dn will be used.
254
255`--group_filter` `<string>` ::
256
257LDAP filter for group sync.
258
259`--group_name_attr` `<string>` ::
260
261LDAP attribute representing a groups name. If not set or found, the first value of the DN will be used as name.
262
34f3e481
TL
263`--issuer-url` `<string>` ::
264
265OpenID Issuer Url
266
c5aa7e14
TL
267`--mode` `<ldap | ldap+starttls | ldaps>` ('default =' `ldap`)::
268
269LDAP protocol mode.
270
271`--password` `<string>` ::
272
273LDAP bind password. Will be stored in '/etc/pve/priv/realm/<REALM>.pw'.
274
275`--port` `<integer> (1 - 65535)` ::
276
277Server port.
278
279`--secure` `<boolean>` ::
280
281Use secure LDAPS protocol. DEPRECATED: use 'mode' instead.
282
283`--server1` `<string>` ::
284
285Server IP address (or DNS name)
286
287`--server2` `<string>` ::
288
289Fallback Server IP address (or DNS name)
290
291`--sslversion` `<tlsv1 | tlsv1_1 | tlsv1_2 | tlsv1_3>` ::
292
293LDAPS TLS/SSL version. It's not recommended to use version older than 1.2!
294
295`--sync-defaults-options` `[enable-new=<1|0>] [,full=<1|0>] [,purge=<1|0>] [,scope=<users|groups|both>]` ::
296
297The default options for behavior of synchronizations.
298
299`--sync_attributes` `\w+=[^,]+(,\s*\w+=[^,]+)*` ::
300
301Comma 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.
302
303`--tfa` `type=<TFATYPE> [,digits=<COUNT>] [,id=<ID>] [,key=<KEY>] [,step=<SECONDS>] [,url=<URL>]` ::
304
305Use Two-factor authentication.
306
34f3e481 307`--type` `<ad | ldap | openid | pam | pve>` ::
c5aa7e14
TL
308
309Realm type.
310
311`--user_attr` `\S{2,}` ::
312
313LDAP user attribute name
314
315`--user_classes` `<string>` ('default =' `inetorgperson, posixaccount, person, user`)::
316
317The objectclasses for users.
318
34f3e481
TL
319`--username-claim` `<email | subject | username>` ::
320
321OpenID claim used to generate the unique username.
322
c5aa7e14
TL
323`--verify` `<boolean>` ('default =' `0`)::
324
325Verify the server's SSL certificate
326
327*pveum realm delete* `<realm>`
328
329Delete an authentication server.
330
331`<realm>`: `<string>` ::
332
333Authentication domain ID
334
335*pveum realm list* `[FORMAT_OPTIONS]`
336
337Authentication domain index.
338
339*pveum realm modify* `<realm>` `[OPTIONS]`
340
341Update authentication server settings.
342
343`<realm>`: `<string>` ::
344
345Authentication domain ID
346
34f3e481
TL
347`--autocreate` `<boolean>` ('default =' `0`)::
348
349Automatically create users if they do not exist.
350
c5aa7e14
TL
351`--base_dn` `\w+=[^,]+(,\s*\w+=[^,]+)*` ::
352
353LDAP base domain name
354
355`--bind_dn` `\w+=[^,]+(,\s*\w+=[^,]+)*` ::
356
357LDAP bind domain name
358
359`--capath` `<string>` ('default =' `/etc/ssl/certs`)::
360
361Path to the CA certificate store
362
4772952b
TL
363`--case-sensitive` `<boolean>` ('default =' `1`)::
364
365username is case-sensitive
366
c5aa7e14
TL
367`--cert` `<string>` ::
368
369Path to the client certificate
370
371`--certkey` `<string>` ::
372
373Path to the client certificate key
374
34f3e481
TL
375`--client-id` `<string>` ::
376
377OpenID Client ID
378
379`--client-key` `<string>` ::
380
381OpenID Client Key
382
c5aa7e14
TL
383`--comment` `<string>` ::
384
385Description.
386
387`--default` `<boolean>` ::
388
389Use this as default realm
390
391`--delete` `<string>` ::
392
393A list of settings you want to delete.
394
395`--digest` `<string>` ::
396
397Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.
398
399`--domain` `\S+` ::
400
401AD domain name
402
403`--filter` `<string>` ::
404
405LDAP filter for user sync.
406
407`--group_classes` `<string>` ('default =' `groupOfNames, group, univentionGroup, ipausergroup`)::
408
409The objectclasses for groups.
410
411`--group_dn` `\w+=[^,]+(,\s*\w+=[^,]+)*` ::
412
413LDAP base domain name for group sync. If not set, the base_dn will be used.
414
415`--group_filter` `<string>` ::
416
417LDAP filter for group sync.
418
419`--group_name_attr` `<string>` ::
420
421LDAP attribute representing a groups name. If not set or found, the first value of the DN will be used as name.
422
34f3e481
TL
423`--issuer-url` `<string>` ::
424
425OpenID Issuer Url
426
c5aa7e14
TL
427`--mode` `<ldap | ldap+starttls | ldaps>` ('default =' `ldap`)::
428
429LDAP protocol mode.
430
431`--password` `<string>` ::
432
433LDAP bind password. Will be stored in '/etc/pve/priv/realm/<REALM>.pw'.
434
435`--port` `<integer> (1 - 65535)` ::
436
437Server port.
438
439`--secure` `<boolean>` ::
440
441Use secure LDAPS protocol. DEPRECATED: use 'mode' instead.
442
443`--server1` `<string>` ::
444
445Server IP address (or DNS name)
446
447`--server2` `<string>` ::
448
449Fallback Server IP address (or DNS name)
450
451`--sslversion` `<tlsv1 | tlsv1_1 | tlsv1_2 | tlsv1_3>` ::
452
453LDAPS TLS/SSL version. It's not recommended to use version older than 1.2!
454
455`--sync-defaults-options` `[enable-new=<1|0>] [,full=<1|0>] [,purge=<1|0>] [,scope=<users|groups|both>]` ::
456
457The default options for behavior of synchronizations.
458
459`--sync_attributes` `\w+=[^,]+(,\s*\w+=[^,]+)*` ::
460
461Comma 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.
462
463`--tfa` `type=<TFATYPE> [,digits=<COUNT>] [,id=<ID>] [,key=<KEY>] [,step=<SECONDS>] [,url=<URL>]` ::
464
465Use Two-factor authentication.
466
467`--user_attr` `\S{2,}` ::
468
469LDAP user attribute name
470
471`--user_classes` `<string>` ('default =' `inetorgperson, posixaccount, person, user`)::
472
473The objectclasses for users.
474
475`--verify` `<boolean>` ('default =' `0`)::
476
477Verify the server's SSL certificate
478
479*pveum realm sync* `<realm>` `[OPTIONS]`
480
481Syncs users and/or groups from the configured LDAP to user.cfg. NOTE:
482Synced groups will have the name 'name-$realm', so make sure those groups
483do not exist to prevent overwriting.
484
485`<realm>`: `<string>` ::
486
487Authentication domain ID
488
489`--dry-run` `<boolean>` ('default =' `0`)::
490
491If set, does not write anything.
492
493`--enable-new` `<boolean>` ('default =' `1`)::
494
495Enable newly synced users immediately.
496
497`--full` `<boolean>` ::
498
499If 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.
500
501`--purge` `<boolean>` ::
502
503Remove ACLs for users or groups which were removed from the config during a sync.
504
505`--scope` `<both | groups | users>` ::
506
507Select what to sync.
508
e2d681b3 509*pveum role add* `<roleid>` `[OPTIONS]`
1f554f76
DM
510
511Create new role.
512
013dc89f 513`<roleid>`: `<string>` ::
1f554f76
DM
514
515no description available
516
2489d6df 517`--privs` `<string>` ::
1f554f76
DM
518
519no description available
520
e2d681b3 521*pveum role delete* `<roleid>`
1f554f76
DM
522
523Delete role.
524
013dc89f 525`<roleid>`: `<string>` ::
1f554f76
DM
526
527no description available
528
5c1699e5
TL
529*pveum role list* `[FORMAT_OPTIONS]`
530
531Role index.
532
e2d681b3 533*pveum role modify* `<roleid>` `[OPTIONS]`
1f554f76 534
e2d681b3 535Update an existing role.
1f554f76 536
013dc89f 537`<roleid>`: `<string>` ::
1f554f76
DM
538
539no description available
540
2489d6df 541`--append` `<boolean>` ::
1f554f76
DM
542
543no description available
544+
545NOTE: Requires option(s): `privs`
546
2489d6df 547`--privs` `<string>` ::
1f554f76
DM
548
549no description available
550
e2d681b3
TL
551*pveum roleadd*
552
553An alias for 'pveum role add'.
554
555*pveum roledel*
556
557An alias for 'pveum role delete'.
558
559*pveum rolemod*
560
561An alias for 'pveum role modify'.
562
1f554f76
DM
563*pveum ticket* `<username>` `[OPTIONS]`
564
565Create or verify authentication ticket.
566
013dc89f 567`<username>`: `<string>` ::
1f554f76
DM
568
569User name
570
5370fa8c
TL
571`--new-format` `<boolean>` ('default =' `0`)::
572
573With webauthn the format of half-authenticated tickts changed. New clients should pass 1 here and not worry about the old format. The old format is deprecated and will be retired with PVE-8.0
574
2489d6df 575`--otp` `<string>` ::
1f554f76
DM
576
577One-time password for Two-factor authentication.
578
2489d6df 579`--path` `<string>` ::
1f554f76
DM
580
581Verify ticket, and check if user have access 'privs' on 'path'
582+
583NOTE: Requires option(s): `privs`
584
2489d6df 585`--privs` `<string>` ::
1f554f76
DM
586
587Verify ticket, and check if user have access 'privs' on 'path'
588+
589NOTE: Requires option(s): `path`
590
2489d6df 591`--realm` `<string>` ::
1f554f76 592
c2993fe5 593You can optionally pass the realm using this parameter. Normally the realm is simply added to the username <username>@<relam>.
1f554f76 594
5370fa8c
TL
595`--tfa-challenge` `<string>` ::
596
597The signed TFA challenge string the user wants to respond to.
598
e2d681b3 599*pveum user add* `<userid>` `[OPTIONS]`
1f554f76
DM
600
601Create new user.
602
013dc89f 603`<userid>`: `<string>` ::
1f554f76
DM
604
605User ID
606
2489d6df 607`--comment` `<string>` ::
1f554f76
DM
608
609no description available
610
2489d6df 611`--email` `<string>` ::
1f554f76
DM
612
613no description available
614
2489d6df 615`--enable` `<boolean>` ('default =' `1`)::
1f554f76 616
e2d681b3 617Enable the account (default). You can set this to '0' to disable the account
1f554f76 618
2489d6df 619`--expire` `<integer> (0 - N)` ::
1f554f76 620
c2993fe5 621Account expiration date (seconds since epoch). '0' means no expiration date.
1f554f76 622
2489d6df 623`--firstname` `<string>` ::
1f554f76
DM
624
625no description available
626
2489d6df 627`--groups` `<string>` ::
1f554f76
DM
628
629no description available
630
2489d6df 631`--keys` `<string>` ::
1f554f76
DM
632
633Keys for two factor auth (yubico).
634
2489d6df 635`--lastname` `<string>` ::
1f554f76
DM
636
637no description available
638
e2d681b3 639`--password` `<string>` ::
1f554f76
DM
640
641Initial password.
642
e2d681b3 643*pveum user delete* `<userid>`
1f554f76
DM
644
645Delete user.
646
013dc89f 647`<userid>`: `<string>` ::
1f554f76
DM
648
649User ID
650
5c1699e5
TL
651*pveum user list* `[OPTIONS]` `[FORMAT_OPTIONS]`
652
653User index.
654
655`--enabled` `<boolean>` ::
656
657Optional filter for enable property.
658
e9cd3bd4
TL
659`--full` `<boolean>` ('default =' `0`)::
660
661Include group and token information.
662
e2d681b3 663*pveum user modify* `<userid>` `[OPTIONS]`
1f554f76
DM
664
665Update user configuration.
666
013dc89f 667`<userid>`: `<string>` ::
1f554f76
DM
668
669User ID
670
2489d6df 671`--append` `<boolean>` ::
1f554f76
DM
672
673no description available
674+
675NOTE: Requires option(s): `groups`
676
2489d6df 677`--comment` `<string>` ::
1f554f76
DM
678
679no description available
680
2489d6df 681`--email` `<string>` ::
1f554f76
DM
682
683no description available
684
e2d681b3 685`--enable` `<boolean>` ('default =' `1`)::
1f554f76 686
e2d681b3 687Enable the account (default). You can set this to '0' to disable the account
1f554f76 688
2489d6df 689`--expire` `<integer> (0 - N)` ::
1f554f76 690
c2993fe5 691Account expiration date (seconds since epoch). '0' means no expiration date.
1f554f76 692
2489d6df 693`--firstname` `<string>` ::
1f554f76
DM
694
695no description available
696
2489d6df 697`--groups` `<string>` ::
1f554f76
DM
698
699no description available
700
2489d6df 701`--keys` `<string>` ::
1f554f76
DM
702
703Keys for two factor auth (yubico).
704
2489d6df 705`--lastname` `<string>` ::
1f554f76
DM
706
707no description available
708
e9cd3bd4
TL
709*pveum user permissions* `[<userid>]` `[OPTIONS]` `[FORMAT_OPTIONS]`
710
711Retrieve effective permissions of given user/token.
712
713`<userid>`: `(?^:^(?^:[^\s:/]+)\@(?^:[A-Za-z][A-Za-z0-9\.\-_]+)(?:!(?^:[A-Za-z][A-Za-z0-9\.\-_]+))?$)` ::
714
715User ID or full API token ID
716
717`--path` `<string>` ::
718
719Only dump this specific path, not the whole tree.
720
ac70d7d1
TL
721*pveum user tfa delete* `<userid>` `[OPTIONS]`
722
5370fa8c 723Delete TFA entries from a user.
ac70d7d1
TL
724
725`<userid>`: `<string>` ::
726
727User ID
728
5370fa8c 729`--id` `<string>` ::
ac70d7d1 730
5370fa8c 731The TFA ID, if none provided, all TFA entries will be deleted.
ac70d7d1 732
e9cd3bd4
TL
733*pveum user token add* `<userid> <tokenid>` `[OPTIONS]` `[FORMAT_OPTIONS]`
734
735Generate a new API token for a specific user. NOTE: returns API token
736value, which needs to be stored as it cannot be retrieved afterwards!
737
738`<userid>`: `<string>` ::
739
740User ID
741
742`<tokenid>`: `(?^:[A-Za-z][A-Za-z0-9\.\-_]+)` ::
743
744User-specific token identifier.
745
746`--comment` `<string>` ::
747
748no description available
749
750`--expire` `<integer> (0 - N)` ('default =' `same as user`)::
751
752API token expiration date (seconds since epoch). '0' means no expiration date.
753
754`--privsep` `<boolean>` ('default =' `1`)::
755
756Restrict API token privileges with separate ACLs (default), or give full privileges of corresponding user.
757
758*pveum user token list* `<userid>` `[FORMAT_OPTIONS]`
759
760Get user API tokens.
761
762`<userid>`: `<string>` ::
763
764User ID
765
766*pveum user token modify* `<userid> <tokenid>` `[OPTIONS]` `[FORMAT_OPTIONS]`
767
768Update API token for a specific user.
769
770`<userid>`: `<string>` ::
771
772User ID
773
774`<tokenid>`: `(?^:[A-Za-z][A-Za-z0-9\.\-_]+)` ::
775
776User-specific token identifier.
777
778`--comment` `<string>` ::
779
780no description available
781
782`--expire` `<integer> (0 - N)` ('default =' `same as user`)::
783
784API token expiration date (seconds since epoch). '0' means no expiration date.
785
786`--privsep` `<boolean>` ('default =' `1`)::
787
788Restrict API token privileges with separate ACLs (default), or give full privileges of corresponding user.
789
790*pveum user token permissions* `<userid> <tokenid>` `[OPTIONS]` `[FORMAT_OPTIONS]`
791
792Retrieve effective permissions of given token.
793
794`<userid>`: `<string>` ::
795
796User ID
797
798`<tokenid>`: `(?^:[A-Za-z][A-Za-z0-9\.\-_]+)` ::
799
800User-specific token identifier.
801
802`--path` `<string>` ::
803
804Only dump this specific path, not the whole tree.
805
806*pveum user token remove* `<userid> <tokenid>` `[FORMAT_OPTIONS]`
807
808Remove API token for a specific user.
809
810`<userid>`: `<string>` ::
811
812User ID
813
814`<tokenid>`: `(?^:[A-Za-z][A-Za-z0-9\.\-_]+)` ::
815
816User-specific token identifier.
817
e2d681b3
TL
818*pveum useradd*
819
820An alias for 'pveum user add'.
821
822*pveum userdel*
823
824An alias for 'pveum user delete'.
825
826*pveum usermod*
827
828An alias for 'pveum user modify'.
829
1f554f76 830