how to reset the admin password noc
TRANSCRIPT
How to reset the admin password
If you forget the web interface password for the user "admin", you can reset it as follows:
In GroundWork Monitor 6.6.x:
To reset or change the password for users authenticated against the GroundWork jbossportal database, run the following command:
source /usr/local/groundwork/scripts/setenv.sh /etc/init.d/groundwork stop gwservices export PGPASSWORD=jboss psql -U jboss [-h localhost] -d jbossportal -c " UPDATE jbp_users SET jbp_password=md5('password') WHERE jbp_uname='username' " export -n PGPASSWORD /etc/init.d/groundwork start gwservices
Where:
• 'password' is replaced with the password • 'username' is replaced with the user name • 'localhost' is replaced with the database server name (the [-h localhost] part is optional if you are
on the host where the database exists; it is necessary to identify the server if that is on a different server)
Example: Resetting admin's password to: admin
source /usr/local/groundwork/scripts/setenv.sh /etc/init.d/groundwork stop gwservices export PGPASSWORD=jboss psql -U jboss -d jbossportal -c " UPDATE jbp_users SET jbp_password=md5('admin') WHERE jbp_uname='admin' " export -n PGPASSWORD /etc/init.d/groundwork start gwservices
This will not affect the password for other users. It will however log out all users.
In GroundWork Monitor 6.0-6.5:
To reset or change the password for users authenticated against the GroundWork jbossportal database, run the following command:
source /usr/local/groundwork/scripts/setenv.sh /etc/init.d/groundwork stop gwservices mysql -ujboss -pjboss jbossportal -e " UPDATE jbp_users SET jbp_password=md5('password') WHERE jbp_uname='username' " /etc/init.d/groundwork start gwservices
Where:
• 'password' is replaced with the password • 'username' is replaced with the user name
Example: Resetting admin's password to: admin
source /usr/local/groundwork/scripts/setenv.sh /etc/init.d/groundwork stop gwservices mysql -ujboss -pjboss jbossportal -e " UPDATE jbp_users SET jbp_password=md5('admin') WHERE jbp_uname='admin' " /etc/init.d/groundwork start gwservices
In GroundWork Monitor 5.x:
To reset or change the password for users authenticated against the GroundWork guava database, run the following command:
mysql -uguava -pgwrk guava -e " UPDATE guava_users SET password = md5('password'), password_expire = '0000-00-00', password_change = '0' WHERE username = 'username' "
Where:
• 'password' is replaced with the password • 'username' is replaced with the user name
Example: Resetting admin's password to: admin
mysql -uguava -pgwrk guava -e " UPDATE guava_users SET password = md5('admin'), password_expire = '0 000-00-00', password_change = '0' WHERE username = 'admin' "