Sudo log

Hello,

Is it possible to configure the sudo log to register the logname instead of
the username?
I mean, if user A logs and su (switch user) to user B and then uses SUDO
to execute commands, the log will register actions of user B. What I need
is to register these actions as being executed by user A.

Is it possible?

Thanks in advance,

C.

I would disable users who are not in wheel from using su and this would atleast force a user to sudo with their username.

Depending on your distro you need to look into something along the lines of pam.d/su and changing it to only accept wheel membership to allow su access.