Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

2 Answers 2

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.