Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » P2 » p2 update of external files
p2 update of external files [message #1386328] Mon, 16 June 2014 15:27 Go to next message
Derek Morris is currently offline Derek MorrisFriend
Messages: 2
Registered: July 2009
Junior Member
We have a product that installs an Eclipse-based product and a bunch of other files (including executables) into a 'bin' directory that sits alongside the standard Eclipse directories. The product is cross-platforms (Windows, Linux and Mac OS). We provide installers for all platforms, and (for security reasons) the files within the 'bin' directory are owned by root/root with permission of 755.

We also provide additional plugins that enhance the basic product, and consists of traditional eclipse plugins, with more files that sit inside the 'bin' directory. We provide these plugins as an update site, and is installed using the "Install New Software" dialog.

On Windows, everything works as we want.

However, on Linux/Mac OS, we have to run the product as "su" for the update to work. It seems that because of permissions problems, the files in the 'bin' directory are not installed.

Is there any way we can get the installer to 'elevate' to run as "su" (having asked user for permission and password, of course). Or any other thoughts on how we might do this?

Thanks

Re: p2 update of external files [message #1397285 is a reply to message #1386328] Wed, 09 July 2014 13:57 Go to previous message
Eclipse UserFriend
You could write something that uses JNI to call setuid(2), but realize that your hid would be set for all threads. That is, any other work in progress would be done as root for the duration of your update.

Brian.
Previous Topic:different behavior when using bundlepool in Luna
Next Topic:How to find P2 Update Site
Goto Forum:
  


Current Time: Tue Mar 19 02:38:53 GMT 2024

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

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

Back to the top