donglue1886 2012-03-03 14:52
浏览 103
已采纳

用户生成文件的权限管理

I'm currently working on a Website, which should enable users to host files like pictures and documents. I got a groups and user based Rightsmanagement in Place, but it does not quite fit this concept of groups and users.

For example:

A User uploads a file which should be collaborated on by a small group of 2-3 users. This group is dynamic and they should only get access to this one File. Another Group called Staff should be able to view it but not able to edit or delete it.

Another User, different from the First, also uploads the File, but only wants Staff to edit it and make it accessible to all users.

Effectively I would end up with many thousands of groups with many redundant rights. Is there any better approach to this?

Thanks

  • 写回答

2条回答 默认 最新

  • doushu9253 2012-03-03 15:28
    关注

    I think you can use something like "group leader" - first registered user for specyfic group. You can use his ID as Group ID (to reduce table count and avoid mess in table with groups without users).

    If you want information about best approach - read about file rights management in Unix (standard or ACL, if you need multiple groups on user).

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件
  • ¥15 ubuntu虚拟机打包apk错误
  • ¥199 rust编程架构设计的方案 有偿
  • ¥15 回答4f系统的像差计算
  • ¥15 java如何提取出pdf里的文字?
  • ¥100 求三轴之间相互配合画圆以及直线的算法
  • ¥100 c语言,请帮蒟蒻写一个题的范例作参考
  • ¥15 名为“Product”的列已属于此 DataTable
  • ¥15 安卓adb backup备份应用数据失败
  • ¥15 eclipse运行项目时遇到的问题