Skip to content
This repository has been archived by the owner on Jul 24, 2023. It is now read-only.

两个问题【解决方案】:1、找不到密码重置日志,2、系统启动报linux权限不足Permission denied: '/var/lib/svn'. #4

Open
fly-piglet opened this issue Mar 21, 2018 · 0 comments

Comments

@fly-piglet
Copy link

fly-piglet commented Mar 21, 2018

第一个问题:

# 通过下面命令获得进程的pid,后面填写的是容器的id或者名字
docker inspect --format "{{.State.Pid}}" dockercontainername
# 通过nsenter进入容器,如果没有就安装下yum install -y util-linux
nsenter --target 27951 --mount --uts --ipc --net --pid
# 进入容器后,切换到目录
cd /var/lib/submin/conf
# 使用sqlite3进入db文件
sqlite3 submin.db
# 通过命令获取verysecretfakekey
select * from password_reset where userid = 1;

复制对应的id
浏览器访问
http://example.com:8080/submin/password/admin/NX6UIpOvlab0B8QYQTKE1d4xQQ9qNl0XG1pkeUV8xg9bbcj1q4
进行密码重置

第二个问题
对于目录/var/lib/svn 进行授权777

chmod -R 777 /var/lib/svn

参考
https://serverfault.com/questions/646743/submin-password-reset-without-e-mail-sending
sqlite3操作

@fly-piglet fly-piglet changed the title i 两个问题:1、找不到密码重置日志,2、系统启动报linux权限不足 Mar 21, 2018
@fly-piglet fly-piglet changed the title 两个问题:1、找不到密码重置日志,2、系统启动报linux权限不足 两个问题:1、找不到密码重置日志,2、系统启动报linux权限不足Permission denied: '/var/lib/svn'. Mar 21, 2018
@fly-piglet fly-piglet changed the title 两个问题:1、找不到密码重置日志,2、系统启动报linux权限不足Permission denied: '/var/lib/svn'. 两个问题【解决方案】:1、找不到密码重置日志,2、系统启动报linux权限不足Permission denied: '/var/lib/svn'. Mar 21, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant