Closed (duplicate)
Project:
Drupal core
Version:
9.3.x-dev
Component:
user.module
Priority:
Normal
Category:
Support request
Assigned:
Issue tags:
Reporter:
Created:
3 Aug 2021 at 06:21 UTC
Updated:
5 Aug 2021 at 12:12 UTC
Jump to comment: Most recent
Comments
Comment #2
heni_deepak commentedwhile I testing the issue. https://www.drupal.org/project/drupal/issues/987978#comment-14180067
I have changed the Administrator role permission then the default user role has never expried. also when I edit the user and remove all roles but user exist default Administrator role.
Comment #3
cilefen commentedI do not understand this bug report. Please post precise steps to reproduce and I also note that here is not the forum for security issues.
Comment #4
longwaveIf this is related to the not-yet-committed patch in #987978: Move "administrator role" setting to new Role Settings form then please post your question in that issue instead, explaining what you thought should happen and what actually happened.
Comment #5
heni_deepak commented@cilefen & @longwave
OK, let's start from the beginning. The default user that is created at the time of Drupal install and configuration. The default user administrator role never expires. If I changed the role of Administrator.
If I have created another role (like RoleForAdmin) and assigned an administrator role then the default user (which is created by default configuration when installing drupal) role never expires as an administrator role.
Comment #6
cilefen commentedI do not understand the comment or what it would mean for a role to expire.
Comment #7
dwwMaybe @heni_deepak is confused about the behavior of UID 1?
The UID 1 user always gets full administrative powers on the site, regardless of role settings...
Comment #8
aaronmchale#540008: Add a container parameter that can remove the special behavior of UID#1 will remove all special privileges from UID 1, which I think will address the primary security concern here; Although I'm also not entirely clear what is being suggested here.
Comment #9
heni_deepak commented@dww you are right.
@aaronmchale also yes, is that right to UID 1 user always gets full administrative powers on the site?
Is that right to stay always keeps the powers?
and if we don't remove the superpowers for UID 1 the what is the role for the Administrator role.
Comment #10
cilefen commentedComment #11
aaronmchale@heni_deepak the issue I linked above will change it so that user ID 1 is no longer a special super admin, it will mean that once that issue is committed (hopefully in time for 9.3), if you remove the administrator role from user ID 1, they will no longer have any administrator permissions and act like any other user.
Comment #12
heni_deepak commented:) Thanks.