Access Control
Configure multi-user access to your PC2 node.
Overview
By default, the first wallet to login becomes the Owner. The owner can add additional wallets, assign roles, remove access, and manage all settings.
Roles
| Role | Permissions |
|---|---|
| Owner | Full access, manage all wallets, system settings |
| Admin | Full data access, cannot manage other admins |
| Member | Own wallet scope only, limited settings |
Enabling Access Control
Access control is disabled by default. To enable:
From UI
- Go to Settings -> Security
- Find "Access Control" section
- Toggle "Enable Access Control"
- Click Save
From Config
Edit data/config/pc2.json:
{
"accessControl": {
"enabled": true,
"allowedWallets": []
}
}
Adding Wallets
Only the Owner can add new wallets.
- Go to Settings -> Security
- Find "Allowed Wallets" section
- Enter wallet address (0x...)
- Select role (Admin or Member)
- Click "Add Wallet"
Removing Wallets
- Go to Settings -> Security
- Find the wallet in the list
- Click the trash icon
- Confirm removal
That wallet can no longer access your node.
Use Cases
Family Cloud
- Enable access control
- Add family members as Members
- Each has isolated storage
- Share files via Public folder
Team Workspace
- Enable access control
- Add team leads as Admins
- Add team members as Members
- Admins can manage shared resources
Personal Only
Keep access control disabled for single-user mode (default).
Security Notes
- Wallet addresses are immutable
- Role changes take effect immediately
- Removed wallets lose access instantly
- Owner cannot be removed or demoted
warning
Be careful who you add as Admin -- they have full data access.