Skip to content

Commit

Permalink
set gid/uid
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Aug 6, 2010
1 parent 647ecb6 commit 044b536
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions chapters/globals.md
Expand Up @@ -74,10 +74,18 @@ Returns the current working directory, for example:

Returns the numerical user id of the running process.

### process.setuid()

Sets the effective user id for the running process. This method accepts both a numerical id, as well as a string. For example both `process.setuid(501)`, and `process.setuid('tj')` are valid.

### process.getgid()

Returns the numerical group id of the running process.

### process.setgid()

Similar to `process.setuid()` however operates on the group, also accepting a numerical value or string representation. For example `process.setgid(20)` or `process.setgid('www')`.

### process.env

An object containing the user's environment variables, for example:
Expand Down

0 comments on commit 044b536

Please sign in to comment.