I'm writing a script to interface 2 third-party programs.  (Datadog and AWS)The data mining script uses sudo -u to run my script.The script that I need to retrieve data from will segfault if initial login is not simulated.The data mining script does not have permission to sudo.I can reproduce the error like this:[me] ~$ sudo -u dd-agent aws[me] ~$ echo $?139Of course, if I do a sudo -iu and run the command, it works just fine. Is it possible to simulate initial login without going through sudo?
Simulate Initial Login of user without using sudo
linux;bash;rhel