将团队基础服务器的备份配置为Debian 10服务器上的samba共享路径时出错

时间:2020-06-09 11:04:46

标签: sql-server tfs samba

我在debian 10中配置了一个samba 4(不加入域),并带有smb.conf配置文件:

[global]
        bind interfaces only = yes
        interfaces = 10.0.2.0/24
        workgroup = SAMBA
        idmap config * : backend = tdb
        cups options = raw
        encrypt passwords = yes
        logging = file
        smb encrypt = required
        keep alive = 50
        log file = /root/samba/%m.log
        max log size = 100000
        security = user
        map to guest = Bad User

[server]
        path = /server
        writeable = yes
        read only = no
        browsable = yes
        directory mask = 0770
        create mask = 0770
        valid users = juan

在tfs(Windows Server 2012)中,我使用建议的路径配置备份,直到出现以下错误:

error:TF401002: The SQL Server Database Engine was unable to save the database backup in path \\ .... Give the SQL service account read and write access to that folder

我转到数据库服务器,并且没有访问权限的帐户如下:

NT服务\ SQLAgent $ SQLTEAM2013

enter image description here

如前所述,为该帐户授予samba共享文件夹的权限????

1 个答案:

答案 0 :(得分:1)

错误:TF401002:SQL Server数据库引擎无法将数据库备份保存在路径\ ...中。授予SQL服务帐户对该文件夹的读写访问权限

似乎该sql帐户没有足够的权限。

据我所知,NT Service\SQLAgent$xxx帐户是virtual account。此帐户的用户权限较低。

通常,此帐户对共享路径文件夹没有读写权限。

您可以尝试授予该帐户权限,并检查它是否可以解决此问题。

此外,您还需要确保目标路径有效。例如:\\TFS2018\backup

valid path

This ticket可能会有所帮助。

希望这会有所帮助。