Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hoping for a little help getting vopono.service working... 😕 #196

Open
5p4r74cu5 opened this issue Dec 19, 2022 · 5 comments
Open

Hoping for a little help getting vopono.service working... 😕 #196

5p4r74cu5 opened this issue Dec 19, 2022 · 5 comments

Comments

@5p4r74cu5
Copy link

Hey everyone, I'm relatively new to linux 👩‍🚀 so please excuse my ignorance.

I'm trying to setup a root service and haven't been able to get it working. Vopono runs fine when I execute it directly in the terminal, and I can get the service running fine; it just doesn't seem to open qbittorrent as intended. Any suggestions would be appreciated :-)

[Unit]
Description=Vopono
After=network.target
Before=

[Service]
ExecStart=/usr/bin/vopono -v exec -k -f 9091 --protocol openvpn --provider protonvpn --server hong_kong-hk qbittorrent
ExecReload=
Type=simple
Restart=on-failure

[Install]
WantedBy=default.target
RequiredBy=network.target
@jamesmcm
Copy link
Owner

I think at the moment the only way to run it as your user with systemd, is to run it as a user service, and then enable passwordless sudo for the user.

But you might want to check the systemctl status of the service and journalctl for any error messages.

@5p4r74cu5
Copy link
Author

5p4r74cu5 commented Dec 21, 2022

Ah I see, hmmm... how risky, security wise, is it to have a user with passwordless sudo if I'm only using that user to run the vopono service.

@SocietasCooperationis
Copy link

It is possible for systemd services run as root to execute as a user by putting Environment=SUDO_USER=<user> under the "[Service]" section.

@5p4r74cu5
Copy link
Author

It is possible for systemd services run as root to execute as a user by putting Environment=SUDO_USER=<user> under the "[Service]" section.

Thanks for the suggestion, it's taken me a while to get around to trying it! I get this issue when trying it, and am not sure what to do about it.

Jul 03 13:43:33 P52 sudo[143262]: pam_unix(sudo:auth): conversation failed
Jul 03 13:43:33 P52 sudo[143262]: pam_unix(sudo:auth): auth could not identify password for <user>

Any suggestions? I did some googling but couldn't figure out what the right approach is.

@musjj
Copy link

musjj commented Mar 12, 2024

Having the same pam_unix error. Are there any solutions here? It's weird that it's still trying to authenticate the password even though it's a root service. What's going on here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants