Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security, Veeam & DevOps

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form

How to reset MSSQL Server SA Password on Ubuntu

Posted on 23/06/202005/09/2026 Christian By Christian 2 Comments on How to reset MSSQL Server SA Password on Ubuntu
  1. Home
  2. Oracle/MSSQL/MySQL
  3. 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.

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

  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Bluesky (Opens in new window) Bluesky
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

  • oracle q4 earnings are in e28094 but what does it really mean 700x425 1
    How to uninstall Oracle Database 11G or 12c Oracle/MSSQL/MySQL
  • sql server installation
    How to Install all Editions of Microsoft SQL Server 2025 Oracle/MSSQL/MySQL
  • Drop or delete a MySQL user from phpmyAdmin
    How to delete a MySQL User Account Oracle/MSSQL/MySQL
  • installer file too long fix
    Fix long path names to files on SQL Server installation media error Oracle/MSSQL/MySQL
  • Install SQL Server Management Studio 21 on Windows Server
    Install SQL Server Management Studio 21 on Windows Server Oracle/MSSQL/MySQL
  • postgresql on windows
    Install PostgreSQL on Windows server as Veeam Database Engine Oracle/MSSQL/MySQL

More Related Articles

oracle q4 earnings are in e28094 but what does it really mean 700x425 1 How to uninstall Oracle Database 11G or 12c Oracle/MSSQL/MySQL
installer file too long fix Fix long path names to files on SQL Server installation media error Oracle/MSSQL/MySQL
Configure SQL Server to listen on a specific TCP port Configure SQL Server Instance to listen on a specific TCP Port Oracle/MSSQL/MySQL
Change default postgreSQL database password How to change the default user password in PostgreSQL Oracle/MSSQL/MySQL
Fix Network related MSSQL instance error Fix a network-related or instance-specific error occurred while establishing a connection to SQL Server [Part 2] Oracle/MSSQL/MySQL
Database Collation Change SQL Database Collation: ePO events DB and SQL server should match with ePO core collation Oracle/MSSQL/MySQL

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

vexpert-badge-stars-5

Virtual Background

VEEAMLEGEND

Categories

Top 30 Sysadmin blog

veeaam100

Veeam Vanguard

  • how to bypass windows admin log in password 2
    How to disable Lock Screen on Windows 10 via Registry Editor Windows
  • Enable a Pre Boot BitLocker PIN on Windows
    How to Enable a Pre-Boot BitLocker PIN on Windows Security | Vulnerability Scans and Assessment
  • creating the perfect grafana dashboard main
    How to install Grafana on Ubuntu Linux Network | Monitoring
  • SA
    How to Create Service Accounts, Organisation Units and Active Directory Security Groups Windows Server
  • Watchguard Firewall 180504 100511
    WatchGuard Log and Report Server Installation in a VM Network | Monitoring
  • Capture 2
    MDT Invalid credentials: The network was not found Windows
  • sshfs
    Mounting remote directory using sshfs Linux
  • SUID GUID Sticky Bit 1
    Set Special File Permissions with SUID or GUID and Sticky Bit Linux

Subscribe to Blog via Email

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

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

Tags

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

Copyright © 2026 TechDirectArchive

Loading Comments...

You must be logged in to post a comment.