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.
[ JDK VERSION : 1.7.0_45 ] STEPS: * Java SE 7 Update 55 * Install NetBeans IDE with gksu ./netbeans-8.0-javase-linux.sh * Start NetBeans IDE from Ubuntu user account * As this doesn't work, start NetBeans IDE with gksudo /bin/sh "/usr/local/netbeans-8.0/bin/netbeans" ACTUAL: Wrong root ownership of files in user cachedir EXPECTED: NetBeans IDE should start out of the box from user account. WORKAROUND: Manually repair ownership in user cachedir with chown user:user -hR /home/user/.cache/netbeans
Created attachment 147555 [details] NetBeans log
ls -l /home/user/.cache/netbeans/8.0 insgesamt 29184 -rw-r--r-- 1 root root 196 Mai 27 01:42 all-clusters.dat -rw-r--r-- 1 root root 121598 Mai 27 01:42 all-files.dat -rw-r--r-- 1 root root 220872 Mai 27 01:42 all-installer.dat -rw-r--r-- 1 root root 1232622 Mai 27 01:42 all-layers.dat -rw-r--r-- 1 root root 0 Mai 27 01:42 all-local-layers.dat -rw-r--r-- 1 root root 983293 Mai 27 01:42 all-manifests.dat -rw-r--r-- 1 root root 448903 Mai 27 01:42 all-modules.dat -rw-r--r-- 1 root root 26647278 Mai 27 01:42 all-resources.dat drwxrwxr-x 3 user user 4096 Mai 27 00:16 catalogcache drwxrwxr-x 2 user user 4096 Mai 27 00:16 lastModified -rw-r--r-- 1 root root 33988 Mai 27 01:42 localeVariants drwxr-xr-x 5 root root 4096 Mai 27 01:43 netigso -rw-r--r-- 1 root root 32029 Mai 27 01:42 netigso-bundles -rw-r--r-- 1 root root 2 Mai 27 01:42 package-attrs.dat -rw-r--r-- 1 root root 120099 Mai 27 01:42 splash.png drwxrwxr-x 2 user user 4096 Mai 27 00:19 svncache drwxrwxr-x 3 user user 4096 Mai 27 00:16 welcome ls -l /home/user/.cache/netbeans/8.0/netigso insgesamt 12 drwxr-xr-x 3 root root 4096 Mai 27 01:43 org.eclipse.core.runtime drwxr-xr-x 3 root root 4096 Mai 27 01:43 org.eclipse.equinox.app drwxr-xr-x 4 root root 4096 Mai 27 01:43 org.eclipse.osgi Here seems to be the culprit !!
Why did you run the installer as root?
(In reply to everflux from comment #3) > Why did you run the installer as root? Because IMHO /home/user is not the right place to install programs, especially such large ones. /home/user is for my data. Beside any security arguments, as data needs to be backup-ed regularly, programs in home would extremely exhaust the backup. If a program is installed in users home, other user on same machine has to *redundantly* again install the program in his home dir.
Hi, Ulf. I think the problem is in the first successful run with gksudo. When using gksudo the userdir and cachedir are still in /home/user/ and then files created by that running instance are owned by root... Unfortunately I have to close it like invalid, because there's nothing to fix on our side :(
(In reply to Libor Fischmeistr from comment #5) > I think the problem is in the first successful run with gksudo. When using > gksudo the userdir and cachedir are still in /home/user/ and then files > created by that running instance are owned by root... I'm not sure, if you are correct. At http://wiki.ubuntuusers.de/sudo#Zusammenfassung I read, that gksudo without additional options uses /root as HOME.