in reply to Re: Obtaining userid from script called by sudo and other scripts
in thread Obtaining userid from script called by sudo and other scripts

the SUDO_USER variable solved the problem: Thank you
  • Comment on Re^2: Obtaining userid from script called by sudo and other scripts