我们有的时候有这样的需要,允许一人用户查看修改其它用户的文件,但不允许删除。用一个普通用户执行一个命令,但这个命令的运行身份是root。因为linux系统权限设置过于简单,像做这些事情就需要用到facl了。facl是fileaccesscontrollist的缩写。当一个用户访问一个文件时,文..
分类:
其他好文 时间:
2014-08-08 02:09:55
阅读次数:
288
-------------------------------------------------------------------------------------------------------RBAC(Role Based Access Control),意为基于角色的访问控制,这里用...
分类:
其他好文 时间:
2014-08-07 22:57:14
阅读次数:
260
在html页面head标签之间添加以下标识可以避免大多数浏览器缓存: <meta?http-equiv="Pragma"?content="no-cache"?/>???
<meta?http-equiv="Cache-Control"?content="no-cache"?/>
<meta?http-equiv="E...
分类:
Web程序 时间:
2014-08-07 19:28:10
阅读次数:
249
private void SetTextReadOnly(Control ctr, bool blReadOnly) { ctr.Controls.Cast().Select(s => s).ToList().ForEach(s => ...
分类:
其他好文 时间:
2014-08-07 18:30:21
阅读次数:
170
学习与使用ASP.NET MVC这样久,还是对asp.net念念不忘。能否在asp.net mvc去显示aspx或是user control呢?这个灵感(算不上灵感,只能算是想法)是来自前些天有写过一篇《多个视图结果显示于一个共用预览视图内》http://www.cnblogs.com/insus/...
分类:
Web程序 时间:
2014-08-07 12:46:39
阅读次数:
247
In one embodiment, the present invention includes a directory to aid in maintaining control of a cache coherency protocol. The directory can be couple...
分类:
数据库 时间:
2014-08-07 00:42:27
阅读次数:
496
windows 7安裝後啟動xampp, 提示port 443 被其他程式占用。網上查找解決方案:http://stackoverflow.com/questions/21182512/how-to-stop-vmware-port-error-of-443-on-xampp-control-pan...
用python写windows服务(1)以python2.5 为例需要软件 * python 2.5 * pywin32(与2.5 版本相匹配的)Service Control Manager (SCM)服务管理器(SCM) 是windows NT的 一部分,所有服务必须通过SCM 注册,SCM负责...
分类:
编程语言 时间:
2014-08-06 22:23:42
阅读次数:
384
如果你严肃对待编程,就必定会使用"版本管理系统"(Version Control System)。 眼下最流行的"版本管理系统",非Git莫属。 相比同类软件,Git有很多优点。其中很显著的一点,就是版本的分支(branch)和合并(mer...
分类:
其他好文 时间:
2014-08-06 19:35:12
阅读次数:
246
用处:在一个连续的区间中选择一个值-(void)viewDidLoad{ [super viewDidLoad]; CGRect frame = CGRectMake(20,20,200,0); self.slider = [[UISlider alloc]initWithFrame:fra...
分类:
其他好文 时间:
2014-08-06 18:31:51
阅读次数:
235