Archiva

Cannot run Archiva as another user because su is run with option "-" (--login)

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.0-beta-4
  • Fix Version/s: 1.1
  • Component/s: system
  • Labels:
    None
  • Environment:
    # uname -a
    Linux www 2.6.18-5-486 #1 Tue Oct 2 23:38:54 UTC 2007 i686 GNU/Linux
    Debian Etch
  • Patch Submitted:
    Yes
  • Number of attachments :
    1

Description

I am using the script bin/linux-x86-32/run.sh to run Archiva as another user (named archiva). That does not work until I remove the option "" (-login) from the su command. After removing that option, the script works as expected.

Issue Links

Activity

Hide
James William Dumay added a comment -

In the new jetty bundle in Archiva 1.1 this problem does not occur as the command is executed without the login option:

su -m $RUN_AS_USER -c "\"$REALPATH\" $2"
Show
James William Dumay added a comment - In the new jetty bundle in Archiva 1.1 this problem does not occur as the command is executed without the login option:
su -m $RUN_AS_USER -c "\"$REALPATH\" $2"

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: