incus/script/__1

14 lines
340 B
Plaintext
Raw Normal View History

2024-11-12 07:22:30 +00:00
echo "root:passroot" | incus exec z1 -- chpasswd
incus exec z1 -- useradd -m -s /bin/bash user
echo "user:pass" | incus exec z1 -- chpasswd
incus exec z1 -- usermod -aG sudo user
incus exec z1 -- usermod -aG docker user
incus stop z1
incus config set z1 security.nesting true
incus config set z1 security.privileged true
incus start z1