Skip to main content



      Home
Home » Newcomers » Newcomers » linux - root vs. standard user
linux - root vs. standard user [message #17017] Tue, 25 January 2005 23:34 Go to next message
Eclipse UserFriend
Originally posted by: je6419.hotmail.com

Hi,

I'm having a small bit of trouble with eclipse, hoping someone can help.
I unzipped the 3.1 environment distribution in my home dir. As root I
moved the directory to '/usr/share/eclipse/'.

Running the program as root is fine but when I try to execute the program
as a standard user I get the following errors in the config log:

!SESSION 2005-01-25 23:29:06.717
-----------------------------------------------
eclipse.buildId=unknown
java.version=1.4.2_07
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Command-line arguments: -os linux -ws gtk -arch x86

!ENTRY org.eclipse.update.configurator 2005-01-25 23:29:06.718
!MESSAGE Could not load from shared install
!STACK 0
java.lang.Exception
at
org.eclipse.update.internal.configurator.ConfigurationParser .processConfig(ConfigurationParser.java:299)
at
org.eclipse.update.internal.configurator.ConfigurationParser .startElement(ConfigurationParser.java:105)
at org.apache.crimson.parser.Parser3.maybeElement(Parser2.java: 1672)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java :667)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:337)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl. java:448)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
at
org.eclipse.update.internal.configurator.ConfigurationParser .parse(ConfigurationParser.java:69)
at
org.eclipse.update.internal.configurator.PlatformConfigurati on.loadConfig(PlatformConfiguration.java:1006)
at
org.eclipse.update.internal.configurator.PlatformConfigurati on.initializeCurrent(PlatformConfiguration.java:676)
at
org.eclipse.update.internal.configurator.PlatformConfigurati on. <init>(PlatformConfiguration.java:86)
at
org.eclipse.update.internal.configurator.PlatformConfigurati on.startup(PlatformConfiguration.java:630)
at
org.eclipse.update.internal.configurator.ConfigurationActiva tor.getPlatformConfiguration(ConfigurationActivator.java:323 )
at
org.eclipse.update.internal.configurator.ConfigurationActiva tor.initialize(ConfigurationActivator.java:108)
at
org.eclipse.update.internal.configurator.ConfigurationActiva tor.start(ConfigurationActivator.java:71)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$1 .run(BundleContextImpl.java:958)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:954)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:937)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:417)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.resu me(AbstractBundle.java:366)
at
org.eclipse.osgi.framework.internal.core.Framework.resumeBun dle(Framework.java:999)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.r esumeBundles(StartLevelManager.java:577)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.i ncFWSL(StartLevelManager.java:488)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.d oSetStartLevel(StartLevelManager.java:273)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.d ispatchEvent(StartLevelManager.java:444)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventManager.java:186)
at
org.eclipse.osgi.framework.eventmgr.EventThread.run(EventThr ead.java:104)

!ENTRY org.eclipse.core.runtime 2005-01-25 23:29:06.751
!MESSAGE Product org.eclipse.platform.ide could not be found.

!ENTRY org.eclipse.osgi 2005-01-25 23:29:06.769
!MESSAGE Application error
!STACK 1
java.lang.RuntimeException: No application id has been found.
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:198)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:273)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
at org.eclipse.core.launcher.Main.run(Main.java:710)
at org.eclipse.core.launcher.Main.main(Main.java:694)





The permissions on the files in question are:
drwxr-xr-x 6 root root 4096 Jan 25 23:26 .
drwxr-xr-x 155 root root 4096 Jan 25 19:33 ..
drwxrwxr-x 6 root root 4096 Jan 25 23:27 configuration
-rw-rw-r-- 1 root root 15048 Dec 16 20:26 cpl-v10.html
-rwxr-xr-x 1 root root 29080 Dec 16 20:26 eclipse
-rw-rw-r-- 1 root root 59 Dec 16 20:26 .eclipseproduct
drwxr-xr-x 10 root root 4096 Jan 25 23:27 features
-rw-rw-r-- 1 root root 10796 Dec 16 20:26 icon.xpm
-rw-rw-r-- 1 root root 5810 Dec 16 20:26 notice.html
drwxr-xr-x 86 root root 4096 Jan 25 23:27 plugins
drwxrwxr-x 2 root root 4096 Dec 16 20:26 readme
-rw-rw-r-- 1 root root 19558 Dec 16 20:26 startup.jar


