Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup: address review comment
  • Loading branch information
PoojaDurgad committed Oct 22, 2020
commit d8945fbb8f0d2aad3f296c0eafc7baeb913249d1
3 changes: 1 addition & 2 deletions doc/api/process.md
Original file line number Diff line number Diff line change
Expand Up @@ -2210,11 +2210,10 @@ The `process.setgroups()` method sets the supplementary group IDs for the
Node.js process. This is a privileged operation that requires the Node.js
process to have `root` or the `CAP_SETGID` capability.

The `groups` array can contain numeric group IDs, group names or both.
The `groups` array can contain numeric group IDs, group names, or both.

```js
if (process.getgroups && process.setgroups) {
console.log(process.getgroups()); // current groups
try {
process.setgroups([501]);
console.log(process.getgroups()); // new groups
Expand Down