property Process.seteuid
Usage in Deno
```typescript import { type Process } from "node:node__process.d.ts"; ```The `process.seteuid()` method sets the effective user identity of the process.
(See [`seteuid(2)`](http://man7.org/linux/man-pages/man2/seteuid.2.html).) The `id` can be passed as either a numeric ID or a username
string. If a username is specified, the method blocks while resolving the
associated numeric ID.
```js
import process from 'node:process';
if (process.geteuid && process.seteuid) {
console.log(`Current uid: ${process.geteuid()}`);
try {
process.seteuid(501);
console.log(`New uid: ${process.geteuid()}`);
} catch (err) {
console.log(`Failed to set uid: ${err}`);
}
}
```
This function is only available on POSIX platforms (i.e. not Windows or
Android).
This feature is not available in `Worker` threads.
(id: number | string) => void