JavaScript is not currently enabled, but is required for full
CodeSonar manual search and browse functionality.
If you are viewing this file in your hub's Web GUI, enable
JavaScript in your browser: you will also need it for GUI
functionality.
If you opened this file directly from disk, your browser may be
directly suppressing JavaScript functionality: certain browsers
perform this suppression on local files (but not files delivered by
web servers) for security reasons.
-
If you access the manual through the hub's Web GUI, the
functionality will not be suppressed because the hub is a web
server.
-
Alternatively, your browser may allow you to explicitly
disable the security setting that suppresses functionality. See
the CodeSonar
FAQ for more information.
Task: Start the hub service as the local system (Windows
only)
On Windows systems, by default, the CodeSonar hub runs as a service
"owned" by the user who originally created the hub.
This page provides instructions for switching ownership to the
local system account (SYSTEM).
On Windows systems, by default, the CodeSonar hub runs as a service "owned"
by the user who originally created the hub.
In some cases you may prefer that the service belongs to the local
system acount (SYSTEM) rather than a
particular user. In particular, the local system account does not
need to run with a given username and password. This means that if
the hub creator leaves the company, or their password changes, no
changes to the hub are required. It also means that the hub can be
administered by anyone with administrator rights on the system.
Note that there are also downsides to this approach.
- SYSTEM has strong privileges.
Running as SYSTEM goes against the
Principle of Least Privilege.
- It will be less obvious which human user is responsible for the
hub.
- You will typically need to switch to the SYSTEM account in order to perform operations
on the files in the hub directory.
This page provides instructions for switching ownership of the
CodeSonar hub service to the SYSTEM
account. There are two main parts to this process.
- Part 1: Give the SYSTEM account control over the hub
directory.
- Part 2: Set the hub service to start as
the SYSTEM account.
In order to run the hub service, the SYSTEM account will need full permissions on the
hub directory. To
make sure it has these permissions, do the following.
- Use the Windows Explorer to locate your hub directory.
- Right-click on the directory icon and select Properties from
the menu that opens.
The <hubdirname> Properties dialog will
open.
Check the cited <hubdirname> in the dialog header to
make sure you are setting permissions for the correct
directory.
- Switch to the Security tab, then click the the
Edit button.
The Permissions for <hubdirname> dialog will
open.
- Check: SYSTEM does already
appear in the list of Group or user names?
- YES: go on to the next step.
- NO: Add it now:
- Click the Add button.
The Select User, Computer, Service Account, or Group
dialog will open.
- Enter SYSTEM in the
Enter object name to select field and click the
Check Names button.
If there is no such account, you will see an error dialog.
Use the information in the dialog to resolve the error. In
particular, you may need to make sure the "Built-in
security principal" object type is selected.
- Once the SYSTEM name
is successfully entered, click OK.
You will be returned to the Permissions for
<hubdirname> dialog.
- Select SYSTEM, then use the
checkboxes in the Permissions for SYSTEM field to allow Full
Control of the directory and click OK.
You will be returned to the <hubdirname>
Properties dialog.
- In the the <hubdirname> Properties dialog,
check to make sure that there is now an entry for SYSTEM in the Group or user names field, and
that selecting this entry shows that SYSTEM has full permissions.
Once you are satisfied, click OK.
Once you have ensured that the SYSTEM account has full control over the hub
directory, you can make it the "owner" of the hub
service.
- Open the Services Control Panel:
- Control Panel / Administrative Tools /
Services
- Locate the hub service in the table of services.
- Right-click on the hub service name, and select
Properties from the menu that opens.
A properties dialog for the hub service will open.
- Select the Log On tab of the dialog.
- Select Local System Account.
- Click OK.
The hub service will now run under the local system account
(SYSTEM).