管理员角色模块仍然相关(Is Admin Role module still relevant)

编程入门 行业动态 更新时间:2024-10-27 09:35:29
管理员角色模块仍然相关(Is Admin Role module still relevant)

我正在按照drupal 5教程建议获取Admin Role模块。 这个模块对于drupal 6仍然有用吗?

drupal 6安装的一部分是创建管理员帐户。 管理员角色的作用是什么? 它是否适用于该帐户并以某种方式改进它,或者它是否创建了完全不同的管理帐户?

I'm following a drupal 5 tutorial that advises to get the Admin Role module. Is this module still useful for drupal 6?

Part of the drupal 6 installation is the creation of an admin account. What does Admin Role do? Does it work on that account and improve it somehow, or does it create an entirely different admin account?

最满意答案

该模块仍然有用 - 尽管我相信它是Drupal 7核心功能的一部分。

AdminRole所做的是创建一个角色,在创建模块时将所有权限添加到角色中。 使用此角色设置的用户可以执行用户1(管理员)可以执行的大部分操作,但不能执行所有操作。 (例如,运行update.php需要用户1,并且没有允许其他用户运行的权限。)

设置管理员角色有一些好处,而不是向每个人分发用户1密码。 一个是,当人们在你的网站上做事情时,他们的用户名被写入看门狗 - 所以找到谁做了什么比看到所有更改记入“管理员”更容易。 另一个原因是,如果您需要撤销或删除用户的一些权限,那么更改其帐户上的哪些角色比向他们提供新帐户并更改管理员密码并传递新密码更容易。

真的,管理员帐户应该被严密锁定并且很少使用 - 最好是让开发人员和用户在他们自己的帐户中工作,并利用权限系统而不是发放王国的密钥。

The module is still useful - although I believe it's included as part of Drupal 7's core functionality.

What AdminRole does is create a role which will have all permissions added to it as modules are created. Users set up with this role then can do most of what the user 1 (admin) can do, but not everything. (For one, running the update.php requires user 1 and there's no permission that allows another user to run it.)

There's some benefits to setting up an admin role as opposed to handing out user 1 passwords to everyone. One is that as people do things on your site, their user name gets written to the watchdog - so it's easier to find who did something rather than seeing all changes credited to 'admin'. Another is that if you need to revoke or remove a few permissions from a user, it's easier to change which roles are on their account than to give them a new account and change the admin password and pass the new password around.

Really, the admin account should be locked up tightly and used rarely - better to have developers and users working in their own accounts and taking advantage of the permissions system than giving out the keys to the kingdom.

更多推荐

本文发布于:2023-08-04 14:55:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1417465.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:模块   角色   管理员   Admin   module

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!