Disable annoying message: "You are currently running MATLAB as root. Best practice is to run MATLAB only as root when elevated privileges are specifically required."
11 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Nils-Juan
il 5 Ott 2025
Commentato: Nils-Juan
il 6 Ott 2025
Hello MathWorks Community,
On Linux, MATLAB thinks it's running as root since it sees itself as being run by uid 0. Since it's running containerized, it's actually run by a different uid, making this a false alarm.
Being new to MATLAB, I couldn't find a way to turn this notifiation off. Since I will be using the product for quite a while, it would be annoying to have to close the notification after every startup.
If there is a way to suppress the message that I don't know about, please tell me how. Please refrain from giving me advice on how to set up my system differently. That is completely unnecessary and I'd rather close the messages every time than do that.
Thank you.
0 Commenti
Risposta accettata
Walter Roberson
il 5 Ott 2025
In the calling script inside the container, use the Linux command seteuid https://man7.org/linux/man-pages/man2/seteuid.2.html to set the effective uid to something non-zero; that should shut up the messages.
5 Commenti
Walter Roberson
il 6 Ott 2025
You will not be able to achieve the result you want using only steps that you are willing to take.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Startup and Shutdown in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!