Submitted by Anonymous (not verified) on Thu, 05/15/2014 - 00:00
Forums

Hi,

I have concerns about how to set up the IceBreak for a production environment, so the system tools are not exposed to unwanted visitors.

Niels Liisberg

Thu, 05/15/2014 - 00:00

Hi,

By default an IceBreak server runs with the BLUEBOXUSR for development. When you switch to production, it is recommenced to also switch the default user profile to WEBGUEST which is a user with very limited access.

By default WEBGUEST is excluded from all features in the IceBreak / system hive.

And you can use the same approach for your application – and this is how IceBreak is set up initially:

/* By default - nothing in icebreak can be used by the WEBGUEST .. unless */
GRTOBJAUT OBJ(&lib/*ALL) OBJTYPE(*PGM) USER(WEBGUEST) AUT(*EXCLUDE) 

/* .. unless the following: - basic web features */
GRTOBJAUT OBJ(&lib/SVC010 ) OBJTYPE(*PGM) USER(WEBGUEST) AUT(*USE)
GRTOBJAUT OBJ(&lib/SVC017 ) OBJTYPE(*PGM) USER(WEBGUEST) AUT(*USE)
GRTOBJAUT OBJ(&lib/SVC911 ) OBJTYPE(*PGM) USER(WEBGUEST) AUT(*USE)

/* .. Or the default login, document and the error handler */ 
GRTOBJAUT OBJ(&lib/SVCLOGON ) OBJTYPE(*PGM) USER(WEBGUEST) AUT(*USE)
GRTOBJAUT OBJ(&lib/index ) OBJTYPE(*PGM) USER(WEBGUEST) AUT(*USE)
GRTOBJAUT OBJ(&lib/SVCDEFAUL2 ) OBJTYPE(*PGM) USER(WEBGUEST) AUT(*USE)

You can also use the same approach for resources on the IFS.

Best regards,
Niels Liisberg