简体   繁体   English

Windows Server 2008上的权限和SVN更新:相同的文件夹和SVN帐户,不同的Active Directory用户

[英]Permissions and SVN Updates on Windows Server 2008: same folder & SVN account, different Active Directory users

We're experiencing strange permission issues with SVN after switching from Windows Server 2003 to Server 2008. 从Windows Server 2003切换到Server 2008后,我们遇到了SVN的奇怪权限问题。

On our standard build box there is a folder ( C:\\SVN_Code_Folder ) which AD_User_A associates with a SVN repository using SVN_User and TortoiseSVN 1.7.6 在我们的标准构建框中,有一个文件夹( C:\\SVN_Code_Folder ),AD_User_A使用SVN_User和TortoiseSVN 1.7.6与SVN存储库关联

When using Windows 2003, when AD_User_B logs into the box and tries to Update, Switch, Merge the SVN_Code_Folder with SVN_User, the command is executed. 使用Windows 2003时,当AD_User_B登录到框中并尝试更新,切换,将SVN_Code_Folder与SVN_User合并时,将执行该命令。

It Windows 2008, it fails with the message: 在Windows 2008中,它失败并显示以下消息:

Command: Update 命令:更新
Error: Working copy 'C:\\jboss-4.2.3.GA\\server\\New folder' locked 错误:工作副本'C:\\ jboss-4.2.3.GA \\ server \\ New folder'已锁定
Error: sqlite: attempt to write a readonly database 错误:sqlite:尝试编写只读数据库
Error: sqlite: attempt to write a readonly database 错误:sqlite:尝试编写只读数据库
Completed! 已完成!

Attempting to unlock the file, which was never locked, via the context menu is met with the following message: 尝试通过上下文菜单解锁从未锁定的文件,但会收到以下消息:

There's nothing to unlock. 无法解锁。 No file has a lock in this working copy. 此工作副本中没有文件锁定。

I've played with the permissions of the folder and I've discovered that giving "Domain Users" control over the folder fixes the issue, but I would prefer to not have such a broad permissions. 我玩过该文件夹的权限,我发现给“域用户”控制文件夹可以解决问题,但我宁愿没有这么广泛的权限。 I've tried granting the same permissions to individual users and a SVN-group, but these too did not work. 我尝试向单个用户和SVN组授予相同的权限,但这些也没有用。

What am I missing? 我错过了什么?
Is this an improper use of SVN? 这是SVN的不当使用吗?
Can 2 different Domain users update a folder using SVN without removing the .SVN file? 2个不同的域用户可以使用SVN更新文件夹而无需删除.SVN文件吗?

For future reference... 备查...

I had this same problem with some WC's that I copied over to my new laptop's hard drive, from a file share on my old machine. 我有一些WC的问题,我从旧机器上的文件共享中复制到我的新笔记本电脑的硬盘驱动器上。

It turned out that the problem was solved by giving myself (as opposed to all domain users, or any other group) full control over the folder. 事实证明,通过给予我自己(而不是所有域用户或任何其他组)对文件夹的完全控制来解决问题。

Did you check the svn service user on the win2008 machine? 你在win2008机器上检查过svn服务用户了吗? Does that user have local administrator privileges and also have permission to these folders on c:? 该用户是否具有本地管理员权限,并且还拥有c:上这些文件夹的权限? After changing anything restart the service. 更改任何内容后重新启动服务。

For me change folder permissions did't help, but I have update for several directories in a batch script so I solved this by 对我来说,更改文件夹权限没有帮助,但我在批处理脚本中更新了几个目录,所以我解决了这个问题

cmd -> Run as administrator -> start update script cmd - >以管理员身份运行 - >启动更新脚本

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM