Today we are going to fix an error when we want to run Hamachi service, mostly this error just happen on Arch Linux for other distros maybe you can use this fix too, just try it, there is no harm in trying. So let’s go to the main topic.
Hamachi is a software that let’s you to create a Private Network with ease, the installation steps is easy too as you can see on my post here. After the installation to get Hamachi work, we should run the service first.
But the problem begin when we want to run $ hamachi, the system do not let us run hamachi as a regular user, but with root user. The error is like this:
You do not have permission to control the hamachid daemon. You can run 'hamachi' as root, or you can add your login name to the file '/var/lib/logmein-hamachi/h2-engine-override.cfg' and restart the daemon with sudo /etc/init.d/logmein-hamachi restart Example: Ipc.User <login name>
How to Fix it ?
To fix this problem, as I found from the AUR page of Hamachi, we need to create a file named h2-engine-override.cfg in /var/lib/logmein-hamachi directory. So let’s do it.
1. Create the directory first if the directory isn’t exist with:
$ sudo mkdir /var/lib/logmein-hamachi
2. Now create the file:
$ sudo nano /var/lib/logmein-hamachi/h2-engine-override.cfg
3. Add this line to the file you created before
Change the YourUserNameHere to your username (ex. mortarboyz), and save the file.
4. Restart Hamachi service by:
$ sudo systemctl restart logmein-hamachi.service
5. Now try run $ hamachi again, and it will work, here is the screenshot on my Arch.
That’s all for Quick Fix post today about How to Fix “You do not have permission to control the hamachid daemon” on Hamachi, I hope this post help you to fix your Hamachi. If you still have problem or you want to ask something, just leave it on the comment below.
Thanks for your visit !