SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Modifying access to local Administrator account


Modifying access to local Administrator account

Author
Message
naramsg
naramsg
SSC-Enthusiastic
SSC-Enthusiastic (108 reputation)SSC-Enthusiastic (108 reputation)SSC-Enthusiastic (108 reputation)SSC-Enthusiastic (108 reputation)SSC-Enthusiastic (108 reputation)SSC-Enthusiastic (108 reputation)SSC-Enthusiastic (108 reputation)SSC-Enthusiastic (108 reputation)

Group: General Forum Members
Points: 108 Visits: 201
Hi,

Sorry I'm posting this topic under SQL Server 2008 - General, but I couldn't find a SQL Server 2008 - Security forum section.

When installing SQL Server 2008 on one of our servers, there is an option of giving SQL Server administrative privileges to any Windows user. I provided the local administrator account under this section, as a result of which I'm able to access and make DDL modifications on all databases.

Since I now have to share the local administrator password with another person, and I would therefore like to restrict the local administrator's access to db_datareader.

I tried doing this under Databases > Security > Users, but even after modifying access to the user, I'm still able to create/delete tables.

I also tried doing this under Server Security > Logins, but I couldn't find the user here. I also looked for any of the user groups, but the Administrator account is not present in any of the user groups.

I also modified access on the global level (right-clicking on the server name > Properties and Security), but I'm still able to create/delete tables.

Any idea what I must do to restrict access to the local administrator? Kindly revert.

Thanks!
Guru
Nicholas Cain
Nicholas Cain
SSCarpal Tunnel
SSCarpal Tunnel (4K reputation)SSCarpal Tunnel (4K reputation)SSCarpal Tunnel (4K reputation)SSCarpal Tunnel (4K reputation)SSCarpal Tunnel (4K reputation)SSCarpal Tunnel (4K reputation)SSCarpal Tunnel (4K reputation)SSCarpal Tunnel (4K reputation)

Group: General Forum Members
Points: 4002 Visits: 6200
I would ensure that the "BUILTIN\Administrators" group is removed from the sysadmin server role.

Of course, prior to doing that make sure that you have another group, or account with sysadmin privilege that you can use to access with sysadmin rights.



Shamless self promotion - read my blog http://sirsql.net
Jerry Hung
Jerry Hung
SSCommitted
SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)

Group: General Forum Members
Points: 1848 Visits: 1208
Make sure you won't lock yourself out (i.e. create your account/domain account in SQL with sysadmin, or know the sa account)

By default, I believe SQL 2008 doesn't include BUILTIN\Administrators as sysadmin, while SQL 2005 does
It is not good practice to automatically assume all Local Admins are SQL Admins

Another way is to add that other user's account specifically (say DOMAIN\userB), and give him data_reader only
The login permissions should override the group permissions

SQLServerNewbie

MCITP: Database Administrator SQL Server 2005
naramsg
naramsg
SSC-Enthusiastic
SSC-Enthusiastic (108 reputation)SSC-Enthusiastic (108 reputation)SSC-Enthusiastic (108 reputation)SSC-Enthusiastic (108 reputation)SSC-Enthusiastic (108 reputation)SSC-Enthusiastic (108 reputation)SSC-Enthusiastic (108 reputation)SSC-Enthusiastic (108 reputation)

Group: General Forum Members
Points: 108 Visits: 201
Nicholas, thanks for your reply. The user is not listed under any of the groups under Server Roles, but is still able to access the DB.

Jerry, the user is able to access and make DDL modifications to the DB even if I give only db_datareader access. Seems very strange...

For now, I've disabled the login...


Regards,
Guru
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search