This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 19617 - Install modules as root after logging in as a non-priviledged user
Summary: Install modules as root after logging in as a non-priviledged user
Status: RESOLVED DUPLICATE of bug 12506
Alias: None
Product: platform
Classification: Unclassified
Component: Autoupdate (show other bugs)
Version: 3.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: akemr
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-01-20 10:12 UTC by Avi Kivity
Modified: 2002-01-30 09:20 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Avi Kivity 2002-01-20 10:12:45 UTC
A typical autoupdate session for me is:

- start autoupdate
- wow, lots of new goodies, select them all
- select 'global' so the modules are installed in the installation directory
- remember I'm not root, exit netbeans, su, start netbeans, etc

Now this could be resolved by having netbeans ask for a password and su. Alternatively, 
there could be an option 'Create an upgrade package' which would create a jar 
containing all the updates along with a small installer to install them in the netbeans 
directory.

So, my scenario would look like:
- start netbeans etc
- select the modules I like, and instead of installing them, choose 'create installer'
- su -c 'java -jar the.new.installer.jar'

For an enterprise setting, this is even more useful. Someone downloads, creates the 
installer, and distributes it via email; others simply apply it.

I am not familiar with the module installation process, but I believe it consists mostly of 
unpacking jars; if so, the installer should be trivial.
Comment 1 akemr 2002-01-24 14:03:31 UTC
There is already simple solution: just select "Install later" option on 
the last page of AU wizard, click Finish, exit NB, su, start NB.

Then Updater will start (before IDE appears) and updates modules
as root.
Comment 2 akemr 2002-01-24 14:13:57 UTC
Ooops, I forgot one step.. so proper steps are:

1. select "Install later" option on the last page of AU wizard
2. click Finish
3. exit NB
4. su
5. MOVE all content of userdir/update/download to 
   installdir/update/download
6. start NB.

I hope it can help. Please reopen if needed.

Comment 3 akemr 2002-01-30 09:19:21 UTC
Reopen to mark as duplicate
Comment 4 akemr 2002-01-30 09:20:32 UTC
Marking as duplicate of #12506 - very similar request

*** This issue has been marked as a duplicate of 12506 ***