如何检查gitolite中其他用户的权限?
How to check permission for other users in gitolite?
我发现 link 文档中说 ssh info 命令可用于查看其他用户的权限,但我无法让它工作。
http://gitolite.com/gitolite/g2/info_expand.html
我做错了什么?
$ ssh git@ahp0625 info git <user>
Usage: gitolite info [-lc] [-ld] [-json] [<repo name pattern>]
List all existing repos you can access, as well as repo name patterns you can
create repos from (if any).
'-lc' lists creators as an additional field at the end.
'-ld' lists description as an additional field at the end.
'-json' produce JSON output instead of normal output
可选模式是一个未锚定的正则表达式,它将限制回购
在这两种情况下都进行了搜索。如果你有更多,它可能会加快速度
比几千个回购。
尝试:
ssh git@ahp0625 info git . <user>
由于 repos 的模式似乎是强制性的,因此您可以使用句号作弊,如您发布的 link 中所述:
The "info" command shows you all the repos (and repo patterns) in the
config file that you have been given any kind of access to. If you
supply an optional pattern the output will be limited to repos
matching that pattern. If you're an admin you can append a list of
users to see their permissions instead of your own; in this mode the
pattern is mandatory, even if you just use . to cheat.
从您收到的帮助信息来看,您使用的是 v3,而且也是最近的版本。
v3 info
不允许该语法。
请参阅 src/commands/sudo
了解以其他用户身份 运行 任何命令的更通用方法。
(您需要在 rc
file -- See Rc.pm
中的已启用命令列表中添加“sudo
”,尾随逗号)。
我发现 link 文档中说 ssh info 命令可用于查看其他用户的权限,但我无法让它工作。
http://gitolite.com/gitolite/g2/info_expand.html
我做错了什么?
$ ssh git@ahp0625 info git <user>
Usage: gitolite info [-lc] [-ld] [-json] [<repo name pattern>]
List all existing repos you can access, as well as repo name patterns you can
create repos from (if any).
'-lc' lists creators as an additional field at the end.
'-ld' lists description as an additional field at the end.
'-json' produce JSON output instead of normal output
可选模式是一个未锚定的正则表达式,它将限制回购 在这两种情况下都进行了搜索。如果你有更多,它可能会加快速度 比几千个回购。
尝试:
ssh git@ahp0625 info git . <user>
由于 repos 的模式似乎是强制性的,因此您可以使用句号作弊,如您发布的 link 中所述:
The "info" command shows you all the repos (and repo patterns) in the config file that you have been given any kind of access to. If you supply an optional pattern the output will be limited to repos matching that pattern. If you're an admin you can append a list of users to see their permissions instead of your own; in this mode the pattern is mandatory, even if you just use . to cheat.
从您收到的帮助信息来看,您使用的是 v3,而且也是最近的版本。
v3 info
不允许该语法。
请参阅 src/commands/sudo
了解以其他用户身份 运行 任何命令的更通用方法。
(您需要在 rc
file -- See Rc.pm
中的已启用命令列表中添加“sudo
”,尾随逗号)。