# Setting: `server_lifecycle_hooks_container_shell_enabled`

- **Constant:** `ConfigInterface::SERVER_LIFECYCLE_HOOKS_CONTAINER_SHELL_ENABLED`
- **Category:** `servers`
- **Type:** `select`
- **Required:** yes
- **Sensitive:** no
- **Validation:** `required|string|max:255`
- **Placeholder / default hint:** `false`

## Description

Allow Container Shell lifecycle hook steps and Container Shell schedule tasks (docker exec /bin/sh -c inside the server container). This is a security-sensitive capability: users with schedule.update (and control.console for schedule tasks) can run arbitrary shell commands in running containers when hooks fire or schedules run. Default off. Lifecycle hook steps additionally require Lifecycle Hooks Enabled; schedule tasks additionally require Schedules to be allowed. Existing Container Shell steps and tasks will not execute while this is disabled.

## Allowed options

- `true`
- `false`

## Change via CLI

```bash
featherpanel saas getsetting server_lifecycle_hooks_container_shell_enabled
featherpanel saas setsetting server_lifecycle_hooks_container_shell_enabled "<value>"
```

## Change via API

```http
PATCH /api/admin/settings
Content-Type: application/json

{ "server_lifecycle_hooks_container_shell_enabled": "<value>" }
```
