diff --git a/agents/meshinstall-linux.js b/agents/meshinstall-linux.js index a1b9fe7f..52308431 100644 --- a/agents/meshinstall-linux.js +++ b/agents/meshinstall-linux.js @@ -95,6 +95,10 @@ if (process.platform != 'darwin') process.exit(); } } +else +{ + if (!require('user-sessions').isRoot()) { console.log('\n' + "This utility requires elevated permissions. Please try again with sudo."); process.exit(); } +} if (!s) {