Solved

guest user account in sql server

Posted on 2009-04-06
2
284 Views
Last Modified: 2012-05-06
I wonder how this "guest" user exist in the db, I never create it, will this guest user available to veery db that we created?
0
Comment
Question by:motioneye
2 Comments
 
LVL 7

Expert Comment

by:luani
ID: 24075183
Yes,
Every new database is a restore of the model database, if dont want the user to be in every database remove from the model database.


0
 
LVL 57

Accepted Solution

by:
Raja Jegan R earned 500 total points
ID: 24075270
The guest user account is in both SQL Server 2000 and 2005 and it has been around since the SQL Server 6.5 days and probably earlier.  
This user account is used by SQL Server to access objects across databases if explicit rights are not granted.  
This account is relied on for some SQL Server 2000 system functions (master and tempdb) and needs to be maintained for SQL Server to function properly.  
Unfortunately, in some respects the guest user account can be a considered a threat from an application perspective that can be resolved in user defined databases.

To revoke access of guest user account:

SQL Server 2000

USE <Database Name>
GO
EXEC sp_revokedbaccess 'guest'
GO

SQL Server 2005

USE <Database Name>
GO
REVOKE CONNECT FROM GUEST
GO
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question