itgroup Posted August 17, 2016 Share Posted August 17, 2016 I was experimenting with roles and noticed that Superuser only had ROLE_USER.I removed ROLE_USER and added ROLE_SUPERUSERNow when I log in, I don't have permission to view anything nor do I have access to the Manage tab.?????How is this even possible? Shouldn't superuser always have access? Is this just bad design? How do I fix this? Can I add/remove roles from the db. If so, can you please tell me how? Link to comment Share on other sites More sharing options...
Solution itgroup Posted August 18, 2016 Author Solution Share Posted August 18, 2016 SOLVED: For other users out there, superuser, and every other user needs ROLE_USER to function.I didn't have a dbuser password so:Dropped into user postgres to find pg_hba.conf (for me it was in /var/lib/pgsql93/data/pg_hba.conf)Added this to the first line: local all all trustlocal all all trustlocal all all trustlocal all all trustlocal all all trust (security alert!! this needs to be reverted back right away when you are done - you might want to use whitelisted IPs only in your firewall config when doing this)psql -U postgresgave postgres a new password (and this caused me problems I'm still working on)connect jasperserverUPDATE jiuserrole SET roleid = 5 WHERE userid = 10;Now superuser is back to ROLE_USER Now I have to figure out where to add the new password for postgres in the relevant configs because Jasper is now not working due to that changed password. EDIT: Regarding #4, the original password for postgres is ... drumroll .... "postgres". Link to comment Share on other sites More sharing options...
marianol Posted August 22, 2016 Share Posted August 22, 2016 Re: #4 and the problems you caused, that is bacause your JasperServer can no longer access the repository, go to /webapps/jasperserver-pro/META-INF/context.xml and change the password for the jdbc/jasperserver JNDI connection properies in that XML file and restart the server :) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now