Comments (4)
So, in order to grant access to a regular user to ZeroTier, you need to have the authorization token in your home folder. The program should check if you have it, and create it if you don't. For this, it asks you for root permission with pkexec, here's the relevant piece of code:
system( f'pkexec bash -c "cp /var/lib/zerotier-one/authtoken.secret '\
f'/home/{username}/.zeroTierOneAuthToken && chown {username} '\
f'/home/{username}/.zeroTierOneAuthToken && chmod 0600 '\
f'/home/{username}/.zeroTierOneAuthToken"'
)
As you can see, all it does is copy that file and give you permissions.
Now, you say pkexec isn't working with the program, but it does work with the terminal. Does running the GUI through the terminal show any other error? Maybe it's failing somehow.
from zerotier-gui.
So, in order to grant access to a regular user to ZeroTier, you need to have the authorization token in your home folder. The program should check if you have it, and create it if you don't. For this, it asks you for root permission with pkexec, here's the relevant piece of code:
system( f'pkexec bash -c "cp /var/lib/zerotier-one/authtoken.secret '\ f'/home/{username}/.zeroTierOneAuthToken && chown {username} '\ f'/home/{username}/.zeroTierOneAuthToken && chmod 0600 '\ f'/home/{username}/.zeroTierOneAuthToken"' )
As you can see, all it does is copy that file and give you permissions.
Now, you say pkexec isn't working with the program, but it does work with the terminal. Does running the GUI through the terminal show any other error? Maybe it's failing somehow.
Hi,
now it works, without pkexec.... in .desktop file.
I think I saw somewhere on zertier support site that versions above ~1.6.0 have changed root privileges policy, earlier I had zerotier (below 1.6.0) with zerotier-gui on another pc (same ubuntu 20.04) and worked without a hassle.
Maybe there should be Yours script included in Install.sh or included 2nd .....fix_root_permissions.sh into installer so any1 else could easy fix same problems.
Anyway problem fixed.
Thank You for Your support.
Regards.
from zerotier-gui.
What would be the new root privileges policy?
from zerotier-gui.
What would be the new root privileges policy?
Sorry, it wasnt on zerotier support, it was here on github, the problem exists in >= 1.4.0
Here's the link:
zerotier/ZeroTierOne#996
It's just the policy for normal users, just what Your script does fixing problem.
from zerotier-gui.
Related Issues (20)
- Add to AUR repo? HOT 3
- Way to see peer IP address HOT 2
- Debian installation places make_deb in computer root
- zerotier service isn't enabled bug HOT 12
- DNS Config checkbox HOT 3
- Can't get access to ZeroTier HOT 9
- Feature: Gtk + Adwaita app look and feel HOT 6
- does not launch anymore HOT 4
- Treeview is unreadable on HiDPI screens
- systemd hard dependency HOT 4
- problem with launching
- Zerotier-gui not working correctly on Ubuntu 22.04 HOT 8
- Application asks for authorization on its first launch after user login. HOT 3
- GLIBC_3.2 not found HOT 17
- Flatpak Version HOT 11
- Thanks HOT 3
- Botón para encender o apagar ZeroTier HOT 6
- zerotier-gui expected but zerotier-gui.py is the one being redistributed. HOT 1
- ZeroTier isn't installed! HOT 23
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zerotier-gui.