Uploaded image for project: 'Continuum'
  1. Continuum
  2. CONTINUUM-554

Fix RUN_AS_USER feature for UNIX environments (linux, solaris,macos)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.2
    • 1.0.3
    • Core system
    • None
    • any unix like OS running continuum as non root user.

    Description

      When RUN_AS_USER is specified in the run.sh script continuum will not start.

      This is caused by a change in the current directory resulting from calling "su - .....".
      In the regular (non RUN_AS_USER) case, the current directory is changed to the os specific calling directory "bin/<OS>/".
      After calling "su - ..." the current directory is the home directory of the target user.

      For fixing the following two possibilities come to mind:

      1: change to the correct directory within the command passed to "su"
      (See the enclosed patch for bin/linux/run.sh" a similar patch may be applied for solaris and macos)

      2. avoid using "su - "
      Calling "su" without "-" option will preserve the current environment and not change the current directory.

      I personally prefer method '1'. Usually the run user will be a dedicated user for running continuum. Using "-" option will establish a default environment for this user. Theat is easy to be controlled and configured and avoids conflicts with other applications.

      Attachments

        1. DIFF
          1 kB
          Rainer Pruy

        Activity

          People

            evenisse Emmanuel Venisse
            pruy Rainer Pruy
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: