How to set permission for run a program which is installed by root permission?

6,191

It should be enough for your user to own it. From a terminal, try the following:

chown -R $(whoami) /opt/MyEclipse

If you require other users to use that software, you need to let them run the MyEclipse executable as root. Per this forum entry by one of MyEclipse's support members:

The only way to get that to work is to run MyEclipse as root -- because MyEclipse launches the server processes directly, so they launch with the original perms of the myeclipse process (in which case a normal user could never launch JBoss as root).

You did pay for that software – Try and use their support forums in case of problems – that's what you paid for.

Share:
6,191

Related videos on Youtube

Milad Irannejad
Author by

Milad Irannejad

Updated on September 18, 2022

Comments

  • Milad Irannejad
    Milad Irannejad over 1 year

    I have installed the MyEclipse 10.1 via root permission and now when I want to run this program by my own user, it says that /opt/MyEclipse/MyEclipse\ 10/ is not writable! How can I solve this problem?!

  • Milad Irannejad
    Milad Irannejad about 12 years
    Is there any way to keep this folder for root user, I mean the root user remains the owner of this folder, but all users can work with this program?!
  • slhck
    slhck about 12 years
    Can't you just start the program's executable with sudo privileges? That way it'll have write access.
  • geekosaur
    geekosaur about 12 years
    I wouldn't recommend running random stuff as root/with sudo. Seems like poor application design if it requires users to have write permission in its installation area, though.
  • slhck
    slhck about 12 years
    @geekosaur Precisely what I was going to suggest next. Contact the vendor, maybe file a bug report.