admin管理员组文章数量:1023758
I've a question about user role in WordPress.
After new user already registered. They can access with superadmin and customer role.
They can access to /wp-admin/, create blog, etc..
For my understanding, new user should get only 1 role, such as "customer".
I tried to investigate in my website. All user were assigned 2 roles: "customer" and "superadmin".
I think my website has been attacked by hacker.
How can I block them and how can I fix the user role issues.
Thank you so much
I've a question about user role in WordPress.
After new user already registered. They can access with superadmin and customer role.
They can access to /wp-admin/, create blog, etc..
For my understanding, new user should get only 1 role, such as "customer".
I tried to investigate in my website. All user were assigned 2 roles: "customer" and "superadmin".
I think my website has been attacked by hacker.
How can I block them and how can I fix the user role issues.
Thank you so much
Share Improve this question edited Apr 12, 2019 at 11:50 fuxia♦ 107k39 gold badges255 silver badges459 bronze badges asked Apr 12, 2019 at 11:38 Seksit YathakarnSeksit Yathakarn 111 bronze badge1 Answer
Reset to default 0To restore super admin to just the admin
username:
<?php update_site_option( 'site_admins', array('admin') ); ?>
Place a PHP file with this line in your /wp-content/mu-plugins/
directory and access any site URL. Once done you can delete the file.
Alternative you can edit the site_admins
key directly in the wp_sitemeta
table (but the first is easier as it will be serialized data.)
You probably want to check your default_role
options also, as well as checking for other user role and capabilities in case they have been changed too.
I've a question about user role in WordPress.
After new user already registered. They can access with superadmin and customer role.
They can access to /wp-admin/, create blog, etc..
For my understanding, new user should get only 1 role, such as "customer".
I tried to investigate in my website. All user were assigned 2 roles: "customer" and "superadmin".
I think my website has been attacked by hacker.
How can I block them and how can I fix the user role issues.
Thank you so much
I've a question about user role in WordPress.
After new user already registered. They can access with superadmin and customer role.
They can access to /wp-admin/, create blog, etc..
For my understanding, new user should get only 1 role, such as "customer".
I tried to investigate in my website. All user were assigned 2 roles: "customer" and "superadmin".
I think my website has been attacked by hacker.
How can I block them and how can I fix the user role issues.
Thank you so much
Share Improve this question edited Apr 12, 2019 at 11:50 fuxia♦ 107k39 gold badges255 silver badges459 bronze badges asked Apr 12, 2019 at 11:38 Seksit YathakarnSeksit Yathakarn 111 bronze badge1 Answer
Reset to default 0To restore super admin to just the admin
username:
<?php update_site_option( 'site_admins', array('admin') ); ?>
Place a PHP file with this line in your /wp-content/mu-plugins/
directory and access any site URL. Once done you can delete the file.
Alternative you can edit the site_admins
key directly in the wp_sitemeta
table (but the first is easier as it will be serialized data.)
You probably want to check your default_role
options also, as well as checking for other user role and capabilities in case they have been changed too.
本文标签: hackedNew user is assigned 2 roles customer and superadmin
版权声明:本文标题:hacked - New user is assigned 2 roles: customer and superadmin 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745595974a2158171.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论