Host authentication and metauser
Old project but really interesting, but not sure if still checked. We have a host authentication grid system, so the usage of the modified script is not working. Do you think some other way could be viable? Not sure if adding a data step wrting the file with sysjobid and metauser macros in the autoexec_usermods.sas could have some bad impact on server startup performnce...
Let me have a look, I've got a better idea. Also no idea why I didn't see this - I think I need to watch fewer projects
Looking forward to your idea, since mine isn't too much helpful, since the metauser is the os level user, and not the sas user... 😶
This can be done by inspecting the pid's /proc/[pid]/environ, doing something like this:
metauser=$(strings /proc/${thisPid}/environ | grep -oP "METAUSER=\K([^@]+)")
...and then if that returns empty, the pid's OS owner can be queried. Obviously only works on the local machine's pids, but requires zero changes to your config.
I'll probably put this in the next week or two when I find some time. There's a couple of other improvements that could be made.