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.

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

2 Answers 2

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 superuser.com/questions/85818/… –  Masi Dec 20 '09 at 20:26

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

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.