Red Hat NETSCAPE ENTERPRISE SERVER 6.1 - NSAPI PROGRAMMER GUIDE Manual de usuario Pagina 18

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 148
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 17
Enterprise Server 6.1 APIs
18 Netscape Enterprise Server Programmers Guide April 2002 (Draft)
10. Create and populate bin and usr/bin in the chroot directory:
mkdir usr/bin
ln -s /usr/bin
ln /usr/bin/* usr/bin
You can ignore the messages this command generates.
Ifthe
/usr/bin directoryison adifferentfile system,replacethe last command
with the following:
cp -rf /usr/bin/* usr/bin
11.
Create and populate etc in the chroot directory:
mkdir etc
ln /etc/passwd /etc/group /etc/netconfig etc
12.
Test the chroot environment:
chroot chroot bin/ls -l
The output should look something like this:
total 14
lrwxrwxrwx 1 root other 8 Jan 13 03:32 bin -> /usr/bin
drwxr-xr-x 2 user group 512 Jan 13 03:42 cgi-bin
drwxr-xr-x 2 root other 512 Jan 13 03:28 dev
drwxr-xr-x 2 user group 512 Jan 13 03:26 docs
drwxr-xr-x 2 root other 512 Jan 13 03:33 etc
lrwxrwxrwx 1 root other 8 Jan 13 03:30 lib -> /usr/lib
drwxr-xr-x 4 root other 512 Jan 13 03:32 usr
Now you can set the virtual server’s chroot directory in one of these ways:
•Usethe
chroot parameter of the send-cgi Service SAF in the obj.conf file
(see the Netscape Enterprise Server NSAPI Programmer’s Guide).
Enter this information using the Settings tab of the Virtual Server Manager (see
the Netscape Enterprise Server Administrator’s Guide).
Vista de pagina 17
1 2 ... 13 14 15 16 17 18 19 20 21 22 23 ... 147 148

Comentarios a estos manuales

Sin comentarios