diff --git a/doc/api/process.md b/doc/api/process.md index 841b93540a246d..1f35dff6fb918b 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -1455,7 +1455,7 @@ Use care when dropping privileges: ```js console.log(process.getgroups()); // [ 0 ] -process.initgroups('bnoordhuis', 1000); // switch user +process.initgroups('nodeuser', 1000); // switch user console.log(process.getgroups()); // [ 27, 30, 46, 1000, 0 ] process.setgid(1000); // drop root gid console.log(process.getgroups()); // [ 27, 30, 46, 1000 ]