Skip to content

Commit

Permalink
doc: use test username instead of real
Browse files Browse the repository at this point in the history
PR-URL: #35611
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Harshitha K P <harshitha014@gmail.com>
  • Loading branch information
PoojaDurgad authored and MylesBorins committed Nov 16, 2020
1 parent bfff4fc commit 42a587f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/process.md
Expand Up @@ -1422,7 +1422,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 ]
Expand Down

0 comments on commit 42a587f

Please sign in to comment.