Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form
Home » Oracle/MSSQL/MySQL » How to reset MSSQL Server SA Password on Ubuntu
  • windows10
    How to Install and configure Active Directory Certificate Services Windows Server
  • ADUC Appcrash fix
    Faulting Application Name: mmc.exe: Unable to launch ADUC Windows Server
  • AADSTS50020  User from Identity Provider does not exist in Tenant
    AADSTS50020: User from Identity Provider does not exist in Tenant AWS/Azure/OpenShift
  • How to Disable TLS 1.0, TLS 1.1 and TLS 1   banner
    How to Disable TLS 1.0, TLS 1.1 and TLS 1.2 in Windows Using GPO Security | Vulnerability Scans and Assessment
  • Exchange Admin Centre   EMC
    How to grant Access to User Mailbox Network | Monitoring
  • screenshot 2020 04 22 at 23.28.23
    Remove saved RDP connections in Windows Windows
  • Protecting DS923 NAS
    DSM Security: How to Protect Synology DS923+ NAS Reviews
  • How to Install RSAT on Windows 11
    How to Install and Uninstall RSAT on Windows 11 Windows

How to reset MSSQL Server SA Password on Ubuntu

Posted on 23/06/202014/03/2024 Christian By Christian 2 Comments on How to reset MSSQL Server SA Password on Ubuntu
reset MSSQL Server SA Password on Ubuntu

When installing a new instance of MSSQL Server in a mixed-mode authentication, you are required to set the password for the SA (System Administrator) account. The SA account is used only for the management of SQL Server. See this guide on how to download and install Microsoft SQL Server 2019 Express edition and Microsoft SQL Server Management Studio on Windows 10 and Windows Server. How to install Microsoft SQL Server 2019 and MsSQL Command line tools on Ubuntu Linux.

You may also want to download the SQL Server 2019 Developer version (Microsoft SQL Server 2019 and Microsoft SQL Server Management Studio which is a full-featured free edition, licensed for use as a development and test database in a non-production environment.

Steps to reset MSSQL Server SA Password on Ubuntu via the command-line tool

Step 1: Connect to the MSSQL Server using the command-line tool with the command below using the existing password.

This is essential as it ensures that the previous password is functional. Please skip this step if you don’t know the password.

sqlcmd -S <SQLInstanceName>-U <UserName> -P <Password>

Please see WDS server unable to start with Error Information 0xFFFFFDF0, and how to Create local Backup Repository and Add HyperV to VBR Inventory.

Step 2: To change the “SA” password changed, please perform the following steps

First-stop SQL Server service on the Ubuntu Linux

sudo systemctl stop mssql-server

- To ensure the the mssql-server is really stopped, run the command below


sudo systemctl status mssql-server
stop mssql server

Step 3: Reset the “SA” password with a new password

/opt/mssql/bin/mssql-conf set-sa-password
Reset the SA password

Step 4 : Start and verify the status of SQL Server Service is running again.

sudo systemctl start mssql-server
sudo systemctl status mssql-server
verify that mssql server is running again

Note: If you can access the Ubuntu Linux “MSSQL server” using SQL Server Management Studio (SSMS). You can easily change the change SA password using the GUI.

- Connect to the database instance using Windows User Authentication.
- Expand the instance.
- Expand Security.
- Expand Logins.
- Right click SA.
- Select Properties.
- Delete the old password and enter the new one.
- Delete the old confirm password and enter the new one.
- Click OK.
- Disconnect from the database instance.

Reconnect to the database instance using the SQL Server Authentication using the user name SA, and the new password.

I hope you found this blog post on How to reset MSSQL Server SA Password on Ubuntu helpful. If you have any questions, please let me know in the comment session.

Rate this post

Thank you for reading this post. Kindly share it with others.

  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Telegram (Opens in new window) Telegram
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Mastodon (Opens in new window) Mastodon
  • Click to share on Bluesky (Opens in new window) Bluesky
  • Click to share on Threads (Opens in new window) Threads
  • Click to share on Nextdoor (Opens in new window) Nextdoor
Oracle/MSSQL/MySQL Tags:MsSQL, MsSQL Editions, Ubuntu, Ubuntu 20.04 LTS

Post navigation

Previous Post: Install Microsoft SQL Server 2019 and MSSQL Command line tools on Ubuntu Linux
Next Post: How to uninstall Microsoft SQL Server on Windows

Related Posts

  • Encryption
    How to encrypt Microsoft SQL Server Traffic Oracle/MSSQL/MySQL
  • Screenshot 2020 06 23 at 10.52.52
    How to uninstall Microsoft SQL Server on Windows Oracle/MSSQL/MySQL
  • Disable Microsoft SQL Auto Close Option
    Disable SQL Auto Close: Auto Close is enabled for both ePO and ePO Events Databases Oracle/MSSQL/MySQL
  • Install SQL Server Management Studio 21 on Windows Server
    Install SQL Server Management Studio 21 on Windows Server Oracle/MSSQL/MySQL
  • FEATURE ZABBIX
    How to Install Zabbix Monitoring Tool on a Linux System Linux
  • How to visualize MBAM Recovery Audit Report with Python
    Visualize MBAM Recovery Audit Report with Python Automation

More Related Articles

Encryption How to encrypt Microsoft SQL Server Traffic Oracle/MSSQL/MySQL
Screenshot 2020 06 23 at 10.52.52 How to uninstall Microsoft SQL Server on Windows Oracle/MSSQL/MySQL
Disable Microsoft SQL Auto Close Option Disable SQL Auto Close: Auto Close is enabled for both ePO and ePO Events Databases Oracle/MSSQL/MySQL
Install SQL Server Management Studio 21 on Windows Server Install SQL Server Management Studio 21 on Windows Server Oracle/MSSQL/MySQL
FEATURE ZABBIX How to Install Zabbix Monitoring Tool on a Linux System Linux
How to visualize MBAM Recovery Audit Report with Python Visualize MBAM Recovery Audit Report with Python Automation

Comments (2) on “How to reset MSSQL Server SA Password on Ubuntu”

  1. Avatar photo Azadeh says:
    20/09/2022 at 7:44 PM

    Thanks!

    Log in to Reply
    1. chris Christian says:
      29/09/2022 at 5:34 PM

      You are welcome

      Log in to Reply

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

sysadmin top30a

  • windows10
    How to Install and configure Active Directory Certificate Services Windows Server
  • ADUC Appcrash fix
    Faulting Application Name: mmc.exe: Unable to launch ADUC Windows Server
  • AADSTS50020  User from Identity Provider does not exist in Tenant
    AADSTS50020: User from Identity Provider does not exist in Tenant AWS/Azure/OpenShift
  • How to Disable TLS 1.0, TLS 1.1 and TLS 1   banner
    How to Disable TLS 1.0, TLS 1.1 and TLS 1.2 in Windows Using GPO Security | Vulnerability Scans and Assessment
  • Exchange Admin Centre   EMC
    How to grant Access to User Mailbox Network | Monitoring
  • screenshot 2020 04 22 at 23.28.23
    Remove saved RDP connections in Windows Windows
  • Protecting DS923 NAS
    DSM Security: How to Protect Synology DS923+ NAS Reviews
  • How to Install RSAT on Windows 11
    How to Install and Uninstall RSAT on Windows 11 Windows

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,839 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.