ERPNext Foundation ERPNext Cloud User Manual Blog Discuss Frappé* Donate

Reset Administrator

roles

#1

Hello,
the System Administrator profile does not work anymore.
I do not understand how it is happening.
How can I reset System Administrator?


#2

restore the administrator UserRole using a backup table and restart bench.


#3

cd ~frappe-bench;
bench set-admin-password [newPassword]


#4

Thank you,
I try to see if it is the solution.


#5

Skeples the answer, but there are no passwords or problems with the user, but in practice I can not see the configuration with the system administrator, and therefore I can not access the parameters. I can not even restore the whole system because I entered a lot of data and I understood the problem later.


#6

If you are running a self-hosted instance and have console access, ‘bench reset-perms’ will return your permissions to their default state.


#7

Thank you very much. I will let you know


#8

My problem is more serious.
In practice, the system user administrator (who is root), with whom I log in using the correct password, accesses all documents except the Setup (hence the development functions).

I have tried all types of restoration and all ineffective including those indicated. I do not understand what happened, but even my programmer who installed the system has failed.

Right now I work without a root user.

Can someone help me ?


#9

Can you explain in detail about the Linux user access? If you can access root then u can access everything but u have to switch to the user which you have used to install erpnext.
Or you can reset the password for that user using the command

passwd username

This will ask for new password.
Or you can also navigate to frappe bench folder under root/home/user/frappe-bench

It is always better to give as much as information possible for members to understand the situation and help you. In the beginning of your last reply you said you can access as root but at the end you mentioned “i work without a root user”.

Please be clear and specific about the current issue your facing


#10

I can access everything regularly, with all users. I do not have any abnormal complement of any kind, but when I insert ErpNext with the root admin user, which works regularly, I do not see the configuration menu, even if I write it directly on the link.

Everything I think happened when I was filling up the masks to delineate it as an employee. But of this I’m not sure.
However, the anomaly happened when I was using the Administrator profile with another non-root user.

I had two other non-root users the same profile when it happened that even these do not have access to the configuration. I had to manually recreate it from a new administrator profile to access the setup, but, clearly I can not perform “Development” operations.


#11

Kindly find some professional paid support regarding this.


#12

“clearly I can not perform “Development” operations”

If this is not enabled that may explain your problem

‘bench set-config developer_mode 1’


#13

I have no problem using a paid support. The installation made it a paid support and everything worked regularly.
If I have an indication, I follow it.


#14

I got stuck on same Problem but seems like ERPnext team have no solution for it …


#15

No, the solution exists. It is a certainty.
I still have not solved the problem because we are doing something else.


#16

I performed yesterday the reset indicated, but it did not help. He restored only the icons


#17

I can access everything with all the users and on the whole server.
I also have the psw of the first system installation (Development), but this is when I see I no longer see the setup and I no longer have access to production. In this period we have tried all the solutions indicated in the community and beyond.
I think more than administrator the problem is with the role of administrator


#18

Credo che più che administrator il problema sia con il ruolo di administrator


#19

I think more than administrator the problem is with the role of administrator


#20

I think you disabled the setup module for “All User” which included the administrator.

Check if you can change it and also check if you can access the role permission page and give all rights to the administrator user.

It happens if you play with the role permission and it gets messed up. Now you have to follow the Users Role permission
and the roles permissions doctype access permissions.

Follow it one by one.


Easy Install on Ubuntu 18.04 fails to make a working ERPNext