chpass Verified for current stable LTS

Chpass Command: Update Local Password File

Use for update local password file with Chpass. Exact CLI syntax to update local password file using Chpass.

When to use this: Use for update local password file with Chpass.

Command Syntax

su -c 'chpass -l -s <path/to/shell>' <username>

Live Command Builder

Final Command

su -c 'chpass -l -s <path/to/shell>' <username>

Command Breakdown

-c
Command Option
Tool-specific option used by this command invocation.

FAQ

Purpose: Exact syntax to update local password file using Chpass.

Test path: Replace placeholders and run destructive commands in a disposable workspace first.

Flag behavior: Tool version, platform, and shell can change behavior.

Improve This Command

Suggest a correction, safer default, or version-specific note for this entry.

Related Operations

Back to Chpass directory