From 42a587f9ba117969b9346fb02227ece50cafbd05 Mon Sep 17 00:00:00 2001 From: "Pooja D.P" Date: Mon, 12 Oct 2020 14:24:25 +0400 Subject: [PATCH] doc: use test username instead of real PR-URL: https://github.com/nodejs/node/pull/35611 Reviewed-By: Anna Henningsen Reviewed-By: Rich Trott Reviewed-By: Harshitha K P --- doc/api/process.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/process.md b/doc/api/process.md index c644598dc35e64..00d8de8c93d3a0 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -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 ]