The following trivial program returns "root" when run under SLURM, even 
though neither SlurmUser nor the current user is root. (Predictably, 
this is in user code that we can't change.) Is there a configuration 
setting that we could be using to avoid letting getlogin() think we are 
root?

The program:

-----------
#include <stdio.h>
#include <unistd.h>

int
main()
{
         printf("getlogin() returns \"%s\"\n", getlogin());
         return 0;
}
----------

Andy

-- 
Andy Riebs
Hewlett-Packard Company
High Performance Computing
+1-786-263-9743
My opinions are not necessarily those of HP

Reply via email to