]> git.proxmox.com Git - pve-docs.git/blame - pveum.1-synopsis.adoc
btrfs: document df weirdness and how to better get usage
[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
2489d6df 571`--otp` `<string>` ::
1f554f76
DM
572
573One-time password for Two-factor authentication.
574
2489d6df 575`--path` `<string>` ::
1f554f76
DM
576
577Verify ticket, and check if user have access 'privs' on 'path'
578+
579NOTE: Requires option(s): `privs`
580
2489d6df 581`--privs` `<string>` ::
1f554f76
DM
582
583Verify ticket, and check if user have access 'privs' on 'path'
584+
585NOTE: Requires option(s): `path`
586
2489d6df 587`--realm` `<string>` ::
1f554f76 588
c2993fe5 589You can optionally pass the realm using this parameter. Normally the realm is simply added to the username <username>@<relam>.
1f554f76 590
e2d681b3 591*pveum user add* `<userid>` `[OPTIONS]`
1f554f76
DM
592
593Create new user.
594
013dc89f 595`<userid>`: `<string>` ::
1f554f76
DM
596
597User ID
598
2489d6df 599`--comment` `<string>` ::
1f554f76
DM
600
601no description available
602
2489d6df 603`--email` `<string>` ::
1f554f76
DM
604
605no description available
606
2489d6df 607`--enable` `<boolean>` ('default =' `1`)::
1f554f76 608
e2d681b3 609Enable the account (default). You can set this to '0' to disable the account
1f554f76 610
2489d6df 611`--expire` `<integer> (0 - N)` ::
1f554f76 612
c2993fe5 613Account expiration date (seconds since epoch). '0' means no expiration date.
1f554f76 614
2489d6df 615`--firstname` `<string>` ::
1f554f76
DM
616
617no description available
618
2489d6df 619`--groups` `<string>` ::
1f554f76
DM
620
621no description available
622
2489d6df 623`--keys` `<string>` ::
1f554f76
DM
624
625Keys for two factor auth (yubico).
626
2489d6df 627`--lastname` `<string>` ::
1f554f76
DM
628
629no description available
630
e2d681b3 631`--password` `<string>` ::
1f554f76
DM
632
633Initial password.
634
e2d681b3 635*pveum user delete* `<userid>`
1f554f76
DM
636
637Delete user.
638
013dc89f 639`<userid>`: `<string>` ::
1f554f76
DM
640
641User ID
642
5c1699e5
TL
643*pveum user list* `[OPTIONS]` `[FORMAT_OPTIONS]`
644
645User index.
646
647`--enabled` `<boolean>` ::
648
649Optional filter for enable property.
650
e9cd3bd4
TL
651`--full` `<boolean>` ('default =' `0`)::
652
653Include group and token information.
654
e2d681b3 655*pveum user modify* `<userid>` `[OPTIONS]`
1f554f76
DM
656
657Update user configuration.
658
013dc89f 659`<userid>`: `<string>` ::
1f554f76
DM
660
661User ID
662
2489d6df 663`--append` `<boolean>` ::
1f554f76
DM
664
665no description available
666+
667NOTE: Requires option(s): `groups`
668
2489d6df 669`--comment` `<string>` ::
1f554f76
DM
670
671no description available
672
2489d6df 673`--email` `<string>` ::
1f554f76
DM
674
675no description available
676
e2d681b3 677`--enable` `<boolean>` ('default =' `1`)::
1f554f76 678
e2d681b3 679Enable the account (default). You can set this to '0' to disable the account
1f554f76 680
2489d6df 681`--expire` `<integer> (0 - N)` ::
1f554f76 682
c2993fe5 683Account expiration date (seconds since epoch). '0' means no expiration date.
1f554f76 684
2489d6df 685`--firstname` `<string>` ::
1f554f76
DM
686
687no description available
688
2489d6df 689`--groups` `<string>` ::
1f554f76
DM
690
691no description available
692
2489d6df 693`--keys` `<string>` ::
1f554f76
DM
694
695Keys for two factor auth (yubico).
696
2489d6df 697`--lastname` `<string>` ::
1f554f76
DM
698
699no description available
700
e9cd3bd4
TL
701*pveum user permissions* `[<userid>]` `[OPTIONS]` `[FORMAT_OPTIONS]`
702
703Retrieve effective permissions of given user/token.
704
705`<userid>`: `(?^:^(?^:[^\s:/]+)\@(?^:[A-Za-z][A-Za-z0-9\.\-_]+)(?:!(?^:[A-Za-z][A-Za-z0-9\.\-_]+))?$)` ::
706
707User ID or full API token ID
708
709`--path` `<string>` ::
710
711Only dump this specific path, not the whole tree.
712
ac70d7d1
TL
713*pveum user tfa delete* `<userid>` `[OPTIONS]`
714
715Change user u2f authentication.
716
717`<userid>`: `<string>` ::
718
719User ID
720
721`--config` `type=<TFATYPE> [,digits=<COUNT>] [,id=<ID>] [,key=<KEY>] [,step=<SECONDS>] [,url=<URL>]` ::
722
723A TFA configuration. This must currently be of type TOTP of not set at all.
724
725`--key` `<string>` ::
726
727When adding TOTP, the shared secret value.
728
729`--password` `<string>` ::
730
731The current password.
732
733`--response` `<string>` ::
734
735Either the the response to the current u2f registration challenge, or, when adding TOTP, the currently valid TOTP value.
736
e9cd3bd4
TL
737*pveum user token add* `<userid> <tokenid>` `[OPTIONS]` `[FORMAT_OPTIONS]`
738
739Generate a new API token for a specific user. NOTE: returns API token
740value, which needs to be stored as it cannot be retrieved afterwards!
741
742`<userid>`: `<string>` ::
743
744User ID
745
746`<tokenid>`: `(?^:[A-Za-z][A-Za-z0-9\.\-_]+)` ::
747
748User-specific token identifier.
749
750`--comment` `<string>` ::
751
752no description available
753
754`--expire` `<integer> (0 - N)` ('default =' `same as user`)::
755
756API token expiration date (seconds since epoch). '0' means no expiration date.
757
758`--privsep` `<boolean>` ('default =' `1`)::
759
760Restrict API token privileges with separate ACLs (default), or give full privileges of corresponding user.
761
762*pveum user token list* `<userid>` `[FORMAT_OPTIONS]`
763
764Get user API tokens.
765
766`<userid>`: `<string>` ::
767
768User ID
769
770*pveum user token modify* `<userid> <tokenid>` `[OPTIONS]` `[FORMAT_OPTIONS]`
771
772Update API token for a specific user.
773
774`<userid>`: `<string>` ::
775
776User ID
777
778`<tokenid>`: `(?^:[A-Za-z][A-Za-z0-9\.\-_]+)` ::
779
780User-specific token identifier.
781
782`--comment` `<string>` ::
783
784no description available
785
786`--expire` `<integer> (0 - N)` ('default =' `same as user`)::
787
788API token expiration date (seconds since epoch). '0' means no expiration date.
789
790`--privsep` `<boolean>` ('default =' `1`)::
791
792Restrict API token privileges with separate ACLs (default), or give full privileges of corresponding user.
793
794*pveum user token permissions* `<userid> <tokenid>` `[OPTIONS]` `[FORMAT_OPTIONS]`
795
796Retrieve effective permissions of given token.
797
798`<userid>`: `<string>` ::
799
800User ID
801
802`<tokenid>`: `(?^:[A-Za-z][A-Za-z0-9\.\-_]+)` ::
803
804User-specific token identifier.
805
806`--path` `<string>` ::
807
808Only dump this specific path, not the whole tree.
809
810*pveum user token remove* `<userid> <tokenid>` `[FORMAT_OPTIONS]`
811
812Remove API token for a specific user.
813
814`<userid>`: `<string>` ::
815
816User ID
817
818`<tokenid>`: `(?^:[A-Za-z][A-Za-z0-9\.\-_]+)` ::
819
820User-specific token identifier.
821
e2d681b3
TL
822*pveum useradd*
823
824An alias for 'pveum user add'.
825
826*pveum userdel*
827
828An alias for 'pveum user delete'.
829
830*pveum usermod*
831
832An alias for 'pveum user modify'.
833
1f554f76 834