LXD requires additional permissions

How to resolve this error message (more information after the first section):

$ snapcraft
craft-providers error: LXD requires additional permissions.
Ensure that the user is in the 'lxd' group.
Visit https://documentation.ubuntu.com/lxd/en/latest/getting_started/ for instructions on installing and configuring LXD for your operating system.                                                                    
Full execution log: '/home/user1/.local/state/snapcraft/log/snapcraft-20240304-184515.687693.log'                                                               
$ whoami
$ getent group lxd

I’m trying to build a Hello World snap in C using published docs but not making progress owing to my limited understanding. The snapcraft.yaml file is:

name: hello-snap # you probably want to 'snapcraft register <name>'
base: core22 # the base snap is the execution environment for this snap
version: '0.1' # just for humans, typically '1.2+git' or '1.3.2'
summary: Snap equivalent for Hello Worldp # 79 char long summary
description: |
  This hello-snap demonstrates the simplest app
  for the limited purposes of this tutorial store.

grade: devel # must be 'stable' to release into candidate/stable channels
confinement: devmode # use 'strict' once you have the right plugs and slots

    plugin: autotools
    # See 'snapcraft plugins'
    source: .
      - g++

    command: ./hello-snap

What are the additional permissions needed, please? Thanks.


Has user1 logged out and back in after it was added to the group to make that change fully effective ?

1 Like

@ogra , thanks! In my haste, I forgot the basics. After logging out and logging in again, the permissions issue dissolved.

This is my first direct interaction with you but I’ve been on this mailing list from this forum for a few years. I want to thank you for all the support that you provide to the community.

Warmest regards.