sql server - Should NT AUTHORITY\System be granted the sysadmin role? -


i cannot seem find definitive answer question.

the problem: using octopus deploy run executable run database migration scripts. error occurs octopus "tentacle" windows service runs localsystem translates nt authority\system.

one solution change sql server security settings , grant appropriate role nt authority\system user allows process running localsystem user create database.

what security implications of making change? allow process running localsystem perform operations on database bad thing given control gets installed onto server?

it appear there change made circa sql server 2012 localsystem account default sysadmin got changed. 1 thing saw change prevents server administrators having access server can't see how possible given cannot log in localsystem anyway.

what missing?

references:

https://support.microsoft.com/en-us/help/932881/how-to-make-unwanted-access-to-sql-server-2005-by-an-operating-system

https://dba.stackexchange.com/questions/142166/grant-sysadmin-permissions-to-nt-authority-system

https://serverfault.com/questions/130958/implications-and-benefits-of-removing-nt-authority-system-from-sysadmin-role

i answer one:

one thing saw change prevents server administrators having access server can't see how possible given cannot log in localsystem anyway.

local windows administrator can access server anyway, launching sql server in single user mode have full control on it: connect sql server when system administrators locked out

but requires server restarted.

another option access server sysadmin without restart use psexec (-s) : can log in localsystem through ssms. , if login sysadmin, have full control on server


Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

angular - Copying node modules to wwwroot AspNetCore -