svn: Can't open file 'PATH/TO/YOUR/FILES/.svn/lock': Permission denied

简介:

svn: Can't open file 'PATH/TO/YOUR/FILES/.svn/lock': Permission denied

如果出现上面的异常信息,说明你需要重置PATH/TO/YOUR/FILES/目录的svn权限和目录所有者,文件包括隐藏的.svn目录,这时你需要用root权限执行以下命令:

# 进入需要重置权限的目录
cd /PATH/TO/MY/PROJECT

# 重置ownership
# NOTE: replace apache.staff(用户名.用户组) with your user and group
sudo find . -exec chown apache.staff {} \;

# 重置permissions
# NOTE: replace 2770 with your file permissions
sudo find . -exec chmod 2770 {} \;

# Now you can run the cleanup command to repair your .svn folders
svn cleanup





本文转自 fenghao.cn 51CTO博客,原文链接:http://blog.51cto.com/linuxguest/665211,如需转载请自行联系原作者
目录
相关文章
|
Linux Windows
SVN更新被Locked,Can't open file 'folder/.svn/tmp/text-base/file.svn-base'
SVN更新被Locked,Can't open file 'folder/.svn/tmp/text-base/file.svn-base'
178 0
SVN更新被Locked,Can't open file 'folder/.svn/tmp/text-base/file.svn-base'
SVN:Unreadable path encountered; access denied
SVN:Unreadable path encountered; access denied
230 0
SVN:Unreadable path encountered; access denied
svn错误:Can't convert string from 'UTF-8' to native encoding
如果文件名包含了中文,当执行“svn up .”遇到如下错误时:svn: Can't convert string from 'UTF-8' to native encoding:svn: docs/?\228?\188?\129?\228?\184?\154?\230?\141?\...
882 0