[=Tahoma]Hi,

If I have a non-privileged user: [/FONT][FONT=Tahoma]select * from iiusers where user_name='geraintj'\g[/FONT] [FONT=Tahoma]Executing . . .[/FONT] [FONT=Tahoma][FONT="]┌────────────────────────────────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬─────────────────────────┬────────────────────────────────┬────────┬────────────────────────────────┬─────────────┬─────────────┬─────────────┕[/FONT][/FONT] [FONT=Tahoma][FONT="]│[/FONT][FONT=]user_name [/FONT] [FONT="]│[/FONT][FONT=Calibri]create[/FONT][FONT="]│[/FONT][FONT=Calibri]trace [/FONT][FONT="]│[/FONT][FONT=Calibri]audit_[/FONT][FONT="]│[/FONT][FONT=Calibri]securi[/FONT][FONT="]│[/FONT][FONT=Calibri]mainta[/FONT][FONT="]│[/FONT][FONT=Calibri]operat[/FONT][FONT="]│[/FONT][FONT=Calibri]mainta[/FONT][FONT="]│[/FONT][FONT=Calibri]mainta[/FONT][FONT="]│[/FONT][FONT=Calibri]audito[/FONT][FONT="]│[/FONT][FONT=Calibri]audit_[/FONT][FONT="]│[/FONT][FONT=Calibri]expire_date [/FONT][FONT="]│[/FONT][FONT=Calibri]profile_name [/FONT][FONT="]│[/FONT][FONT=Calibri]lim_sec_[/FONT][FONT="]│[/FONT][FONT=Calibri]default_group [/FONT][FONT="]│[/FONT][FONT=Calibri]internal_stat[/FONT][FONT="]│[/FONT][FONT=Calibri]internal_def_[/FONT][FONT="]│[/FONT][FONT=Calibri]internal_flag[/FONT][FONT="]│[/FONT][/FONT] [FONT=Tahoma][FONT="]├────────────────────────────────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼─────────────────────────┼────────────────────────────────┼────────┼────────────────────────────────┼─────────────┼─────────────┼─────────────┤[/FONT][/FONT] [FONT=Tahoma][FONT="]│[/FONT][FONT=Calibri]geraintj [/FONT][FONT="]│[/FONT][FONT=Calibri]N [/FONT][FONT="]│[/FONT][FONT=Calibri]N [/FONT][FONT="]│[/FONT][FONT=Calibri]N [/FONT][FONT="]│[/FONT][FONT=Calibri]N [/FONT][FONT="]│[/FONT][FONT=Calibri]N [/FONT][FONT="]│[/FONT][FONT=Calibri]N [/FONT][FONT="]│[/FONT][FONT=Calibri]N [/FONT][FONT="]│[/FONT][FONT=Calibri]N [/FONT][FONT="]│[/FONT][FONT=Calibri]N [/FONT][FONT="]│[/FONT][FONT=Calibri]N [/FONT][FONT="]│[/FONT][FONT="]│[/FONT][FONT="]│[/FONT][FONT="]│[/FONT][FONT="]│[/FONT][FONT=Calibri] 0[/FONT][FONT="]│[/FONT][FONT=Calibri] 0[/FONT][FONT="]│[/FONT][FONT=Calibri] 16404[/FONT][FONT="]│[/FONT][/FONT] [FONT=Tahoma][FONT="]└────────────────────────────────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴─────────────────────────┴────────────────────────────────┴────────┴────────────────────────────────┴─────────────┴─────────────┴─────────────┘[/FONT][/FONT] [FONT=Tahoma](1 row)[/FONT] [FONT=Tahoma]continue[/FONT] [FONT=Tahoma]* select * from iidbprivileges where user='geraintj';\g [/FONT] [FONT=Tahoma]Executing . . .[/FONT] [FONT=Tahoma][FONT="]┌────────────────────────────────┬────────────────────────────────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬─────────────┬──────┬─────────────┬──────┬──────┬──────┬──────┬─────────────┬──────┬─────────────┬──────┬─────────────┕[/FONT][/FONT] [FONT=Tahoma][FONT="]│[/FONT]database_name [FONT="]│[/FONT][FONT=Calibri]grantee_name [/FONT][FONT="]│[/FONT][FONT=Calibri]gr_typ[/FONT][FONT="]│[/FONT][FONT=Calibri]cr_tab[/FONT][FONT="]│[/FONT][FONT=Calibri]cr_pro[/FONT][FONT="]│[/FONT][FONT=Calibri]lk_mod[/FONT][FONT="]│[/FONT][FONT=Calibri]db_acc[/FONT][FONT="]│[/FONT][FONT=Calibri]up_sys[/FONT][FONT="]│[/FONT][FONT=Calibri]db_adm[/FONT][FONT="]│[/FONT][FONT=Calibri]global[/FONT][FONT="]│[/FONT][FONT=Calibri]qry_io_lim [/FONT][FONT="]│[/FONT][FONT=Calibri]qry_io[/FONT][FONT="]│[/FONT][FONT=Calibri]qry_row_lim [/FONT][FONT="]│[/FONT][FONT=Calibri]qry_ro[/FONT][FONT="]│[/FONT][FONT=Calibri]sel_sy[/FONT][FONT="]│[/FONT][FONT=Calibri]tbl_st[/FONT][FONT="]│[/FONT][FONT=Calibri]idle_t[/FONT][FONT="]│[/FONT][FONT=Calibri]idle_time_lim[/FONT][FONT="]│[/FONT][FONT=Calibri]conn_t[/FONT][FONT="]│[/FONT][FONT=Calibri]conn_time_lim[/FONT][FONT="]│[/FONT][FONT=Calibri]sess_p[/FONT][FONT="]│[/FONT][FONT=Calibri]sess_prio_lim[/FONT][FONT="]│[/FONT][/FONT] [FONT=Tahoma][FONT="]├────────────────────────────────┼────────────────────────────────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼─────────────┼──────┼─────────────┼──────┼──────┼──────┼──────┼─────────────┼──────┼─────────────┼──────┼─────────────┤[/FONT][/FONT] [FONT=Tahoma][FONT="]└────────────────────────────────┴────────────────────────────────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴─────────────┴──────┴─────────────┴──────┴──────┴──────┴──────┴─────────────┴──────┴─────────────┴──────┴─────────────┘[/FONT][/FONT] [FONT=Tahoma](0 rows)[/FONT][FONT=Tahoma] Then as ingres, I create a database as that user: [/FONT][FONT=Tahoma]$ createdb -ugeraintj gjtest1[/FONT] [FONT=Tahoma]Creating database 'gjtest1' . . .[/FONT] [FONT=Tahoma] Creating DBMS Catalogs . . . [/FONT] [FONT=Tahoma] Modifying DBMS System Catalogs . . . [/FONT] [FONT=Tahoma] Creating Standard Catalog Interface . . . [/FONT] [FONT=Tahoma] Creating Front-end System Catalogs . . . [/FONT] [FONT=Tahoma]Creation of database 'gjtest1' completed successfully.[/FONT][FONT=Tahoma] Then the user is the DBA for that database: [/FONT][FONT=Tahoma]$ sql gjtest1[/FONT] [FONT=Tahoma]INGRES MONITOR Copyright 2010 Ingres Corporation[/FONT] [FONT=Tahoma]Ingres Linux Version II 10.0.0 (a64.lnx/132)NPTL login[/FONT] [FONT=Tahoma]Tue Aug 9 10:12:43 2011[/FONT] [FONT=Tahoma]Enter \g to execute commands, "help help\g" for help, \q to quit[/FONT] [FONT=Tahoma]continue[/FONT] [FONT=Tahoma]* select dbmsinfo('dba')\g[/FONT] [FONT=Tahoma]Executing . . . [/FONT] [FONT=Tahoma][FONT="]┌────────────────────────────────────────────────────────────────┕[/FONT][/FONT] [FONT=Tahoma][FONT="]│[/FONT][FONT=Calibri]col1 [/FONT][FONT="]│[/FONT][/FONT] [FONT=Tahoma][FONT="]├────────────────────────────────────────────────────────────────┤[/FONT][/FONT] [FONT=Tahoma][FONT="]│[/FONT][FONT=Calibri]geraintj [/FONT] [FONT="]│[/FONT][/FONT] [FONT=Tahoma][FONT="]└────────────────────────────────────────────────────────────────┘[/FONT][/FONT] [FONT=Tahoma](1 row)[/FONT][FONT=Tahoma] So logging in as that user, can we run sysmod? No : $ sysmod gjtest1 E_US0002 User does not have permission to use one of the flags given. (Tue Aug 9 10:13:15 2011) Sysmod of database 'gjtest1' abnormally terminated.If I then connect to iidbdb as ingres and give the user createdb privileges: [/FONT][FONT="][FONT=Tahoma][SIZE=2]alter user geraintj add privileges (createdb);[/SIZE][/FONT][/FONT][FONT="][FONT=Tahoma][SIZE=2] The user is now able to run sysmod: $ sysmod gjtest1 Sysmoding database 'gjtest1' . . . Modifying 'iiattribute' . . . Modifying 'iidevices' . . . Modifying 'iiindex' . . . (etc etc) Sysmod of database 'gjtest1' completed successfully.[/SIZE][/FONT] [FONT=Tahoma][SIZE=2]Although this shows a slightly unusual case where the DBA doesn't have the necessary permission to create a database, I'm inclined to suspect a bug, either with the code or with the documentation (command reference guide says for sysmod "Permission required: DBA or system administrator"). Any thoughts? Cheers, Geraint[/SIZE][/FONT] [/FONT]