Ideally I just want to run without having to sudo. If you need anymore
info just let me know.

Thanks,
Jude
Re: linux - root vs. standard user [message #19289 is a reply to message #17017] Thu, 27 January 2005 22:19 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: je6419.hotmail.com

jude wrote:

> Hi,
>
> I'm having a small bit of trouble with eclipse, hoping someone can help.
> I unzipped the 3.1 environment distribution in my home dir. As root I
> moved the directory to '/usr/share/eclipse/'.
>
> Running the program as root is fine but when I try to execute the program
> as a standard user I get the following errors in the config log:
>
> !SESSION 2005-01-25 23:29:06.717
> -----------------------------------------------
> eclipse.buildId=unknown
> java.version=1.4.2_07
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
> Command-line arguments: -os linux -ws gtk -arch x86
>
> !ENTRY org.eclipse.update.configurator 2005-01-25 23:29:06.718
> !MESSAGE Could not load from shared install
> !STACK 0
> java.lang.Exception
> at
>
org.eclipse.update.internal.configurator.ConfigurationParser .processConfig(ConfigurationParser.java:299)
> at
>
org.eclipse.update.internal.configurator.ConfigurationParser .startElement(ConfigurationParser.java:105)
> at org.apache.crimson.parser.Parser3.maybeElement(Parser2.java: 1672)
> at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java :667)
> at org.apache.crimson.parser.Parser2.parse(Parser2.java:337)
> at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl. java:448)
> at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
> at
>
org.eclipse.update.internal.configurator.ConfigurationParser .parse(ConfigurationParser.java:69)
> at
>
org.eclipse.update.internal.configurator.PlatformConfigurati on.loadConfig(PlatformConfiguration.java:1006)
> at
>
org.eclipse.update.internal.configurator.PlatformConfigurati on.initializeCurrent(PlatformConfiguration.java:676)
> at
>
org.eclipse.update.internal.configurator.PlatformConfigurati on. <init>(PlatformConfiguration.java:86)
> at
>
org.eclipse.update.internal.configurator.PlatformConfigurati on.startup(PlatformConfiguration.java:630)
> at
>
org.eclipse.update.internal.configurator.ConfigurationActiva tor.getPlatformConfiguration(ConfigurationActivator.java:323 )
> at
>
org.eclipse.update.internal.configurator.ConfigurationActiva tor.initialize(ConfigurationActivator.java:108)
> at
>
org.eclipse.update.internal.configurator.ConfigurationActiva tor.start(ConfigurationActivator.java:71)
> at
>
org.eclipse.osgi.framework.internal.core.BundleContextImpl$1 .run(BundleContextImpl.java:958)
> at java.security.AccessController.doPrivileged(Native Method)
> at
>
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:954)
> at
>
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:937)
> at
>
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:417)
> at
>
org.eclipse.osgi.framework.internal.core.AbstractBundle.resu me(AbstractBundle.java:366)
> at
>
org.eclipse.osgi.framework.internal.core.Framework.resumeBun dle(Framework.java:999)
> at
>
org.eclipse.osgi.framework.internal.core.StartLevelManager.r esumeBundles(StartLevelManager.java:577)
> at
>
org.eclipse.osgi.framework.internal.core.StartLevelManager.i ncFWSL(StartLevelManager.java:488)
> at
>
org.eclipse.osgi.framework.internal.core.StartLevelManager.d oSetStartLevel(StartLevelManager.java:273)
> at
>
org.eclipse.osgi.framework.internal.core.StartLevelManager.d ispatchEvent(StartLevelManager.java:444)
> at
>
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventManager.java:186)
> at
> org.eclipse.osgi.framework.eventmgr.EventThread.run(EventThr ead.java:104)
>
> !ENTRY org.eclipse.core.runtime 2005-01-25 23:29:06.751
> !MESSAGE Product org.eclipse.platform.ide could not be found.
>
> !ENTRY org.eclipse.osgi 2005-01-25 23:29:06.769
> !MESSAGE Application error
> !STACK 1
> java.lang.RuntimeException: No application id has been found.
> at
>
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:198)
> at
>
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:273)
> at
>
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:129)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
> at org.eclipse.core.launcher.Main.run(Main.java:710)
> at org.eclipse.core.launcher.Main.main(Main.java:694)
>
>
>
>
>
> The permissions on the files in question are:
> drwxr-xr-x 6 root root 4096 Jan 25 23:26 .
> drwxr-xr-x 155 root root 4096 Jan 25 19:33 ..
> drwxrwxr-x 6 root root 4096 Jan 25 23:27 configuration
> -rw-rw-r-- 1 root root 15048 Dec 16 20:26 cpl-v10.html
> -rwxr-xr-x 1 root root 29080 Dec 16 20:26 eclipse
> -rw-rw-r-- 1 root root 59 Dec 16 20:26 .eclipseproduct
> drwxr-xr-x 10 root root 4096 Jan 25 23:27 features
> -rw-rw-r-- 1 root root 10796 Dec 16 20:26 icon.xpm
> -rw-rw-r-- 1 root root 5810 Dec 16 20:26 notice.html
> drwxr-xr-x 86 root root 4096 Jan 25 23:27 plugins
> drwxrwxr-x 2 root root 4096 Dec 16 20:26 readme
> -rw-rw-r-- 1 root root 19558 Dec 16 20:26 startup.jar
>
>
> Ideally I just want to run without having to sudo. If you need anymore
> info just let me know.
>
> Thanks,
> Jude

