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 244866 - Wrong root ownership of files in user cachedir
Summary: Wrong root ownership of files in user cachedir
Status: RESOLVED INVALID
Alias: None
Product: installer
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Libor Fischmeistr
URL:
Keywords:
Depends on: 244847
Blocks:
  Show dependency tree
 
Reported: 2014-06-03 13:46 UTC by ulfzibis
Modified: 2014-06-11 18:54 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
NetBeans log (9.32 KB, application/octet-stream)
2014-06-03 13:51 UTC, ulfzibis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ulfzibis 2014-06-03 13:46:42 UTC
[ 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
Comment 1 ulfzibis 2014-06-03 13:51:45 UTC
Created attachment 147555 [details]
NetBeans log
Comment 2 ulfzibis 2014-06-03 13:54:39 UTC
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 !!
Comment 3 everflux 2014-06-03 14:00:23 UTC
Why did you run the installer as root?
Comment 4 ulfzibis 2014-06-03 14:13:36 UTC
(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.
Comment 5 Libor Fischmeistr 2014-06-06 13:00:56 UTC
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 :(
Comment 6 ulfzibis 2014-06-11 18:54:12 UTC
(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.