Thursday, December 3, 2026 | London 10°C · Drizzle
DailyGlimpse

AI

How to Change a User's Password in Linux: A Step-by-Step Guide

Dreamset Services 1 min read

To change a user's password in Linux, you can use the passwd command. First, open a terminal and log in as root or use sudo. Then, type passwd username (replace username with the actual user). You will be prompted to enter the new password twice. For security, the password will not be displayed as you type. Once confirmed, the system updates the password immediately. This method works for both local and network accounts. Always ensure strong passwords to maintain system security.

React