As root I ran:
chmod -R a+rwx /usr/share/apps/eclipse3.1/

I know changing the permissions on the entire installation may not be the
best method but it worked.
Re: linux - root vs. standard user [message #29676 is a reply to message #19289] Sat, 26 February 2005 11:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: steffen.scheuring.gmx.net

Hi,

I started today with eclipse on Linux. I found out that you have to have
write permission on the installation folder and configuration folder.

This is really WEAK! All user related data should be stored in the HOME of
the user. :-(
But may be Eclipse is only a tool for Windows users.

Ciao
Re: linux - root vs. standard user [message #29696 is a reply to message #29676] Sun, 27 February 2005 07:03 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: muhammad.dwyer.gmail.com

Hi,

Have you tried launching eclipse with the -data parameter? Something like:

/opt/eclipse/eclipse -data /home/<your name>/<your development directory>

This will create an eclipse workspace under <your development directory>
in your home directory. Should work!

> Hi,
>
> I started today with eclipse on Linux. I found out that you have to
> have write permission on the installation folder and configuration
> folder.
>
> This is really WEAK! All user related data should be stored in the
> HOME of
> the user. :-(
> But may be Eclipse is only a tool for Windows users.
> Ciao
>
Re: linux - root vs. standard user [message #29743 is a reply to message #29696] Mon, 28 February 2005 15:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: muhammad.dwyer.gmail.com

Oops,

I tried it out myself just to be sure and, guess what: You're 100% right
- with no write permissions in the eclipse installation folder the platform
will not start and you get bombarded with exceptions!

Poor show for eclipse here, I'm afraid (unless someone else knows a workaround).

One workaround I can think of myself is to install eclipse into your home
directory.


> Hi,
>
> Have you tried launching eclipse with the -data parameter? Something
> like:
>
> /opt/eclipse/eclipse -data /home/<your name>/<your development
> directory>
>
> This will create an eclipse workspace under <your development
> directory> in your home directory. Should work!
>
>> Hi,
>>
>> I started today with eclipse on Linux. I found out that you have to
>> have write permission on the installation folder and configuration
>> folder.
>>
>> This is really WEAK! All user related data should be stored in the
>> HOME of
>> the user. :-(
>> But may be Eclipse is only a tool for Windows users.
>> Ciao
Re: linux - root vs. standard user [message #29831 is a reply to message #29743] Thu, 03 March 2005 01:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: davetrainer.gmail.com

Muhammad Dwyer wrote:
> Oops,
>
> I tried it out myself just to be sure and, guess what: You're 100% right
> - with no write permissions in the eclipse installation folder the
> platform will not start and you get bombarded with exceptions!
>
> Poor show for eclipse here, I'm afraid (unless someone else knows a
> workaround).
>
> One workaround I can think of myself is to install eclipse into your
> home directory.

This is exactly what I happened to do - it this uncommon/discouraged?
Does it make more sense to go someplace like /opt? What's the rationale?

>
>
>> Hi,
>>
>> Have you tried launching eclipse with the -data parameter? Something
>> like:
>>
>> /opt/eclipse/eclipse -data /home/<your name>/<your development
>> directory>
>>
>> This will create an eclipse workspace under <your development
>> directory> in your home directory. Should work!
>>
>>> Hi,
>>>
>>> I started today with eclipse on Linux. I found out that you have to
>>> have write permission on the installation folder and configuration
>>> folder.
>>>
>>> This is really WEAK! All user related data should be stored in the
>>> HOME of
>>> the user. :-(
>>> But may be Eclipse is only a tool for Windows users.
>>> Ciao
>
>
>
>
Re: linux - root vs. standard user [message #29833 is a reply to message #29831] Thu, 03 March 2005 02:37 Go to previous messageGo to next message
Eclipse Webmaster is currently offline Eclipse WebmasterFriend
Messages: 607353
Registered: July 2009
Senior Member
Check out this snippet of information I got when I asked about running
the infocenter help as a non-root user, where Eclipse is installed in a
non-writable location:

"In addition to -eclipseHome, you can use -data and -configuration.
With the latter two pointing to writable area, the first one (and
eclipse) can be at read only location."

In this case, -data and -configuration point to the user's home
directory, and -eclipseHome points to the application that is read-only.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=85110

Denis


Dave Trainer wrote:
> Muhammad Dwyer wrote:
>
>> Oops,
>>
>> I tried it out myself just to be sure and, guess what: You're 100%
>> right - with no write permissions in the eclipse installation folder
>> the platform will not start and you get bombarded with exceptions!
>>
>> Poor show for eclipse here, I'm afraid (unless someone else knows a
>> workaround).
>>
>> One workaround I can think of myself is to install eclipse into your
>> home directory.
>
>
> This is exactly what I happened to do - it this uncommon/discouraged?
> Does it make more sense to go someplace like /opt? What's the rationale?
>
>>
>>
>>> Hi,
>>>
>>> Have you tried launching eclipse with the -data parameter? Something
>>> like:
>>>
>>> /opt/eclipse/eclipse -data /home/<your name>/<your development
>>> directory>
>>>
>>> This will create an eclipse workspace under <your development
>>> directory> in your home directory. Should work!
>>>
>>>> Hi,
>>>>
>>>> I started today with eclipse on Linux. I found out that you have to
>>>> have write permission on the installation folder and configuration
>>>> folder.
>>>>
>>>> This is really WEAK! All user related data should be stored in the
>>>> HOME of
>>>> the user. :-(
>>>> But may be Eclipse is only a tool for Windows users.
>>>> Ciao
>>
>>
>>
>>
>>


--

Eclipse WebMaster - webmaster@eclipse.org
Questions? Consult the FAQ at http://www.eclipse.org/webmaster/faq.html
View my status at http://www.eclipse.org/webmaster/main.html
Re: linux - root vs. standard user [message #29861 is a reply to message #29833] Thu, 03 March 2005 17:27 Go to previous message
Eclipse UserFriend
Originally posted by: muhammad.dwyer.gmail.com

Thanx WebMaster,

That more or less resolves this issue completely. For that matter, is their
a FAQ for this type of issue, outside of the bug database?
Previous Topic:how to deliver a project?
Next Topic:switch from source to preview tab
Goto Forum:
  


Current Time: Sun Jun 01 00:08:18 EDT 2025

Powered by FUDForum. Page generated in 0.07448 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top