Issue Details (XML | Word | Printable)

Key: CONTINUUM-554
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Emmanuel Venisse
Reporter: Rainer Pruy
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Continuum

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

Created: 10/Jan/06 06:07 AM   Updated: 15/Mar/06 09:45 AM   Resolved: 15/Mar/06 09:45 AM
Component/s: Core system
Affects Version/s: 1.0.2
Fix Version/s: 1.0.3

Time Tracking:
Not Specified

File Attachments: 1. File DIFF (1 kB)

Environment: any unix like OS running continuum as non root user.

Complexity: Intermediate


 Description  « Hide

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.



Martin van den Bemt added a comment - 15/Mar/06 07:24 AM

I can confirm this patch works like a charm..


Emmanuel Venisse added a comment - 15/Mar/06 09:45 AM

Applied. Thanks.