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 161667 - Can not run application if IDE was installed by root
Summary: Can not run application if IDE was installed by root
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Profile (show other bugs)
Version: 6.x
Hardware: All Linux
: P1 blocker (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-01 13:28 UTC by Alexander Pepin
Modified: 2009-04-02 07:29 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Pepin 2009-04-01 13:28:01 UTC
Steps to reproduce:
- login as 'root' (or use 'sudo') and install Netbeans
- create any application (e.g. Welcome)
- run application
Result: Output window prints "dorun.sh: Permission denied"
Comment 1 Andrew Krasny 2009-04-01 13:35:37 UTC
It is a problem with files permissions. 


I would agree that this is a show stopped for M3. Still 2 workarounds exist - 
1 - run IDE as root (so permissions will be changed at runtime)
2 - do #chmod -R a+x dlight1/bin/ (as root)

fix is ready - build.xml changed to make chmod on required files. 
Comment 2 Andrew Krasny 2009-04-01 13:41:57 UTC
Fixed with http://hg.netbeans.org/cnd-main/rev/2b35c9431ac0 in cnd-main
Comment 3 Alexander Pepin 2009-04-01 14:27:48 UTC
verified in dev build.
please push the fix into m3 clone
Comment 4 Andrew Krasny 2009-04-01 14:32:04 UTC
Also pushed to release67_m3 (http://hg.netbeans.org/release67_m3/rev/5825708dd1ca)
Comment 5 Quality Engineering 2009-04-02 07:29:20 UTC
Integrated into 'main-golden', will be available in build *200904020200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/2b35c9431ac0
User: Andrew Krasny <akrasny@netbeans.org>
Log: #161667 cannot run application if IDE was installed by root