tralph3 / ZeroTier-GUI

A Linux front-end for ZeroTier
GNU General Public License v3.0
211 stars 32 forks source link

Application asks for authorization on its first launch after user login. #26

Open nikitas1988 opened 4 months ago

nikitas1988 commented 4 months ago

Is there a way to add my user to the zerotier group? I tried adding my user to it, but the issue persists after re-login (Fedora-40-Gnome)

tralph3 commented 4 months ago

Do check if you're indeed in the ZT group. Run groups to see which groups your user belongs to.

nikitas1988 commented 4 months ago

Well, my user is a member of zerotier-one group. I added also root to it in case just to see if something changes, but it still asks.

nikmak88 commented 4 months ago

Ok. Maybe an update can be pushed to fix this. I changed ownership of the whole /var/lib/zerotier-one file to my user and now it always starts without prompt. The prompt can do that in the future with the corresponding disclaimer of course.

Jayvratsinh commented 3 months ago

Ok. Maybe an update can be pushed to fix this. I changed ownership of the whole /var/lib/zerotier-one file to my user and now it always starts without prompt. The prompt can do that in the future with the corresponding disclaimer of course.

I tried this, it did not work for me. I am using the Ubuntu 24.04 LTS release. I even tried copying the zerotier token in my user directory, changing permission of /var/lib/zerotier-one directory and files, nothing works. I had to eventually go back to using zerotier-cli commands.

tralph3 commented 3 months ago

Unfortunately, last time I checked the ZT documentation on how this works was kind of lacking. The method implemented in ZT-GUI is not that reliable.

Personally, the prompt always shows up the first time I run the program, but then it goes away. It's really odd. It used to work just fine before.

The proper way to do this would be to use the REST API that's always running locally. I suspect it will be the end of this then. I'll get around to it eventually...