在Linux下使用svn co总是提示输入密码

本文介绍了解决Linux环境下使用SVN更新文件时频繁提示输入密码的方法。通过编辑用户配置文件,将存储密码选项设置为'no',避免密码被存储在配置目录中。同时,对于非root用户遇到类似问题时,提供了可能的原因和解决方案。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

如图:

使用Linux系统对svn上的文件进行更新的时候,总是繁琐的提示要输入密码,这样给操作带来了许多不变,因此这样处理一下就可以解决这个问题了:

1.首先找到当前用户下对应的配置文件:

   例如当前用户是testEnv则/home/testEnv/.subversion/config

2.找到如下内容:

   ###
   ### Set store-passwords to 'no' to avoid storing passwords in the
   ### auth/ area of your config directory.  It defaults to 'yes',
   ### but Subversion will never save your password to disk in
   ### plaintext unless you tell it to (see the 'servers' file).
   ### Note that this option only prevents saving of *new* passwords;
   ### it doesn't invalidate existing passwords.  (To do that, remove
   ### the cache files by hand as described in the Subversion book.)
           store-passwords = no

3.如上说明这时候这个是开启的,那么如果需要关闭则将store-passwords = no改成true或注释掉就行了


另外:有些非root用户修改后仍然是有上图的提示,目前找不到原因,大家遇到类似情况解决方法多多跟下,共同学习,感谢~




评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值