Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Who would like to explain the uses of account guest in SQL SERVER? Expand / Collapse
Author
Message
Posted Thursday, June 11, 2009 11:57 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Monday, May 10, 2010 7:57 PM
Points: 4, Visits: 11
Who would like to explain the uses of account guest in SQL SERVER?
Thanks
Post #733527
Posted Friday, June 12, 2009 1:37 AM
SSCarpal Tunnel

SSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal Tunnel

Group: General Forum Members
Last Login: Today @ 7:44 AM
Points: 4,432, Visits: 4,157
Ok, I give it a try.
the guest account is used to give access to a database without explicitely creating a databaseuser for a login. The best example is the mastter database. Most SQL logins are not created as a user in master. But for login and certain other actions the login must access sytem tables and procedures in master. Because the guest user is enabled in master, every login even though it is not an explicit usere in master, can access these system tables. The guest user has the permissions of the public role.
By default the guest user is enabled only in master, msdb and tempdb. In model and all user databases the guest user is disabled.
see also:
http://www.mssqltips.com/tip.asp?tip=1172


Markus Bohse
Post #733563
Posted Monday, June 15, 2009 12:34 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Monday, May 10, 2010 7:57 PM
Points: 4, Visits: 11
Thanks !
Post #734812
Posted Monday, June 15, 2009 12:48 AM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Wednesday, April 16, 2014 5:39 AM
Points: 2,104, Visits: 5,378
MarkusB (6/12/2009)
The guest user has the permissions of the public role.
[/url]


Just a small clarification. Every user and role (including the user guest) will get the permissions that are specified for the public role. You can also grant specific permissions directly to the user guest.

Adi


--------------------------------------------------------------
To know how to ask questions and increase the chances of getting asnwers:
http://www.sqlservercentral.com/articles/Best+Practices/61537/

For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
Post #734815
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse