颠覆:我是谁登录的?

时间:2010-05-25 17:49:15

标签: svn

我正在开发一个协作项目,并在Red Hat Enterprise Linux 3上使用Subversion。我想知道我登录的是谁。我是以自己还是其他人登录的?如果我签入我的工作,那么与提交相关联的用户名是什么?

我从未被提示输入用户名或密码。当我提交更改时,它们只会以别人的名义提交。我希望他们能以我的名义承诺。

我尝试了{ - 3}}中描述的“--username”选项,但它似乎不起作用。我做了一个提交,它是在另一个用户名下完成的。我想知道在我提交之前确定我的更改将以我的名义提交。

4 个答案:

答案 0 :(得分:6)

嗯。我不确定。你总是可以lock一个文件,然后解锁它。当你锁定时,它会告诉你你是谁。

但是,要阻止当前用户名被缓存(即存储在运行时配置文件/注册表中),请使用--no-auth-cache option

如果那也失败了,那么你可能在ssh和ssh is providing a username上使用了svn。修复此问题,您就可以开始使用自己的。

答案 1 :(得分:1)

根据您使用的主机操作系统,配置信息存储在不同的位置。有关该主题,请参阅the subversion book's section

删除配置的auth子目录将删除任何存储的身份验证,从而导致Subversion要求您进行更多身份验证。除此之外,似乎没有办法查询您被认证为哪个用户。

答案 2 :(得分:0)

通常我在尝试提交时会被提示,除非我保存身份验证信息,这意味着任何人都可以查看代码,但这正是我在工作场所中看到的SVN。


Re: How to change user if 'remember auth' is checked”可能会有所帮助,但如果不仅仅提供一些更多的细节,我认为其他人会在此之前发生这种情况,并知道如何解决这个问题。

答案 3 :(得分:0)

也许是svn auth [用户名]

svn auth asdsad
svn: E200009: Credentials cache in 'C:\Users\youruser\AppData\Roaming\Subversion' contains no matching credentials

获得帮助

svn help auth -v
auth: Manage cached authentication credentials.
usage: 1. svn auth [PATTERN ...]
       2. svn auth --remove PATTERN [PATTERN ...]

  With no arguments, list all cached authentication credentials.
  Authentication credentials include usernames, passwords,
  SSL certificates, and SSL client-certificate passphrases.
  If PATTERN is specified, only list credentials with attributes matching one
  or more patterns. With the --remove option, remove cached authentication
  credentials matching one or more patterns.

  If more than one pattern is specified credentials are considered only if they
  match all specified patterns. Patterns are matched case-sensitively and may
  contain glob wildcards:
    ?      matches any single character
    *      matches a sequence of arbitrary characters
    [abc]  matches any of the characters listed inside the brackets
  Note that wildcards will usually need to be quoted or escaped on the
  command line because many command shells will interfere by trying to
  expand them.

Valid options:
  --remove                 : remove matching authentication credentials
  --show-passwords         : show cached passwords

Global options:
  --username ARG           : specify a username ARG
  --password ARG           : specify a password ARG (caution: on many operating
                             systems, other users will be able to see this)
  --password-from-stdin    : read password from stdin
  --no-auth-cache          : do not cache authentication tokens
  --non-interactive        : do no interactive prompting (default is to prompt
                             only if standard input is a terminal device)
  --force-interactive      : do interactive prompting even if standard input
                             is not a terminal device
  --trust-server-cert      : deprecated; same as
                             --trust-server-cert-failures=unknown-ca
  --trust-server-cert-failures ARG : with --non-interactive, accept SSL server
                             certificates with failures; ARG is comma-separated
                             list of 'unknown-ca' (Unknown Authority),
                             'cn-mismatch' (Hostname mismatch), 'expired'
                             (Expired certificate), 'not-yet-valid' (Not yet
                             valid certificate) and 'other' (all other not
                             separately classified certificate errors).
  --config-dir ARG         : read user configuration files from directory ARG
  --config-option ARG      : set user configuration option in the format:
                                 FILE:SECTION:OPTION=[VALUE]
                             For example:
                                 servers:global:http-library=serf