CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   mpirun has detected an attempt to run as root???? (https://www.cfd-online.com/Forums/openfoam-solving/223746-mpirun-has-detected-attempt-run-root.html)

spalartallmaras January 24, 2020 05:23

mpirun has detected an attempt to run as root????
 
Hi,


my account in Red Hat Enterprise Linux 7 is absolutely non-root user, but I can not start mpirun and see the error message.



Code:

mpirun has detected an attempt to run as root.
Running at root is *strongly* discouraged as any mistake (e.g., in
defining TMPDIR) or bug can result in catastrophic damage to the OS
file system, leaving your system in an unusable state.

You can override this protection by adding the --allow-run-as-root
option to your cmd line. However, we reiterate our strong advice
against doing so - please do so at your own risk.


Does someone have an idea?

mlemosd November 17, 2020 16:13

Did you solve this problem?

vaishaliravishankar December 22, 2020 19:48

I would like to know if you have resolved this. Please let me know how :)

HosamAlrefaie November 3, 2021 04:10

Hi,

Did you solve the problem?

Gerhard March 14, 2023 09:52

You can try adding this to your .bashrc file:

Code:

export OMPI_ALLOW_RUN_AS_ROOT=1
export OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1



All times are GMT -4. The time now is 18:23.