Startseite
    Sonstiges
    Hardware
    Linux
    Windows
  Archiv
  Kontakt
 


http://myblog.de/adminblog

Gratis bloggen bei
myblog.de





X forwarding mit sudo

X authentication is based on cookies -- secret little pieces of random
data that only you and the X server know... So, you need to let the
other user in on what your cookie is. One way to do this is as follows:

Before you issue the su (but after having ssh'ed into the remote
system), request the cookie for the current DISPLAY that's connecting
to your X server:

$ xauth list $DISPLAY

You'll get something like

somehost.somedomain.de:10 MIT-MAGIC-COOKIE-1
4d22408a71a55b41ccd1657d377923ae

Then, after having done su, tell the new user what the cookie is:

$ xauth add somehost.somedomain.de:10 MIT-MAGIC-COOKIE-1
4d22408a71a55b41ccd1657d377923ae
22.5.08 11:10
 



Verantwortlich für die Inhalte ist der Autor. Dein kostenloses Blog bei myblog.de! Datenschutzerklärung
Werbung