We want to hear from you!Take our 2020 Community Survey!

用户管理

Acepan支持多用户登录,管理员可以给每个用户配置单独的访问权限。

下列命令创建名为alice的用户,密码为password1234:

acc admin user add acepan alice password1234

创建只读访问策略:

tee readonly.json <<EOF
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Action": [
        "s3:GetObject"
      ],
      "Effect": "Allow",
      "Resource": [
        "arn:aws:s3:::bucketname/*"
      ],
      "Sid": ""
    }
  ]
}
EOF

acc admin policy add acepan readonly readonly.json

为用户alice设置访问权限readonly:

acc admin policy set acepan readonly user=alice

禁止用户alice访问存储服务:

acc admin user disable acepan alice

组管理

创建组G,并把alice添加到组G中:

acc admin group add acepan newgroup alice

设置组G的访问策略:

acc admin policy set acepan readonly group=G

禁用组G:

acc admin group disable acepan G

删除组G:

acc admin group remove domain G