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

How can you get rights for the 2nd admin-user in Ubuntu?

My window-manager is Ion3.

I get the following errors for X11 applications run by the second admin-user.

masi@masi-desktop:/home/noa$ firefox
No protocol specified
Error: cannot open display: :0.0

This suggests me that you need to have rights to the display. However, su -c xterm is not working, since the root password is disabled in Ubuntu.

share|improve this question

Try sudo; however you should not need to be root to get the display. I'm unaware of Ion3, but I'm sure more errors will crop up after you get root, in which case you can update your question.

share|improve this answer
This is strange: I have two users masi and isam, both are admins. isam can start firefox without sudo, but masi cannot. Perhaps, there are other settings which I do not know. – Masi Dec 2 '09 at 21:33
Which one is which? And which one is logged into X first? Usually a display is owned by one user at a time – Broam Dec 2 '09 at 21:38
up vote 0 down vote accepted

The problem can be solved by giving every process an access the display by

 sudo xhost +

However, this can be a security threat, since any process in your network can then access your Screen and possibly too other input devices such as mouse.

share|improve this answer
the new question is at… – Masi Dec 20 '09 at 20:26

You must log in to answer this question.

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