"Permission denied" error when starting the SpectroSERVER using the startSS.pl script

Document ID : KB000006929
Last Modified Date : 14/02/2018
Show Technical Document Details
Issue:

Received the following error when trying to start the SpectroSERVER process using the $SPECROOT/bin/startSS.pl script on Linux:

 

Couldn't exec process: /spectrum/SS/SpectroSERVER: Permission denied 

Environment:
Spectrum running on Linux
Cause:

There are a couple of reasons for this error:

1. You are starting the SpectroSERVER with a user that does not have permissions to start the SpectroSERVER. Spectrum should be started and stopped as the OS user that owns the Spectrum installation. If you are not sure which user that is, there are a couple of ways to find which user owns the Spectrum installation:

    a. cd to the $SPECROOT directory and enter the "la -al" command. The user displayed that owns these files and directories is the user that owns this Spectrum installation

    b. View the initial_user_model_name parameter in the $SPECROOT/SS/.vnmrc file. This initial user model name is the user specified to own the Spectrum installation at install time.

2. The permissions on the $SPECROOT/SS/SpectroSERVER binary are incorrect. The SpectroSERVER binary should be owned by root with the group owner being the same group the Spectrum installation owner belongs to. In addition, the setuid (which stands for set user ID on execution) must be set on the SpectroSERVER binary. 

-rwsr-x---.   1 root    spectrum   12841 May 10 14:48 SpectroSERVER

Resolution:

1. Ensure you are starting the SpectroSERVER as the user that owns the Spectrum installation.

2. Ensure the permissions are correct on the $SPECROOT/SS/SpectroSERVER binary.