Yes the website is loading fine and I do get the usual login page. But after I enter username and password I get this 400 error message.
I actually thought they use the same authenticators. But in any case, I clicked to reset my password and entered my username and got an email to the right email address. So my username and email address is in the AUR user database. I choose a new password, but I still got the same error message and was unable to login.
What I try to do is auto connect to proton vpn as soon as there is a connection to the internet established. I try to do this with systemd unit NetworkManager-dispatcher.service by placing a short bash script into the /etc/NetworkManager/dispatcher.d directory. This is described in
This script must have root as owner and is executed by root. But the command protonvpn-cli should be executed by a none privileged user. It also produces an error message when executed as root.
Yes, whoami works and a lot other things, but sadly not everything. I just found runuser. This does seems to work exactly as I wanted/expected. As root you can do
runuser -l normaluser -c 'ls ~'
for example and it really gives you /home/normaluser and not /root.
Sadly it does not work in my desired case for the command protonvpn-cli
Well, I try to de-escalate privileges. I am ofc aware that sudo can elevate privileges but I thought sudo -u works differently.
Do you then know a way to achieve running a command exactly like a normal user when I am root?
I was thinking about using openVPN. But Proton advices to use their tools. And I thought it is easier to setup and to maintain. You don't have to update any openVPN config files when proton changes anything.
Are you using protonVPN? Do you connect to it via openVPN?
Just tested it and it is the same on my PC/phone.
I used firefox. See my edit! But thanks for your reply!
:) I don't know but I get more and more problems with firefox. Maybe I have to switch to chromium ...
No does not seem to work with firefox. But strangely it works with chromium just fine.
The AUR site works totally fine, I just can't login.
I just tried to login with chromium and it works fine! That's good at least, but still would be nice if I could use my favourite browser :(
Yes the website is loading fine and I do get the usual login page. But after I enter username and password I get this 400 error message.
I actually thought they use the same authenticators. But in any case, I clicked to reset my password and entered my username and got an email to the right email address. So my username and email address is in the AUR user database. I choose a new password, but I still got the same error message and was unable to login.
I never had any problems logging in. :(
I have the same problem but changing anything in my mirrorlist does lead to the same error message.
I took the live mirrorlist from https://archlinux.org/mirrorlist/ and used the worldwide mirrors with the same result.
Someone any idea?
If you want to play pirated games under Linux the subreddit /r/LinuxCrackSupport/ might be of interest.
Pain in the ass I think.
Oh yes, I tried that to. And it did work! It does circumvent the user id check from proton_cli!
Sadly it does result in multiple other error messages. There seem to be a few things wrong with this tool.
Thanks a lot for looking into it!
I think writing a user systemd unit is probably the best chance to get their hacky tool to work. Or maybe use openvpn? I might try this as well.
Again thanks a lot for your help!
Well this unit comes with the NetworkManager and it looks in dispatcher directory and execute the scripts in there. I thought exactly what I needed.
But your are probably right, it would be best to write a user unit.
The examples in the wiki do use su to execute commands like sshfs as a none privileged user. But that somehow does not work with protonvpn-cli.
Hm, do you mean to replace SUDO_UID with a user id number? If so, i tried that with my user id of 1001. Still it results in the same error message
Running ProtonVPN as root is not supported...I know, and I don't work as root.
What I try to do is auto connect to proton vpn as soon as there is a connection to the internet established. I try to do this with systemd unit NetworkManager-dispatcher.service by placing a short bash script into the /etc/NetworkManager/dispatcher.d directory. This is described in
https://wiki.archlinux.org/title/NetworkManager#Network_services_with_NetworkManager_dispatcher
This script must have root as owner and is executed by root. But the command
protonvpn-clishould be executed by a none privileged user. It also produces an error message when executed as root.Why is this so complicated??
;_(
So I was correct then? Well it makes sense. When I enter as root user
sudo -u normaluser ls ~It does say
ls: cannot open directory '/root': Permission denied
Yes, whoami works and a lot other things, but sadly not everything. I just found runuser. This does seems to work exactly as I wanted/expected. As root you can do
runuser -l normaluser -c 'ls ~'for example and it really gives you /home/normaluser and not /root.
Sadly it does not work in my desired case for the command protonvpn-cli
;_(
It does not sadly. Exactly the same problem with the same error messages.
Well, I try to de-escalate privileges. I am ofc aware that sudo can elevate privileges but I thought sudo -u works differently. Do you then know a way to achieve running a command exactly like a normal user when I am root?
I have such a weird problem I try to solve for hours. Somehow I can not execute protonvpn-cli from the root account as a normal user using sudo. So
sudo -u username protonvpn-cli c
gets me the error message
Running ProtonVPN as root is not supported and is highly discouraged ...
What?? How does protonvpn-cli even "know" I was root?
Help please, I lose my mind ;)
Well as I wrote, connect to VPN-server from a laptop. So the laptop should reconnect to the VPN if it changes or reconnect to a wifi for example.
Yeah I looked at that wiki page, but there wasn't anything about auto starting after establishing network connection.
Good hint!
I was thinking about using openVPN. But Proton advices to use their tools. And I thought it is easier to setup and to maintain. You don't have to update any openVPN config files when proton changes anything.
Are you using protonVPN? Do you connect to it via openVPN?
Yes, I think this is exactly what I was looking for! This seems as simple as it should be. Thx!
Well ofc one can do this with systemd. I should have thought about it! Thx for this suggestion!
What's fuzzy time?
Who voted every day? Wtf are you doing?