postgresql_passchanger_func.../grants_to_grant.sql

10 lines
390 B
MySQL
Raw Normal View History

2022-01-04 17:46:37 +00:00
-- grant execution on the function
grant execute on function dba.passchanger(_password text) to dodger;
-- only insert is needed to allow audit trace
GRANT INSERT ON TABLE dba.pwdhistory TO dodger;
-- the following permissions are necessary to change the 'VALID UNTIL' date
grant select on pg_catalog.pg_authid to dodger ;
grant update (rolvaliduntil) on pg_catalog.pg_authid to dodger ;