# Running the Network Server with a security manager

If you start the Network Server without specifying a security manager, the Network Server installs a default Java security manager that enforces a Basic policy.

You are encouraged to customize this policy to fit the security needs of your application and its runtime environment.

You may also run the Network Server without a security manager, although this is not recommended.

The default policy is used if you boot the Network Server as your VM's entry point, using a command like the following:

    java org.apache.derby.drda.NetworkServerControl start ...

Some of your application code may run as procedures and functions that you have declared using the CREATE PROCEDURE and CREATE FUNCTION statements. You will need to add privileged blocks to your declared procedures and functions if they perform sensitive operations, such as file and network I/O, classloading, system property reading, and the like.

The Network Server attempts to install a security manager only if you start the server as the entry point of your VM. The Network Server will not attempt to install a security manager if you start the server from your application using the programmatic API described in "Starting the Network Server from a Java application" in the Derby Server and Administration Guide.

Parent topic: Configuring Java security
Related concepts
Using a Java security policy file
Running embedded Derby with a security manager
Related tasks
Running the Network Server without a security manager
Related reference
Basic security policy template
Sample customized Java security policy file