PDA

View Full Version : Root can not open display



jackrabbit
01-26-2004, 01:03 AM
I login as a normal user, then su to root, can not open any graphic program, like nedit, etc, always get:

NEdit: Can't open display

Please help.
Thanks,

tearinghairout
01-26-2004, 02:13 AM
Firstly, make sure that the DISPLAY environment variable for root is set to something like :0.0

Secondly, as normal user...

xhost localhost

Dave_Bechtel
01-28-2004, 06:51 AM
1. Try using " sudo nedit " instead, sudo will pass the $DISPLAY variable for you

2. If already su'd to root, try ' nedit -display :0 '.


I login as a normal user, then su to root, can not open any graphic program, like nedit, etc, always get:

NEdit: Can't open display

Please help.
Thanks,