The file sharing (JSF-based) application offer a hierarchical view of a file repository similar to file system browsing applications provided by the OS.
This chapter contains the following:
For each service using a relational database, a separate database instance is configured with a default userid and password. The default userid is portal and the password is a random string generated at the time of installation. Change the default password and the access permissions of the properties files containing the password.
Restart Java DB.
See Starting, Stopping, and Disabling the Java DB in Sun Java System Portal Server 7.1 Configuration Guide for more information.
Change the password for the default user, portal, by connecting to the filesharingdb_portal-ID database.
For example, if you are using a GUI like SQuirrel-j, use the SQL editor to execute the following command after connecting to the database:
CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY('derby.authentication.provider', 'BUILTIN'); CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY('derby.connection.requireAuthentication', 'true'); CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY('derby.user.portal', 'your-new-password'); CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY('derby.database.fullAccessUsers', 'portal'); CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY('derby.database.defaultConnectionMode', 'noAccess'); |
Restart Java DB.
See Starting, Stopping, and Disabling the Java DB in Sun Java System Portal Server 7.1 Configuration Guide for more information.
Verify that the password was set correctly by connecting to the filesharingdb_portal-ID database with new password.
For each portal instance:
Refer to the web container's documentation and set the password for the jdbc/FileSharingDB datasource to the new password that was set in step 2.
Open the PortalServer-DataDir/portals/portal-ID/portletapps/filesharing/tokens.properties file and change the password value for the DB_ADMIN_PASSWORD and DB_PASSWORD properties to the new password that you set in step 2.
Change the permissions for the PortalServer-DataDir/portals/portal-ID/portletapps/filesharing/tokens.properties file so that it is readable and writable only by the owner.
For example, type chmod 600 tokens.properties.
Restart the web container.
The file sharing portlet includes the following tokens in the PortalServer-DataDir/portals/portal-ID/portletapps/filesharing/tokens.properties file:
Specifies the type of file repository. By default, file system and database are supported. The default value is Database.
Specifies the absolute directory for the file repository. By default, this is set to PortalServer-DataDir/portals/portal-ID/filesharing.
Specifies the absolute directory for file upload staging. By default, this is set to PortalServer-DataDirtmp.
Specifies the maximum allowed upload size in bytes. By default, this is set to 5000000.
Indicates if the contents of a community repository should be deleted when the community is unprovisioned. The valid values are true or false and by default, this is set to false.
Specifies tokens for src/conf/common.dbadmin.
Specifies tokens for src/conf/surveydb.datasource and web/WEB-INF/sun-web.xml used as configuration for database repository.
Specifies tokens for src/conf/server.classpath file. By default, this is set to derby.lib.location/derbyclient.jar.
Specifies tokens used in web/WEB-INF/classes/log4j.properties file. By default, this is set to PortalServer-DataDir.
Specifies tokens for community management API. By default, this is set to communitymc.