• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

MSSQL public role

I could understand that you are facing issue with MSSQL database user which can see all other databases present inside the server. Please note that this is default behavior of MSSQL. When a database user is created in MSSQL database, the user will be having permission to view all other databases present in the same server. This permission is called VIEW ANY DATABASE. It is server-level permission. A login that is granted this permission can see metadata that describes all databases, regardless of whether the login owns or can actually use a particular database.
By default, the VIEW ANY DATABASE permission is granted to the public role. Therefore, by default, every user that connects to an instance of SQL Server can see all databases in the instance.
http://msdn.microsoft.com/en-us/library/ms189077(v=sql.105).aspx
http://msdn.microsoft.com/en-us/library/ms189077(v=sql.105).aspx

So if you need to deny the permission, you need to deny the server level permission. For more detail, please refer the link given below.

http://msdn.microsoft.com/en-us/library/ms182763(v=sql.105).aspx

After this permission is denied, a login can see only metadata for master, tempdb, and databases that the login owns.
 
To do that the user login created by Plesk should be part of DBO schema?

Denying VIEW ANY DATABASE permission everything is gone, including the database the user should access. But it seems the user created by Plesk is not the databases owner.

Is there somewhere to configure default permissions?
 
Back
Top