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 Oct 14, 2020
1 parent 78259b6 commit 6284f0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/process.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 ]
Expand Down

0 comments on commit 6284f0d

Please sign in to comment.