How to run a Gtk application as a user with root privs?
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
The xhost command I gave won't survive a reboot, you have to issue it new with every session. In theory, HappyTux's method should survive a reboot but you might want to check root's .bashrc to make sure.
Thats odd. Try just issuing xhost localhost on its own and post any output/errors you get back. Also, if you use su to become root in a console, can you then run gnome-ppp? I know that isn't the solution you're after, I'm just trying to get a better handle on where this is going off course.
Hello, I removed /root/.bashrc, I restarted and I tried again. When I run "xhost localhost" or one of your suggestions, I get: "localhost being added to access control list", but when I run "sudo gnome-ppp", I get the same error message
Hello, I removed /root/.bashrc, I restarted and I tried again.
Removing .bashrc was certainly not needed. All you had to do was comment out the line you added. I also notice you do a lot of restarting. In general Linux doesn't need to do that and in this particular case it may be causing trouble. I know that restarting is the first thing to try in Windows when things don't work, but this isn't Windows.
When I run "xhost localhost" or one of your suggestions, I get: "localhost being added to access control list", but when I run "sudo gnome-ppp", I get the same error message
Lets check on something. Try running (as your normal user) echo $DISPLAY. It should return :0.0, but if it doesn't it might be a clue.
Also have a read through this thread, particularly the last couple of posts. They seem to have solved the same problem you're having.