# urbestack-protected-user-set

First published 4 Nov 2026 (release 0.2.24) · Unchanged since publication

UrbeStack release 0.2.35 command, run as root in the server shell.

## Usage

```
urbestack-protected-user-set --user CUSTOMER --path /web/example.com/public_html/private --name NAME [--password-stdin] [--rename NEW] [--enable|--disable] [--expires-at TIME|--no-end]
```

## Description

Changes the password, username, enabled status, or access end time of a user in a protected folder. Supply at least one change. Use --name for the current username and --rename for a new username that is unused in the folder. With --password-stdin, supply the new password on standard input. It must contain 8 to 128 printable ASCII characters.

Use at most one of --disable and --enable. Disabling suspends access and retains the username and password. An expired user also needs a new end time or --no-end to regain access.

Use --expires-at with a future UTC time in the format 2026-11-04T09:30:00Z. Apache uses its own clock to end access at that minute. Use --no-end to clear the end time. The two options are mutually exclusive.

UrbeStack regenerates the password file and the sites' virtual host configurations and reloads Apache.

## Same in the API

- [PATCH /protected-folders/{id}/users/{username}](https://urbestack.com/docs/api/patch-protected-folders-id-users-username.md): Update a user in a protected folder

## Command family: protected

- [urbestack-protected-folder-add](https://urbestack.com/docs/commands/urbestack-protected-folder-add.md): Protects a customer's folder with HTTP Basic authentication.
- [urbestack-protected-folder-del](https://urbestack.com/docs/commands/urbestack-protected-folder-del.md): Removes HTTP Basic authentication from a protected folder and deletes its folder users.
- [urbestack-protected-folder-set](https://urbestack.com/docs/commands/urbestack-protected-folder-set.md): Changes whether Apache lists a protected folder's files for signed-in visitors when there is no index page.
- [urbestack-protected-list](https://urbestack.com/docs/commands/urbestack-protected-list.md): Lists password-protected folders for a customer or reseller.
- [urbestack-protected-user-add](https://urbestack.com/docs/commands/urbestack-protected-user-add.md): Adds a user to a customer's password-protected folder.
- [urbestack-protected-user-del](https://urbestack.com/docs/commands/urbestack-protected-user-del.md): Removes the user named by --name from a protected folder and reloads Apache.
