add MESHCENTRAL_USER to linux terminal enviroment variables for auditing purposes #7671

Signed-off-by: si458 <simonsmith5521@gmail.com>

si458 committed Mar 17, 2026 at 10:14 UTC 03a0f2912bff4e181356a1224657a41397779723
1 file changed +1
agents/meshcore.js
+1
@@ -2716,6 +2716,7 @@ function terminal_promise_consent_resolved()
2716 var env = { HISTCONTROL: 'ignoreboth' };
2717 if (process.env['LANG']) { env['LANG'] = process.env['LANG']; }
2718 if (process.env['PATH']) { env['PATH'] = process.env['PATH']; }
2719 + env['MESHCENTRAL_USER'] = (this.httprequest.userid ? this.httprequest.userid.split('/')[2] : (this.httprequest.guestuserid ? 'deviceshare:' + this.httprequest.guestuserid.split('/')[2] : 'unknown'));
2720 if (this.httprequest.xoptions)
2721 {
2722 if (this.httprequest.xoptions.rows) { env.LINES = ('' + this.httprequest.xoptions.rows); }