My goal - run another desktop environment as another user in Xephyr,
Everything works fine when i as local user run the command
Code:
peter@multi:~$ xinit ~/.xinitrc-fvwmtst -- /usr/bin/Xephyr :3
, but when i want to sudo it to another user
Code:
peter@multi:~$ sudo -i -u fvwmusr xinit /home/fvwmusr/.xinitrc-fvwmtst -- /usr/bin/Xephyr :4
i got this message :
Invalid MIT-MAGIC-COOKIE-1 key
Xephyr cannot open host display. Is DISPLAY set?
giving up.
I have tried login as the user i want to sudo and then run the command locally.
Code:
peter@multi:~$ sux fvwmusr
Password:
fvwm@multi:~$ xinit /home/fvwmusr/.xinitrc-fvwmtst -- /usr/bin/Xephyr :5
(i use sux because it's an X-app)
then everything works fine.
I have checked the /tnp/.X?-lock and justified the displaynumbers to match unused values.
I have the habit to increase the display-parameter with one just to avoid problem with the lock-files, which is another problem - i wish they was automagicaly destroyed after properly exiting Xephyr.
/multi
ps - ( I hope this is the right forum to post,i before i post i did a search for Xephyr and had expected to find most of the hits in the virtualization forum, but - so if this is the wrong forum, please move the thread to its right place )