> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rhinestone.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Sudo

Sudo allows any transaction to pass. It's the default — a session with no `permissions` accepts everything.

```ts theme={null}
const session = toSession({
  chain: base,
  owners: {
    type: 'ecdsa',
    accounts: [sessionOwnerAccount],
  },
})
```

<Warning>Always restrict sessions to the minimum permissions you need. A sudo session has the same authority as the account owner.</Warning>
