Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [SOLVED] Unable to run LXD as non root user even after adding to group (Read 1146 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[SOLVED] Unable to run LXD as non root user even after adding to group

when in try to run lxc and lxd as non root user added to lxd group. i get permission error

this does not happen with other applications such as docker and others

Re: Unable to run LXD as non root user even after adding to group

Reply #1
more info need, put here some output from terminal

Re: Unable to run LXD as non root user even after adding to group

Reply #2
Error: Get "http://unix.socket/1.0": dial unix /var/lib/lxd/unix.socket: connect: permission denied
i get this when i try a normal user. but it works when i a sudo user

Re: Unable to run LXD as non root user even after adding to group

Reply #3
what say if you run it as user
Code: [Select]
groups

Re: Unable to run LXD as non root user even after adding to group

Reply #4
lxd libvirt docker wheel


Re: Unable to run LXD as non root user even after adding to group

Reply #6
thank you. but both of the links were not able to solve the problem. still need  be a sudo user
were you able to solve this . i followed all the steps and rebooted still could not get it working

Re: Unable to run LXD as non root user even after adding to group

Reply #7
i have openrc

 

Re: Unable to run LXD as non root user even after adding to group

Reply #8
i have a startup script that changes permission of unix.socket
probably not recommended but i had no other option for now