Closed Bug 36007 Opened 24 years ago Closed 24 years ago

Mozilla crashes when trying to install PSM as non-root user.

Categories

(Core Graveyard :: Security: UI, enhancement, P3)

1.0 Branch
x86
Linux
enhancement

Tracking

(Not tracked)

VERIFIED DUPLICATE of bug 49507

People

(Reporter: mozilla, Assigned: ddrinan0264)

Details

(Keywords: crash, Whiteboard: [nsbeta3-][rtm-])

Overview Description:
A way to install PSM on a filesystem that doesn't have write permissions as a
normal user is needed.

Steps to Reproduce:
1) As a root (Administrator) user unpack mozilla and make sure it is owned by root
2) Start mozilla as a normal user
3) Try to install PSM

Actual Results:
Mozilla segfaults

Expected Results:
Either give a dialog box that says no permission to install or allow the user to
enter the root password to install it.

Reproducibility:
everytime

Build Date & Platform Bug Found:
2000041617 Linux i686

Additional Builds and Platforms Tested On:
any OS with directory permissions

Additional Information:
Possibly move the default install directory for PSM to the profile directory?
After talking this over on irc with some friends, I decided that what I was 
asking didn't really make since.

Updating the summary.

PSM needs to give a warning if it doesn't have write permission to the 
mozilla/package directory.  Currently it just crashes with no explanation of 
what was wrong.  I know several people have been bit by this (including me) 
until I realized that I wasn't root.  Something to the effect of "Error:  No 
write permission to the mozilla directory" and then cleanly quit the install 
without crashing.
Summary: [RFE] Ability to install PSM as non-root user → Mozilla crashes when trying to install PSM as non-root user.
Adding crash keyword
Keywords: crash
Adding nsbeta3 keyword.
Assignee: lord → ddrinan
Keywords: nsbeta3
OS: All → Linux
Hardware: All → PC
Version: 1.01 → 1.3
Marking nsbeta3- for the commercial build.  PSM is always installed with
seamonkey, so this bug is moot for commercial.
Whiteboard: [nsbeta3-]
Not really moot for commercial. If later on the customer updates PSM this bug
will occur.
Keywords: rtm
Changing QA contact to nitinp
QA Contact: lord → nitinp
On my system (SuSE Linux 6.4) it hangs when I run it as a user after I installed
it as root. Output is just this:

mi@ynis:/opt/mozilla/package > ./mozilla
./run-mozilla.sh ./mozilla-bin
MOZILLA_FIVE_HOME=.
  LD_LIBRARY_PATH=.
     LIBRARY_PATH=.:./components
       SHLIB_PATH=.
          LIBPATH=.
       ADDON_PATH=.
      MOZ_PROGRAM=./mozilla-bin
      MOZ_TOOLKIT=
        moz_debug=0
     moz_debugger=
Sorry, missed to read the "PSM" - forget my comment.
rtm-, comments indicate that the RTM build is not itself broken.  This is a good 
thing to get fixed on the trunk though.
Whiteboard: [nsbeta3-] → [nsbeta3-][rtm-]
This bug appears to be outdated at this point.  Now when you try to install psm
as a non-root user, it fails with an error code (tested today with latest
nightly build on linux).  The error code isn't helpful, but mozilla didn't crash.
Mass reassigning nitinp's bugs to me.
QA Contact: nitinp → junruh
Isn't the real problem here with the auto-install mechanism?  Shouldn't that
check permissions and adequately handle non-permissioned attempts to auto-install?

For example: "You must have write access to install directory to use auto-install."
This bug looks like a dupe of bug 49507.

FYI, see http://tool-man.org/docs/HOWTO/Mozilla-Nightly-Install-HOWTO for a
description of a workaround to this bug and bug 49507.

*** This bug has been marked as a duplicate of 49507 ***
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
Verified dupe.
Status: RESOLVED → VERIFIED
Product: PSM → Core
Version: psm1.3 → 1.0 Branch
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.