Enterprise Server 6.1 APIs
16 Netscape Enterprise Server Programmer’s Guide • April 2002 (Draft)
3. Create the cgi-bin directory.
mkdir cgi-bin
chown user:group cgi-bin
chmod 755 cgi-bin
Now you can set the virtual server’s CGI directory, user, and group in one of these
ways:
•Usethe
dir, user,andgroup parameters 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).
Specifying a Chroot Directory for a Virtual Server
To further improve security, these CGI scripts should be prevented from accessing
data above and outside of the virtual server directory.
First, set up the chroot environment. The exact steps requiredto set up the chroot
environment vary by operating system. For help, consult your operating system’s
documentation.The
man pages for ftpd and chroot are often a good place to start.
These are the steps required for Solaris versions 2.6 through 8:
1. Log in as the superuser.
su
2. Change to the chroot directory. This is typically the vs_dir directory mentioned
in the previous section.
cd chroot
3. Create tmp in the chroot directory:
mkdir tmp
chmod 1777 tmp
4.
Create dev in the chroot directory:
mkdir dev
chmod 755 dev
Comentários a estes Manuais