Skip to content

Setup DBA File Permissions

EdVassie edited this page Jan 19, 2021 · 1 revision
Previous Check SQL Services Manual Install Setup DBA Registry Permissions Next

FineBuild will Setup File Permissions for DBAs so they can access the SQL Server folders.

The Microsoft SQL Server install will set explicit folder security on the objects created during the install, overwriting any existing permissions. The assigned permissions allow local Administrator access but do not allow access to the DBA groups. FineBuild updates these permissions so that the DBA groups do have access, allowing DBA staff to perform their proper administrative functions on SQL Server.

The Setup File Permissions processing relates to Process Id 2CAI.

FineBuild Setup File Permissions

FineBuild will automatically Setup File Permissions to allow DBAs to access the SQL Server folders.

FineBuild also uses the following parameters to help Setup File Permissions:

Parameter Default Value Description
/GroupDBA: none Name of DBA Windows group for sysadmin access
/GroupDBANonSA: none Name of DBA Windows group for low privilege access

Top


Manual Setup DBA File Permissions

The following steps show what you would have to do to Setup DBA File Permissions manually. FineBuild does all of this work for you automatically.

The following commands will allow DBA staff to access specified SQL Server folders. Run these commands, replacing the group names with those used at your installation:

CACLS "foldername" /T /C /E /G "GroupDBA":F
CACLS "foldername" /T /C /E /G "GroupDBANonSA":R

The above commands should be run on all of the folders below:

  1. If Analysis Services is being installed, run the CACLS commands on all the folders below

    Replace MSSQLSERVER with the instance name being installed:

    E:\Program Files\Microsoft SQL Server\MSAS10.MSSQLSERVER
    J:\SQLFiles\MSAS.MSSQLSERVER.Data
    K:\SQLFiles\MSAS.MSSQLSERVER.Log
    T:\SQLFiles\MSAS.MSSQLSERVER.Temp
    I:\SQLFiles\MSAS.MSSQLSERVER.Backup
    
  2. If SQL Server database engine is being installed, run the CACLS commands on all the folders below

    Replace MSSQLSERVER with the instance name being installed:

    E:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER
    J:\SQLFiles\MSSQL.MSSQLSERVER.Data
    F:\SQLFiles\MSSQL.MSSQLSERVER.FTData
    K:\SQLFiles\MSSQL.MSSQLSERVER.Log
    T:\SQLFiles\MSSQL.MSSQLSERVER.Data
    I:\SQLFiles\MSSQL.MSSQLSERVER.Backup
    
  3. If SQL Server Report Services is being installed, run the CACLS commands on all the folders below

    Replace MSSQLSERVER with the instance name being installed:

    E:\Program Files\Microsoft SQL Server\MSRS10.MSSQLSERVER
    

Copyright FineBuild Team © 2013 - 2021. License and Acknowledgements

Previous Check SQL Services Top Setup DBA Registry Permissions Next

Key SQL FineBuild Links:

SQL FineBuild supports:

  • All SQL Server versions from SQL 2019 through to SQL 2005
  • Clustered, Non-Clustered and Core implementations of server operating systems
  • Availability and Distributed Availability Groups
  • 64-bit and (where relevant) 32-bit versions of Windows

The following Windows versions are supported:

  • Windows 2022
  • Windows 11
  • Windows 2019
  • Windows 2016
  • Windows 10
  • Windows 2012 R2
  • Windows 8.1
  • Windows 2012
  • Windows 8
  • Windows 2008 R2
  • Windows 7
  • Windows 2008
  • Windows Vista
  • Windows 2003
  • Windows XP
Clone this wiki locally