Welcome, Guest! Log In | Create Account

Warning: Can't synchronize with the repository (/nfs/sf-svn/o/oc/ocfa does not appear to be a Subversion repository.). Look in the Trac log for more information.

In most setups the whole Open Computer Forensics Architecture will run as a single user 'ocfa'. In some situations however it is desirable to let some modules run as a different user. For example a kickstart on a mounted disk image could need root access to be able to read the whole file system.
OcfaLib tries to allow modules to run as different users by making use extensively of group rights for the repository. For this reason any running Ocfa module will need to check for active membership of the ocfa group. To accomodate this process the OcfaGroup class exists. Simply defining an OcfaGroup object is sufficient to do the proper checks. The OcfaGroup constructor will throw when membership requirements are not met.