--- title: "Change Password for a User" slug: "change-password-for-a-user" updated: 2024-10-10T09:33:14Z published: 2024-10-10T09:33:14Z canonical: "help.scalefusion.com/change-password-for-a-user" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.scalefusion.com/llms.txt > Use this file to discover all available pages before exploring further. # Change Password for a User The following script helps IT Admins to change the password for a local user on Linux machines. 1. Copy and save the contents below to a **UTF-8** editor like **notepad++** OR **Sublime Text** in Windows or **gedit** in Ubuntu. 1. If you are using **notepad++** then use the bottom right panel to change the type to **Unix (LF)**. ![](https://cdn.document360.io/175c0eac-012f-4410-bdc5-ac60794f82d8/Images/Documentation/image-ILPQGB95.png) 2. Or click here to download the file. ```bash #!/bin/bash # User whose password need to be changed username="SET_USERNAME" # # New Password. # Please ensure this password complies with password policy that is # set on device password="NEW_PASSWORD" echo "$username:$password" | chpasswd echo "Password changed for user: $username" ``` 3. Replace the below Placeholders in the script before uploading it on the dashboard: 1. SET_USERNAME: Username for which the password has to be changed 2. NEW_PASSWORD: New password for the user 4. Follow [our guide](/docs/deploy-linux-shell-scripts-using-scalefusion#step-1-upload-and-deploy-the-script) to upload & publish the script using Scalefusion Dashboard. > [!CAUTION] > Notes: > > 1. Some of the scripts and their contents are sourced from internet and yes, our new friend ChatGPT. > 2. Please validate the scripts on a test machine before deploying them on all your managed devices. > 3. Scalefusion has tested these scripts, however Scalefusion will not be responsible for any loss of data or system malfunction that may arise due to the usage of these scripts.