Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 Find who/when a user was created

Author  Topic 

mfemenel
Professor Frink

1421 Posts

Posted - 2005-10-28 : 09:42:53
Good morning-
Got a quick admin type question. Somehow our prod support people were added to our test/dev database and they shouldn't have been. I'd like to find out who added them and when. Any ideas? I tried sysusers but that seems to only show if the user has specific database permissions. These guys were added as sysadmins so they're not in a database specifically. thanks.

Mike
"oh, that monkey is going to pay"

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2005-10-28 : 09:51:04
Did you see that in Profiler?

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

SQLServerDBA_Dan
Aged Yak Warrior

752 Posts

Posted - 2005-10-28 : 09:53:03
quote:
Originally posted by mfemenel

Good morning-
Got a quick admin type question. Somehow our prod support people were added to our test/dev database and they shouldn't have been. I'd like to find out who added them and when. Any ideas? I tried sysusers but that seems to only show if the user has specific database permissions. These guys were added as sysadmins so they're not in a database specifically. thanks.

Mike
"oh, that monkey is going to pay"




syslogins is going to give you the "when". I will need to think about the "who". At the moment I'm thinking the "who" would need to be captured in either a trigger or profile, so you may be out of luck...

Daniel, MCP, A+
SQL Server DBA
www.dallasteam.com
Go to Top of Page

mfemenel
Professor Frink

1421 Posts

Posted - 2005-10-28 : 10:07:10
Ok, well, the when is a good start at least. Since it's a dev/uat box we don't run profiler on a regular basis unless we're checking out performance so I guess we're out of luck.

Mike
"oh, that monkey is going to pay"
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2005-10-28 : 10:31:30
How many sa's do you have registered to those boxes? Round up the usual suspects and grill them...I would also make sure that you have a limited number of people with sa.

I'll give out dbo, but if they need more, they have to come to me or only a handful of people. Can you imagine the damage inflicted....

[Apocalypse Now]

The horror....

[/Apocalypse Now]




Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx
Go to Top of Page

mfemenel
Professor Frink

1421 Posts

Posted - 2005-10-28 : 11:00:48
The problem is their manager requested that they have admin privelages to the box. Their manger however doesn't own the boxes, we do. I was trying to get the date it happened so I could track down the request and prove that the manager did this and shouldn't have. I found a different way though. Forunately in our ticket system you can look for tickets by first & last name and I just found where she made the request. Now the fun starts.

Mike
"oh, that monkey is going to pay"
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2005-10-28 : 11:17:52
quote:
Originally posted by mfemenel

I just found where she made the request. Now the fun starts.



Sorry Tara...tell me she's in IT



Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx
Go to Top of Page

mfemenel
Professor Frink

1421 Posts

Posted - 2005-10-28 : 11:49:19
Well I'm not Tara...wtf?
She is in IT but she's prod support and she requested admin access to all of our dev/uat boxes, then removed our rights.

Mike
"oh, that monkey is going to pay"
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2005-10-28 : 12:24:37
quote:
Originally posted by mfemenel

Well I'm not Tara...wtf?
She is in IT but she's prod support and she requested admin access to all of our dev/uat boxes, then removed our rights.

Mike
"oh, that monkey is going to pay"



I apologized, because it's a bias thing...if she's not the owner of the boxes, how can she remove your rights? And hand it out to someone else? Expecially if she's in Product support?

Product support?

oye.....

Did they downsize and have no one left to admin dev and QA?

If I were you, I'd start betting on deadlines...good way to supplement income



Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx
Go to Top of Page

derrickleggett
Pointy Haired Yak DBA

4184 Posts

Posted - 2005-10-29 : 12:08:18
It sounds like production support is in the local administrator group somehow (possibly through an AD group memership)? You need to remove the BUILTIN\Administrator login from SQL Server and restrict who has sysadmin and securityadmin rights on the SQL Server. In addition, set up an ongoing Profiler trace to track the additions to permissions. Then, the next time they try something like this it will fail. If it does succeed, you will know exactly who did it and can proceed on dragging the idiots to HR.

Have fun.

MeanOldDBA
derrickleggett@hotmail.com

When life gives you a lemon, fire the DBA.
Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2005-10-30 : 02:35:42
Sounds like you've found a way, but if you have transaction log backups on the database you might be able to get something from those - the "when" is the column createdate in sysusers, and that will lead you to which TLog backup file I guess.

Kristen
Go to Top of Page

mfemenel
Professor Frink

1421 Posts

Posted - 2005-10-31 : 08:39:58
Yeah, I can't remove them for now witout getting a hand slap from the boss. He wants to handle this all through "proper process".

Mike
"oh, that monkey is going to pay"
Go to Top of Page

mfemenel
Professor Frink

1421 Posts

Posted - 2005-10-31 : 13:34:34
Thanks guys. Everything is locked down pretty well now. One question. On one server I didn't have a builtin\administrators but did have an NT AUthority\System. That's pretty much the same thing, right?

Mike
"oh, that monkey is going to pay"
Go to Top of Page
   

- Advertisement -