Re: logs entries not as openvpn user
Gert Doering <[email protected]> Tue, 9 Sep 2025 07:32:36 +0200
| Newsgroups | gmane.network.openvpn.user |
|---|---|
| Message-ID | <[email protected]> |
Hi,
On Mon, Sep 08, 2025 at 05:28:38PM -0400, Dan Langille wrote:
> >> Sep 8 18:32:02 gw01 foo[38754]: pro06.int.example.org connected with IP 10.0.0.10
[..]
> That's the script which produces the foo entry. I see no reason for it to run as foo.
According to "man logger", this is what is running under...
-t tag Mark every line in the log with the specified tag rather than the
default of current login name. Use -t tag[N] to insert specific
decimal process id instead of id of logger.
... but it could be a double uid in /etc/passwd - so if you have set
openvpn trun as "user bar", and foo+bar share the same uid, the reverse
mapping done by logger ("what user am I running under?") might end up
showing "foo".
I'd add a call
logger "my id: `id -a`"
to see what it has to say...
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----- iQGcBAEBAgAGBQJov7v0AAoJEB2Cnv7KVigSlTcL/AvcgSDI2EjFpvcnCSRqBOmr Ai+JrElQkp0/0s+i38v2Tak6VYFgGwRufgH6xSGvp5gzFQt3GM0pkU3N+mKJFExq DesXajW2vC+IK/HxDV63ZrvT76BQ+efp3PFE8VQuoeRBh4BICmDfyM6F7/Twa2B4 Z25oKFZNtMHr5NTp4Z4N9JpyIrtYjEa36/23OHfalaYfOAfMmLkPCG1OLRdxuCpm D3kIDg6wIZgFE+JYMrc3WUrvEDBsdmWI6plTlVuKtulLET6xUa8KIT2oT0L0EPxY 1PS5tB9N+bmc3095U3pUFIj1opXxaQ7R6ovDmt6SzW//0K401Uu7B9XdAbIkLDfA Gn09x4CdhBE9Upqet9eIthfRttgaTn5io1Fvs0W++5ueQtKhM78cuqpWO2vv7F1r dAznOgvjyOePz22qLh7i3VJMTutHIkTG6pEqfRQPYOl4pICYGv79iGVanwrST5wC h33zrLe1n2qipwsvbA6rGgNf7XTGLjW6Izj14yBk6g== =/P+D -----END PGP SIGNATURE-----