help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to allow usual users use protonvpn binary and connect


From: Dr. Arne Babenhauserheide
Subject: Re: How to allow usual users use protonvpn binary and connect
Date: Wed, 24 Feb 2021 21:54:45 +0100
User-agent: mu4e 1.4.15; emacs 27.1

znavko--- via <help-guix@gnu.org> writes:

> I need to connect or disconnect protonvpn manually when I want.
> And type root password for that is too much.
> If usual user can run

with usual user you mean people allowed to invoke sudo?

> $ sudo protonvpn c
> with no ay password required, it will be fine!
>
> But I don't know how to type it in my config.
> just adding protonvpn in my existing perfectly working rule givesthe error:
>
> (define %sudoers-specification
>  (plain-file "sudoers" "root ALL=(ALL) ALL
> %wheel ALL=(ALL) ALL
> %wheel ALL=(root) NOPASSWD: /usr/scripts/*, /wpa, protonvpn"))

They must be in the wheel-group for this to work.

> Also if I define full path to protonvpn binary in /gnu/store that does not 
> work too.

This is something I use:

%wheel ALL=(ALL) NOPASSWD: /run/current-system/profile/bin/cpupower

It requires cpupower to be installed as package via /etc/config.scm

Best wishes,
Arne
-- 
Unpolitisch sein
hei├čt politisch sein
ohne es zu merken

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]