如何控制CVS存储库中的文件权限? [英] How to control file permissions in CVS repository?
本文介绍了如何控制CVS存储库中的文件权限?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
目前,某些用户的umask设置会导致对常规文件执行执行权限,我想避免.
Currently some users have their umask set in ways which result in execute permission on regular files, which I'd like to avoid.
是否有一种方法可以强制所有签入的文件仅在某些例外情况下才能读取?
Is there a way to force all files checked in to only be read with some exceptions?
在CVS中处理此问题的推荐方法是什么?
推荐答案
Cvs命令选项监视还阻止了文件权限的恢复.如果监视,则检出文件后将是只读的.在cvs手册页中:
Cvs command option watch is also preventing file permissions to be restored. If watched, when file is checked out it will be read-only. From cvs man pages:
$ cvs watch --help_options
Usage: cvs watch {on|off|add|remove} [-lR] [-a <action>]... [<path>]...
on/off: turn on/off read-only checkouts of files
因此,使用cvs watch off filename
从存储库中删除结帐,使其每次都只读.
So, use cvs watch off filename
to remove checkout from repository making it read only every time.
这篇关于如何控制CVS存储库中的文件权限?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文