Results 1 to 5 of 5
  1. #1
    Join Date
    May 2005
    Posts
    22

    Unhappy Unanswered: problem with guest account in the tempdb

    When i restart my database server, guest login is getting deleted automatically from tempdb. it shudn't happen. please can anyone suggest me solution for my problem.

    thanx and regards
    kiran

  2. #2
    Join Date
    Nov 2004
    Location
    on the wrong server
    Posts
    8,835
    Provided Answers: 6
    the tempdb is recreated every time the sql service is restarted from a copy of model. i might create a guest account in model to correct the issue but I am not sure why you are having people log into tempdb directly.
    “If one brings so much courage to this world the world has to kill them or break them, so of course it kills them. The world breaks every one and afterward many are strong at the broken places. But those that will not break it kills. It kills the very good and the very gentle and the very brave impartially. If you are none of these you can be sure it will kill you too but there will be no special hurry.” Earnest Hemingway, A Farewell To Arms.

  3. #3
    Join Date
    May 2005
    Posts
    22

    it is working now..thanx

    Hi Sean Roussy
    thanx a lot for ur reply. I added guest user in sysusers table of model database. and i restarted the server and tested the tempdb, now guest user is not deleted. It works well..

    thank you.
    kiran

  4. #4
    Join Date
    Feb 2004
    Location
    In front of the computer
    Posts
    15,579
    Provided Answers: 54
    Note that creating a guest user in the model database is a HUGE security hole, not very far beyond removing the password from the sa login. It makes all kinds of attacks trivial against your server if you ever grant anyone the ability to write queries against your server.

    -PatP

  5. #5
    Join Date
    Aug 2002
    Location
    Scotland
    Posts
    1,578
    True, I agree with Pat in this matter as the security is most important for a DBA.

    Kiran
    If this is a development environment then you can say it is not an issue, but if you can explain your need then there will be a way to accomplish.
    --Satya SKJ
    Microsoft SQL Server MVP
    [IMG]http://sqlserver-qa.net/google_bart.gif[/IMG]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •