Re: SQL Server Remote Management - Command Line Question
From: Sue Hoegemeier (Sue_H_at_nomail.please)
Date: 06/20/04
- Previous message: John Bell: "Re: SQL Server Remote Management - Command Line Question"
- In reply to: JDB: "SQL Server Remote Management - Command Line Question"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 20 Jun 2004 17:40:18 -0600
If you are a local admin on the Win2K box that is running
SQL Server and the BUILTIN\Administrators group has not been
modified or removed, then yes you would be able to use osql
or isql to add, delete, change logins, users in SQL Server.
This is because the BUILTIN\Administrators group is by
default a member of the sysadmin server role. Local admins
would all be members of the BUILTIN\Administrators group.
Of course a windows account could also be granted the same
rights explicitly rather than just inheriting these
permissions via group membership.
If you disable or delete the users Windows account when the
user leaves then it's not an issue. Many places first
disable the account and then delete the account after xx
days.
-Sue
On Sun, 20 Jun 2004 15:38:09 -0500, "JDB" <jbell@vitria.com>
wrote:
>As a Sys Admin, I was wondering - if I have admin rights to a Win2k machine
>that is hosting SQL Server 2000, do I have the ability using any
>command-line tools such as OSQL or ISQL to add, delete, or change accounts
>registered in SQL Server for the various databases if I don't have access to
>a specific account within SQL Server?
>
>I ask, because the question that came up was - what if we have a DBA leave
>under less than amicable circumstances? Could I, someone who has admin
>rights on the machine, be able to log into that machine remotely and somehow
>via command line (I don't maintain active SQL clients centrally), change the
>SA password, remove an account, and/or add an account with sysadmin rights,
>etc?
>
>Thanks in advance for any help -
>
>
- Previous message: John Bell: "Re: SQL Server Remote Management - Command Line Question"
- In reply to: JDB: "SQL Server Remote Management - Command Line Question"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|