StarOffice & Suntomeush Xronou Enar3hs

Georgatos Photis gef at zenon.ceid.upatras.gr
Fri Sep 18 15:26:46 EEST 1998


Nikos Mavroyanopoulos wrote:
> 
> On Wed, Sep 16, 1998 at 11:53:34PM +0300, Efthimios Mavrogeorgiadis wrote:
> > Auto pou den katalabainw einai ti ennoei o grafwn me thn ekfrash "chroot'd
> > jail" (proteinomenh metafrash: se mia alla3orizwmenh fulakh ;-)))
>
> Dhladi ftiaxnei ena katalogo px ton /usr/office bazei mesa to staroffice
> kai ta libs pou xreiazetai sto /usr/office/lib (leei poia)... kai kanei:
> chroot /usr/office /usr/office/bin/staroffice (i opos allios einai to
> executable)

Sto "chroot /tmp /bin/sh" h entolh sh trexei kai nomizei pws to root dir
ths einai
to /tmp. Px, ean pate na kanete apo ekei mesa ls -las, tha parete to
mynhma
ls: Command not found, giati ne men to PATH=/bin:...: , alla den yparxei
/bin 
(dhladh /tmp/bin). Ean kanete ton extra kopo na balete thn ls sto /tmp,
tote me me /ls -als tha deite ta periexomena tou.

H chroot einai klassiko kolpo gia na trexete toys daimones sas me
asfaleia:
Mporei na jeskistoun na paroun root access logw kapoiou bug ston ftpd
px, 
alla gia na kataferei kaneis na peirajei otidhpote panw apo ton texnhto
"/", 
prepei na paijei me alla kolpa (basika prepei na trejei me kapoio tropo
diko 
tou kwdika giati oi pio polles entoles leipoun, pou den ginetai 
xwris estw cat-chmod 'h buffer overflow :> )
Ean kapoios einai root mporei me system calls 'h xwris na parei
root shell sto root (!!!) mesa apo kwdika.

Epishs, gia na mhn antigrafete bibliothikes me cp, yparxei to hardlink:
ln /bin/ls /tmp/ls  (XWRIS -s , oxi symbolic link).
Den to exw dokimasei alla apo thn theoria twn inodes, prepei na piasei.

Ta hardlinks einai mia syndesh metajy enos directory entry kai enos
arxeiou sto disko (anafora sta inodes toy arxeiou). Fainontai posa 
einai ana arxeio sthn 3h sthlh sto ls -als.
Sta directory den exei hard links (yparxoun problhmata asfaleias AFAIK).
H efarmoges toys einai apeires...

-- 
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
|  Georgatos Photis    |   University of Patras,                      |
|                      |   Dpt. of Computer Engineering & Informatics |
|  GGGG EEEE FFFF      |   N-th year student of CEID                  |
|  G    E    F         +----------------------------------------------+
|  G    EEE  FFF       |        www:  http://www.ceid.upatras.gr/~gef |
|  G  G E    F         |     e-mail:  mailto:gef at ceid.upatras.gr      |
|  GGGG EEEE F         |      phone:  +30-61-437249                   |
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
--
====================================================================
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