常用命令行
acl命令2
auth:user:pwd:cdrwa
digext:user:BASE64(SHA1(pwd)):cdrwa
addauth digest user:pwd
实践
1.创建、登录用户
addauth digest wqy:wqy
2.设置权限
setAcl /a/b auth wqy:wqy:cdrwa
3.查看权限
getAcl /a/b
输出下面这样的一句话 :
‘digest’,‘wqy:WXEdaLLoodqd…==’:cdrwa
注意wqy:后面是BASE64加密的密码,需要记下来
4.测试给/a/b重新授权
setAcl /a/b auth wqy123:wqy123:cdrwa
5.查看权限
getAcl /a/b
仍输出:‘digest’,‘wqy:WXEdaLLoodqd… :cdrwa
说明首次auth 设置之后,用户名密码不会改变!
6.使用digest 密文设置节点
setAcl /a/c digest wqy:wqy:WXEdaLLoodqd… ==:cdra
7.查看权限
getAcl /a/c
‘digest’,‘wqy:WXEdaLLoodqd… ==’:cdrwa