Re: logs entries not as openvpn user

Gert Doering <[email protected]> Tue, 9 Sep 2025 19:28:48 +0200
Newsgroups gmane.network.openvpn.user
Message-ID <[email protected]>
Hi,

On Tue, Sep 09, 2025 at 01:23:23PM -0400, Dan Langille wrote:
> > Interesting.  So does "grep foo /etc/passwd" turn up anything?
> 
> Yes, it finds the expected user (which is not actually foo).
> 
> [17:22 gw01 dvl ~] % grep foo /etc/passwd           
> foo:*:1002:1002:User &:/usr/home/foo:/bin/sh
> 
> [17:22 gw01 dvl ~] % grep foo /etc/group            
> wheel:*:0:root,dvl,foo
> foo:*:1002:

ok... so anything that ended up in the environment which might prompt
"logger" to use that?

Logger source says

        if (tag == NULL)
                tag = getlogin();

and that is documented as

     The getlogin() routine returns the login name of the user associated with
     the current session, as previously set by setlogin().  The name is
     normally associated with a login shell at the time a session is created,
     and is inherited by all processes descended from the login shell.  (This
     is true even if some of those processes assume another user ID, for
     example when su(1) is used).

so I guess it might be the user that started "sudo openvpn".

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-----

iQGcBAEBAgAGBQJowGPQAAoJEB2Cnv7KVigSm7EMAJlFyEv0es0kZDWua9J5XRAu
ZtgD9dHHJRGMdEasb6pe0gvBLOw9lg9TLvXO6g/DFRsHm37T+F0xNeV0UFOwjX46
FlMmKMTZV/OKMt2n13Mk80d7yAKvOfFr1yxnubsbFgdQ7YtExqlUAEUIk5ZuOp/h
qWxDdkOtRpl5f+8sSgVX3v1HMS0mtrIlG+iHEeQuYQnjlYQNSdnZOo4ZtLFEWt1U
Xduw8/vwSu8NIEmqVhy8hxyXBRDmomMJw+2vjOiu4eQ8YRIHpUaSQb/rf+1Vn4cA
cic9y88RT7IFwOmYk1BdM7SnixqvJ87s5r1jBI7DWZ2x1iG2STY3w1x+/+z9Ty7B
kwahoV3AjSWvON3lJNO79zqodI2shHVh9BxLnliqclvpA5Wp7CkSxLNjY7TwFJgj
X2Dsa2ezp923/8rzxRzmSrQaZH9MvZ3xzL5ARbVnTNhbL4EeQ89oks3vInlIJp3S
cjg9zbPzLLOqEaZyh+FiDnznoZuAvBt8L9tMGBqn0Q==
=VHlX
-----END PGP SIGNATURE-----