cmd command "runas" equivalent in MacOS

Viewed 1714

i am facing an issue while using the mac. I need to use that PowerShell command on my mac to run application as domain user

runas /netonly /user:user_name "C:\Users\fwa\AppData\Local\Programs\Azure Data Studio\azuredatastudio.exe"

I have tried

sudo -u user_name /Applications/AzureDataStudio.app

it asks password for local user. but in my case user is on External domain

1 Answers

To run Azure Data Studio (ADS) on your mac and login to SQL Server using Windows authentication instead of a username/password, you use the kinit command. I've had best luck using the kinit command through the built-in command window in ADS (you'll be prompted to do so if/when your login fails). Note that your computer needs network access to a kerberos server.

There's some further information about setting this up HERE and HERE.

Related