简体   繁体   English

如何以NT AUTHORITY \\ SYSTEM连接到svn?

[英]How to connect as NT AUTHORITY\SYSTEM to svn?

I have a service running at local system account (NT AUTHORITY\\SYSTEM). 我有一个在本地系统帐户(NT AUTHORITY \\ SYSTEM)上运行的服务。 This service shall connect to local subversion repository. 该服务应连接到本地Subversion存储库。 Is this possible? 这可能吗?

I tried this 我试过了

svn export --non-interactive http://localhost/svn/MyRepository TargetFolder

but it does not work. 但它不起作用。 As far as I know I cannot set any password for "NT AUTHORITY\\SYSTEM". 据我所知,我无法为“ NT AUTHORITY \\ SYSTEM”设置任何密码。 I don't like to use my personal account and put my password there as clear text. 我不喜欢使用我的个人帐户并将密码作为明文放在那里。

My SVN runs on VisualSVN-Server 我的SVN在VisualSVN-Server上运行

You should never use SYSTEM account for such tasks for numerous security reasons. 出于多种安全原因,您绝对不应将SYSTEM帐户用于此类任务。 Create and use a dedicated local Windows or Active Directory account with limited permissions. 创建并使用具有有限权限的专用本地Windows或Active Directory帐户。

Setting up the cached authentication credentials for the System user requires running an svn.exe command as the System user. 为系统用户设置缓存的身份验证凭据需要以系统用户身份运行svn.exe命令。 Windows Vista+/Server 2008+ doesn't make that easy. Windows Vista + / Server 2008+并不那么容易。

  1. ​Install psexec from https://docs.microsoft.com/en-us/sysinternals/downloads/psexec https://docs.microsoft.com/zh-cn/sysinternals/downloads/psexec安装psexec
  2. Start an elevated cmd.exe as Administrator. 以管理员身份启动提升的cmd.exe。
  3. Run "psexec -i -s cmd.exe". 运行“ psexec -i -s cmd.exe”。
  4. A new cmd.exe should appear which is running as the System user. 应该出现一个新的cmd.exe,它以系统用户身份运行。
  5. Type whoami. 输入whoami。 Verify the output reads something like "nt authority\\system". 验证输出读取的内容类似于“ nt Authority \\ system”。
  6. Perform a subversion command like "svn --username your-svn-user list your-https-repo-url".​ 执行诸如``svn --username your-svn-user list your-https-repo-url''之类的颠覆命令。
  7. When prompted by svn.exe, enter the password for your-svn-user. 当svn.exe提示时,输入your-svn-user的密码。
  8. ​The "svn auth" command allows you to examine the cached credentials. ``svn auth''命令允许您检查缓存的凭据。

Note if a new SSL certificate is installed on the Subversion server, you'll have to repeat this process. 请注意,如果Subversion服务器上安装了新的SSL证书,则必须重复此过程。

For more responses on this topic: How do you run CMD.exe under the Local System Account? 有关此主题的更多响应: 如何在本地系统帐户下运行CMD.exe?

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

相关问题 如何使用C#在Window OS中的系统NT Authority\System下创建新用户 - How to Create New User under NT Authority\System the System in Window OS using C# Windows 8上的IIS Express:用户NT AUTHORITY \\ SYSTEM错误 - IIS Express on Windows 8: error with user NT AUTHORITY\SYSTEM 在 Windows 中,NT 权限/系统能否以另一个用户身份运行 powershell 脚本 - In Windows, can NT Authority/System run a powershell script as another user TaskScheduler 是否能够在 NT AUTHORITY\SYSTEM 帐户中执行服务? - TaskScheduler is able to execute a service in NT AUTHORITY\SYSTEM account? 如何为 GitHub Actions 的 nt authority\network 服务帐户添加权限? - How to add privileges to the nt authority\network service account for GitHub Actions? 如何以用户“NT AUTHORITY\Network Service”启动新进程? - How to start a new process as user "NT AUTHORITY\Network Service"? 访问拒绝NT授权\\本地服务 - ACCESS DENIED NT AUTHORITY\LOCAL SERVICE 在NT之前的系统上调用NT功能 - Calling NT function on pre-NT system 以用户身份运行的CreateProcess:“ NT AUTHORITY / Network Service”,不知道凭据? - CreateProcess running as user: “NT AUTHORITY/Network Service” without knowing the credentials? 没有网络访问的虚拟服务帐户,如NT AUTHORITY \\ LocalService - Virtual Service Account without Network Access, like NT AUTHORITY\LocalService
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM