Re: How to determine user name from within C++ on linux



consultmac2 wrote:

How does one capture the logged-on user name from within c++ so we
can do that?

man whoami

man geteuid + man getpwuid
.