Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Administration - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 6525

SQL Agent and permissions to write to folder

$
0
0
Hello all,I see that a recent related message was posted about built-in accounts. Anyway, a vendor set up system using SQL 2014. The SQL Server Agent service was running under the 'Local System Account'. Agent jobs were failing because they couldn't write to a shared folder on the same server. I decided to change the account to a regular privileged domain user. Here is the error message:Executed as user MYDOMAIN\SQL2014Agent Cannot open backup device 'E\backup\MyBackup' Operating system error 5(Access is denied). [SQLSTATE 42000] [Error 3201] BACKUP DATABASE is terminating abnormally [SQLSTATE 42000] [Error 3013]. The step failedI granted Full Control to that domain user and it still failed. I added 'Everyone' and gave it Full Control and it succeeded. I understand that the account under which the Agent is running should have Write permissions on the share. However, I must have missed something. The only way I can get this to work is to grant Write or Full Control to Everyone. I absolutely do not want to do that. Thank you.

Viewing all articles
Browse latest Browse all 6525

Trending Articles