CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

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

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 24, 2020, 05:23
Default mpirun has detected an attempt to run as root????
  #1
Member
 
niewiemnic
Join Date: Jan 2018
Location: Niemcy
Posts: 80
Rep Power: 8
spalartallmaras is on a distinguished road
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?
spalartallmaras is offline   Reply With Quote

Old   November 17, 2020, 16:13
Default
  #2
New Member
 
Marlon Lemos
Join Date: Dec 2019
Posts: 1
Rep Power: 0
mlemosd is on a distinguished road
Did you solve this problem?
mlemosd is offline   Reply With Quote

Old   December 22, 2020, 19:48
Default
  #3
New Member
 
Vaishali Ravishankar
Join Date: Sep 2020
Posts: 2
Rep Power: 0
vaishaliravishankar is on a distinguished road
I would like to know if you have resolved this. Please let me know how
vaishaliravishankar is offline   Reply With Quote

Old   November 3, 2021, 04:10
Default
  #4
New Member
 
Hosam Alrefaie
Join Date: Jul 2021
Posts: 24
Rep Power: 4
HosamAlrefaie is on a distinguished road
Hi,

Did you solve the problem?
HosamAlrefaie is offline   Reply With Quote

Old   March 14, 2023, 09:52
Default
  #5
New Member
 
Gerhard
Join Date: Mar 2017
Posts: 26
Rep Power: 9
Gerhard is on a distinguished road
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
Gerhard is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[ANSYS Meshing] Help with element size sandri_92 ANSYS Meshing & Geometry 14 November 14, 2018 07:54
fluent divergence for no reason sufjanst FLUENT 2 March 23, 2016 16:08
missing vtf3.h BPatch.h papi.h linch OpenFOAM Installation 41 July 24, 2012 14:45
Working directory via command line Luiz CFX 4 March 6, 2011 20:02
MPI PROBLEMS gtg627e OpenFOAM Running, Solving & CFD 20 October 5, 2007 04:02


All times are GMT -4. The time now is 19:48.