Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using linux mint and have installed Netbeans on it but whenever I run netbeans from accounts other than root it throws an error for not having permission to start glassfish server of netbeans. I also tried running this application using run as administrator option but then the application does not start.

So is there a way to assign netbeans admin rights permanently so that whenever I start this application from other accounts I should not face this error?

share|improve this question
up vote 0 down vote accepted

You probably need to use xdg-su:

xdg-su provides a graphical dialog that prompts the user for a password to run command as user or as root if no user was specified.

xdg-su is for use inside a desktop session only.

If your launch command is /usr/bin/netbeans/, change it to xdg-su -c /usr/bin/netbeans.

Alternatively, find out where netbeans stores its workspace and assign ownership to your current user.

share|improve this answer

You could add the program you'd like to run as root into the sudoers file. (run the command "visudo" as root)

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .