Re: Permission Error with systemd
Gert Doering <[email protected]> Thu, 15 May 2025 13:27:59 +0200
| Newsgroups | gmane.network.openvpn.user |
|---|---|
| Message-ID | <[email protected]> |
Hi,
On Thu, May 15, 2025 at 12:04:46PM +0200, Stefanie Leisestreichler (Febas) wrote:
> What I do not understand is: As far as I know, openvpn is started with root
> rights to build the context for a running instance. If that is true, why
> can't the key been read during that phase and has to be made available for
> user openvpn (at least with arch)? Or is my assumption/understanding wrong?
If you run openvpn 2.x as "openvpn --user nobody", it will start as root,
gather what it needs, and then suids to "nobody".
This seems to be about 3.x, which works differently :-) - and SystemD,
which does everything differently again, so in this case the unit files
will do the user change, and openvpn is started with non-root permissions
-> no access to anything root-owned.
Arguably the second one is the more secure way to do things, as there is
no "still running as root" phase - but it brings much more complications
of course ("how can it then manipulate ifconfig/route/dns?").
gert
--
"If was one thing all people took for granted, was conviction that if you
feed honest figures into a computer, honest figures come out. Never doubted
it myself till I met a computer with a sense of humor."
Robert A. Heinlein, The Moon is a Harsh Mistress
Gert Doering - Munich, Germany [email protected]
_______________________________________________
Openvpn-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-users
signature.asc
(application/pgp-signature, 630 B)
-----BEGIN PGP SIGNATURE----- iQGcBAEBAgAGBQJoJc+/AAoJEB2Cnv7KVigSdFIMAJgmDu+PriCU/1Zl5lu7ea0y /qXcR/g+p5TXRl7PQUDOzi3oyPPbXTY+f6BYBBemFMZeEv2lJpr4O4ETuLbRo2Rs U/yWs+LmB9Am1EttumdXsnIF8c6xprYJawgpYsEatM1VsvDZa2TniN/PbLPtQsgq liBHeeglKyujVQgYXwCuQwhMpxyJ1lfxK6ShMMsUGnmJL3WjfmmdXmujclUBMhkg bpFkBxBensbTMWZCIw8aqybFgM7Op0WCp3L96rWmCgqVUEM2GzZY/vDtuxjap9in Hes6SdT9rc+uEroNbugw44hs0KrLcDkYLG+D0/oJqqxM6DA2RGbjM6nRsj9Wc6iR LSKXDVdu4ruvAxwcUPbqezmlHB3pk6wKy+skji0LuNDZe8YApUGrwc/acxI+2eXT xbD/aMrZ2wItQq7lyZu7kH/7kWWKV0sCSWEk2HL4wEg2f05IJ484nXmaRciOaK9V w9Rxam/NqtKYqtQZVeXrx05iDOYavmK1gKzP9NYXJQ== =2L6h -----END PGP SIGNATURE-----