About starting X windows in Telnet mode...

Christos Ricudis Christos_Ricudis at p98.f11.n413.z2.fidonet.gr
Tue Dec 16 10:52:11 EET 1997


Hello George!

In <LINUX-USERS.GR> George Goundras wrote:

 GG> Pws apenergopoioyntai tetoioy eidoys ektelesseis toy X?

if tty | grep ttyp > /dev/null ; then
        echo "Starting X from a Telnet session?!. Go play with a Suckintosh"
        exit
fi

Ayto bebaia kai pali den ton apagoreyei na soy treksei ton X server sth
mourh.Mia allh kalh idea 8a htan h ekshs : 

O X server xreiazetai root permissions gia na prospelasei to video hardware, gi
ayto einai setuid. Bgale to suid bit apo ton X server, metonomase ton se kati
allo (RealXF86_MDA) kai ftiakse ena setuid root programmataki se C poy kanei
toys aparaithtous elegxoys, kai an dei oti ontws eisai OK gia na trekseis ta X
apo ayto to tty, trexei ton kanoniko X server me root permissions. 

Christos Ricudis, ricudis at paiko.gr                              2:413/11.0.
--
====================================================================
Gia boithia (h na diagrafhte) e-mail sto majordomo at argos.hol.gr
Ta archives tis listas einai sto http://www.argos.hol.gr/lists :
prin steilete kapoia erothsh psakte mipos exei hdh apanththei.
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users
====================================================================



More information about the Linux-greek-users mailing list