hookio/hook.io — Issue #127: Add ability for hooks to drop privledges
Author: Marak
Created: 2011-11-15 00:08:41+00:00
State: open

Use Hook.config and code similar to this snippet ( pulled from kohai )

```
//
// If running as root and we've been provided a uid,
// switch to that user
//
if ((process.getuid() === 0) && self.uid) {
process.setuid(self.uid);
}
```