[linux][软件]Ubuntu部署SVN服务器

1. 安装subversion

apt install subversion

读条结束后可运行代码看是否安装成功

svnserve --version

2. 创建svn版本库

在合适的地方创一个svn文件夹,我这里创建在/home下

mkdir /home/svn

创建svn仓库

svnadmin create /home/svn/repo

创建完成之后cd到 /home/svn/repo

cd /home/svn/repo

ls

可以看到下面的结构

conf db format hooks locks README.txt

3. 修改配置文件以及增加用户权限

进入配置文件

cd conf

可以看到内容

authz hooks-env.tmpl passwd svnserve.conf

其中svnserve.conf就是配置文件

vim svnserve.conf

里面有很多内容,这里就显示一部分

anon-access:控制非鉴权用户访问版本库的权限(来自菜鸟驿站的术语)我的理解就是非用户能做的事(手动狗头; 填none应该就ok

auth-access:控制鉴权用户访问版本库的权限

password-db: 配置用户名密码的地方,默认的话就是当前文件夹下的passwd

authz-db: 配置用户权限的地方, 默认的话就是当前文件夹下的authz

这里是取消这四个字段的注释

This file controls the configuration of the svnserve daemon, if you

use it to allow access to this repository. (If you only allow

access through http: and/or file: URLs, then this file is

irrelevant.)

Visit http://subversion.apache.org/ for more information.

general

The anon-access and auth-access options control access to the

repository for unauthenticated (a.k.a. anonymous) users and

authenticated users, respectively.

Valid values are "write", "read", and "none".

Setting the value to "none" prohibits both reading and writing;

"read" allows read-only access, and "write" allows complete

read/write access to the repository.

The sample settings below are the defaults and specify that anonymous

users have read-only access to the repository, while authenticated

users have read and write access to the repository.

anon-access = none

auth-access = write

The password-db option controls the location of the password

database file. Unless you specify a path starting with a /,

the file's location is relative to the directory containing

this configuration file.

If SASL is enabled (see below), this file will NOT be used.

Uncomment the line below to use the default password file.

password-db = passwd

........

authz-db = authz

相关推荐
无效的名字6 分钟前
向日葵远程控制debian无法进入控制画面的解决方法
运维·debian
藥瓿亭32 分钟前
K8S认证|CKS题库+答案| 7. Dockerfile 检测
运维·ubuntu·docker·云原生·容器·kubernetes·cks
搬码临时工1 小时前
如何把本地服务器变成公网服务器?内网ip网址转换到外网连接访问
运维·服务器·网络·tcp/ip·智能路由器·远程工作·访问公司内网
vortex51 小时前
探索 Shell:选择适合你的命令行利器 bash, zsh, fish, dash, sh...
linux·开发语言·bash·shell·dash
GalaxyPokemon1 小时前
LeetCode - 148. 排序链表
linux·算法·leetcode
Guheyunyi2 小时前
监测预警系统重塑隧道安全新范式
大数据·运维·人工智能·科技·安全
懒羊羊大王呀2 小时前
Ubuntu20.04中 Redis 的安装和配置
linux·redis
杰哥技术分享2 小时前
在 CentOS 上安装 Docker 和 Docker Compose 并配置使用国内镜像源
linux·docker·centos
知更鸟呆呆2 小时前
【Linux操作系统】基础开发工具(yum、vim、gcc/g++)
linux·运维·vim
xiangyong582 小时前
ubuntu系统文件误删(/lib/x86_64-linux-gnu/libc.so.6)修复方案 [成功解决]
linux·ubuntu·gnu