process.geteuid()

process.geteuid()

Note: this function is only available on POSIX platforms (i.e. not Windows, Android)

Gets the effective user identity of the process. (See geteuid(2).) This is the numerical userid, not the username.

1
2
3
if (process.geteuid) {
  console.log(`Current uid: ${process.geteuid()}`);
}
doc_Nodejs
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.