lxc:permissions
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
lxc:permissions [2021/01/03 16:02] – [Configure Unprivileged Containers] peter | lxc:permissions [2021/01/03 16:18] (current) – [Configure Unprivileged Containers] peter | ||
---|---|---|---|
Line 38: | Line 38: | ||
**NOTE: | **NOTE: | ||
- | If not, you'll have to use **usermod** to give yourself one. | + | If not, you'll have to use **usermod** to give yourself one: |
<code bash> | <code bash> | ||
sudo usermod --append --groups lxd peter | sudo usermod --append --groups lxd peter | ||
</ | </ | ||
+ | |||
+ | or | ||
+ | |||
+ | <code bash> | ||
+ | sudo usermod -a -G lxd peter | ||
+ | </ | ||
+ | |||
+ | By adding the non-root Unix user account to the lxd group, allows that user to run any lxc commands without prepending sudo. Without this addition, you would have needed to prepend sudo to each lxc command. | ||
+ | |||
</ | </ | ||
---- | ---- |
lxc/permissions.1609689778.txt.gz · Last modified: 2021/01/03 16:02 by peter