IWS6.0SP2 Question: CGI chroot on Solaris 8

Dear all,
I follow the Programmer's Guide (Chapter 1) to setup the Chroot directory (say, /mychroot/) for my existing CGI programs. It works fine, but I wonder why I don't need to update the CGI directory setting (the directory to chdir to after chroot but before execution). Its original value before the chroot setup is /mychroot/mycgi-bin (absolute path); after the chroot setup, I think I need to change it to "/mycgi-bin"; its absolute path after chroot should become /mycgi-bin instead, right?!
However, the web server could not find the cgi programs after this update. Once I fall back the CGI directory settings and applied the configuration again, it works again!
What's wrong with me?!
Please advise.
Thanks in advance.
Desmond

The webserver starts the cgi program and knows the real location. The cgi is that only program that sees the new chroot location. So the web server calls the cgi from the location as it knows it (the real location) and the cgi must call anything is runs from the new chrooted location.
It gets to be even more fun when the webserver is chrooted as well.

Similar Messages

  • How to define initialization parameters in iWS6.0sp2

    I need to define an initialization parameter in iWS6.0sp2, this parameter will be used by all my servlets in an web application.
    parameter name: paraName
    parameter value should be a string: "c:/xxx/xxx/xx"
    I want to get this parameter in my servlet using :
    getInitParameter("paraName")
    it looks like I need to define it in the web-apps.xml, but not sure.
    Can somebody tell me where and how to define it. Thanks in advance.
    John

    Hi,
    You can define initargs in servlets.properties file and refer that from web-apps.xml.
    check this link for more details
    http://docs.iplanet.com/docs/manuals/enterprise/50/servlets/war.htm
    Regards
    T.Raghulan.

  • Solaris 8 on chroot in Solaris 10

    I've copied all nessesary Sol8 system files to machine with Sol10. After executing "chroot /home/chroot/sol8 /bin/bash" almost everything is OK except running programs which need the "libthread.so.1" library (for example java). These programs cause error: "_sys_thread_create() failed, errno = 22".
    bash-3.00#uname -a
    SunOS xxxx 5.10 Generic_118822-25 sun4u sparc SUNW,Sun-Fire-480R
    bash-3.00# mount -F proc proc /home/chroot/sol8/proc
    bash-3.00# mount -F fd /dev/fd /home/chroot/sol8/dev/fd
    bash-3.00# chroot /home/chroot/sol8 /bin/bash
    bash-2.05b#
    bash-2.05b# ldd /usr/bin/java
    libthread.so.1=> /usr/j2re1.4.1/bin/../../../lib/sparcv9/libthread.so.1
    libdl.so.1 => /usr/j2re1.4.1/bin/../../../lib/sparcv9/libdl.so.1
    libc.so.1 => /usr/j2re1.4.1/bin/../../../lib/sparcv9/libc.so.1
    /usr/platform/SUNW,Sun-Fire-480R/lib/sparcv9/libc_psr.so.1
    bash-2.05b# /usr/bin/java
    systhread_create() failed, errno = 22
    The "libthread.so.1" file is dated on 19th may 06 (patch no. 108993-57)
    Other machine with native Sol8 does not have such problem.
    Can anyone explain me what the "errno=22" mean ?
    Best regards.
    Tom

    We a lot of machines with Solaris 8 at our customer which cannot be upgraded in near future (for some security reasons). I've decided to install Solaris 10 on our development server (V480) but we have to produce binaries (aplications and libraries) which will be running in "clean" Sol8 environment.
    The best solution would be to prepare Sol8 temporary environment on our server till then the customer will upgrade own machines to Sol10.
    In reference to "Dynamic System Domains" option:
    We are using[b] Sun-Fire V480 server not Sunfire 6800 - is that option applicable to such servers (V480) ???

  • Big question about dns in solaris 10

    hi,
    in solaris 10 dns[client] is working fine even though the service is in disabled state.
    bash-3.00# svcs -a | grep dns
    disabled Oct_07 svc:/network/dns/server:default
    disabled 20:13:50 svc:/network/dns/client:default
    bash-3.00#
    still i can able to resolve the ip address.
    *my question is will this affect anything.. like autofs [net/<machine name>] concept.*
    Thanks.

    In short, no. Hostname resolution is guided by the /etc/nsswitch.conf file, and the /etc/resolv.conf file tells the resolver which DNS servers to contact.
    The network/dns/client service is actually part of the DNS server. If you start the DNS service with "svcadm enable network/dns/server", then the client service will start also (try it yourself).

  • A question about sendmail on solaris(10 and 11)

    I have a private network for working,all machines are linux or unix.
    I have one smtp server running postfix,wich force all connection
    to make tls(escuse my english relly bad).
    On hpux 11.31 i use this .mc
    divert(0)dnl
    VERSIONID(`$Id: generic-hpux10.mc,v 8.13 2001/05/29 17:29:52 ca Exp $')
    OSTYPE(hpux11)dnl
    DOMAIN(generic)dnl
    define(`_X400_UUCP_')dnl
    define(`_MASQUERADE_ENVELOPE_')dnl
    define(`MASQUERADE_NAME')dnl
    define(`confTRY_NULL_MX_LIST',`T')dnl
    define(`LUSER_RELAY',`name_of_luser_relay')dnl
    define(`DATABASE_MAP_TYPE',`dbm')dnl
    define(`_CLASS_U_')dnl
    define(`LOCAL_RELAY')dnl
    define(`MAIL_HUB')dnl
    TRUST_AUTH_MECH(`GSSAPI DIGEST-MD5')dnl
    FEATURE(always_add_domain)dnl
    MAILER(local)dnl
    MAILER(smtp)dnl
    MAILER(openmail)dnl
    MAILER(uucp)dnl
    define(`SMART_HOST', `posta.domain.com')
    define(`confCACERT_PATH', `/etc/mail/certs')dnl
    define(`confCACERT', `/etc/mail/certs/domain.com.crt')dnl
    define(`confSERVER_CERT', `/etc/mail/certs/hpux2.domain.com.crt')dnl
    define(`confSERVER_KEY', `/etc/mail/certs/hpux2.domain.com.key')dnl
    define(`confCLIENT_CERT', `/etc/mail/certs/hpux2.domain.com.crt')dnl
    define(`confCLIENT_KEY', `/etc/mail/certs/hpux2.domain.com.key')dnl
    define(`confRAND_FILE',`egd:/dev/urandom')dnl
    D{tls_version}TLSv1
    O UseTLS=True
    On Solaris this
    divert(0)dnl
    VERSIONID(`sendmail.mc (Sun)')
    OSTYPE(`solaris11')dnl
    DOMAIN(`solaris-generic')dnl
    define(`confFALLBACK_SMARTHOST', `mailhost$?m.$m$.')dnl
    FEATURE(genericstable)dnl
    FEATURE(mailertable)dnl
    FEATURE(domaintable)dnl
    FEATURE(allmasquerade)dnl
    FEATURE(promiscuous_relay)dnl
    FEATURE(accept_unresolvable_domains)dnl
    FEATURE(accept_unqualified_senders)dnl
    FEATURE(no_default_msa)
    DOMAIN(`posta.domain.local')dnl
    MAILER(`local')dnl
    MAILER(`smtp')dnl
    define(`confSMTP_LOGIN_MSG', `$j Sendmail $b')
    define(`SMART_HOST', `posta.domain.com')
    define(`confCACERT_PATH', `/etc/mail/certs')dnl
    define(`confCACERT', `/etc/mail/certs/domain.local.crt')dnl
    define(`confSERVER_CERT', `/etc/mail/certs/solaris.domaincrt')dnl
    define(`confSERVER_KEY', `/etc/mail/certs/solaris.domain.coml.key')dnl
    define(`confCLIENT_CERT', `/etc/mail/certs/solaris.domain.com.crt')dnl
    define(`confCLIENT_KEY', `/etc/mail/certs/solaris.domain.com.key')dnl
    define(`confRAND_FILE',`egd:/dev/urandom')dnl
    D{tls_version}TLSv1
    On hpux all works fine,send mail,on solaris give me those errors
    [192.168.3.252], dsn=5.0.0, stat=Service unavailable
    Diagnostic-Code: SMTP; 530 5.7.0 Must issue a STARTTLS command first
    I try to set UseTLS=True even on solaris but give me error and sendmail don't start
    How to set sendmail to use tls?
    thank to who help me

    Solution found using this mc
    divert(0)dnl
    VERSIONID(`sendmail.mc (Sun)')
    OSTYPE(`solaris11')dnl
    DOMAIN(`solaris-generic')dnl
    define(`confCACERT_PATH', `/etc/mail/certs')dnl
    define(`confCACERT', `/etc/mail/certs/domain.com.crt')dnl
    define(`confSERVER_CERT', `/etc/mail/certs/solaris11.domain.com.crt')dnl
    define(`confSERVER_KEY', `/etc/mail/certs/solaris11.domain.com.key')dnl
    define(`confCLIENT_CERT', `/etc/mail/certs/solaris11.domain.com.crt')dnl
    define(`confCLIENT_KEY', `/etc/mail/certs/solaris11.domain.com.key')dnl
    define(`confRAND_FILE',`egd:/dev/urandom')dnl
    define(`_X400_UUCP_')dnl
    define(`_MASQUERADE_ENVELOPE_')dnl
    define(`MASQUERADE_NAME')dnl
    define(`confTRY_NULL_MX_LIST',`T')dnl
    define(`LUSER_RELAY',`name_of_luser_relay')dnl
    define(`DATABASE_MAP_TYPE',`dbm')dnl
    define(`_CLASS_U_')dnl
    define(`LOCAL_RELAY')dnl
    define(`MAIL_HUB')dnl
    TRUST_AUTH_MECH(`GSSAPI DIGEST-MD5')dnl
    FEATURE(always_add_domain)dnl
    FEATURE(access_db)dnl
    MAILER(local)dnl
    MAILER(smtp)dnl
    MAILER(uucp)dnl
    define(`SMART_HOST', `posta.domain.com')
    define(`confCACERT_PATH', `/etc/mail/certs')dnl
    define(`confCACERT', `/etc/mail/certs/domain.com.crt')dnl
    define(`confSERVER_CERT', `/etc/mail/certs/solaris11.domain.com.crt')dnl
    define(`confSERVER_KEY', `/etc/mail/certs/solaris11.domain.com.key')dnl
    define(`confCLIENT_CERT', `/etc/mail/certs/solaris11.domain.com.crt')dnl
    define(`confCLIENT_KEY', `/etc/mail/certs/solaris11.domain.com.key')dnl
    define(`confRAND_FILE',`file:/dev/random')dnl
    D{tls_version}TLSv1
    and makemap dbm access file
    Last question: how to disable ssl3 and enable tls1 only?

  • Stupid question  - What platforms does Solaris x86 run on?

    Hello,
    I am a longtime Solaris for sparc user. Could someone please direct me to information about what platforms/processors Solaris for x86 runs on? Are there dual-bootable Windows/Solaris systems or something? What about laptops? I will start searching myself for info, but if anyone knows of a great strehouse of info on this matter, I would appreciate it.
    Thanks!

    solaris: get it free
    http://www.sun.com/software/solaris/get.jsp
    What platforms does Solaris x86 run on? not such a stupid question if one is to inquire, does it run on intel conroe chips, yonah? are both chips recognized, does it run at 64 bit on conroe? has anyone got it going on mac? how about the 4 proc intel chips released. any one tried this and last but not least xen virtualistion with new built in amd/intel virtualization technology...

  • 10g Data Guard Install Questions... Solaris 9

    Firstly, I've done several Failsafe installes on Wintel platforms, but I'm having a tough time getting started installing Dataguard on Solaris. According to the manual:
    Oracle® Data Guard Broker
    10g Release 1 (10.1)
    Part Number B10822-01
    "The Oracle Data Guard graphical user interface (GUI), which you can use to manage broker configurations, is installed with the Oracle Enterprise Manager software."
    I don't see any link or otherwise access to Data Guard via the 10g Enterprise Manager. Is there something that I missed during install that will allow me access Data Guard GUI?
    I'm stuck
    http://download-east.oracle.com/docs/cd/B14117_01/server.101/b10822/concepts.htm#sthref14

    rajeysh wrote:
    refer the link:- hope this will help you.
    http://blogs.oracle.com/AlejandroVargas/gems/DataGuardBrokerandobserverst.pdf
    http://oracleinstance.blogspot.com/2010/01/configuration-of-10g-data-guard-broker.html
    http://gjilevski.wordpress.com/2010/03/06/configuring-10g-data-guard-broker-and-observer-for-failover-and-switchover/
    Good luck.
    SQL> show parameter broker
    NAME                                 TYPE        VALUE
    dg_broker_config_file1               string      /u03/KMC/db/tech_st/10.2.0/dbs
                                                     /dr1KMC_PROD.dat
    dg_broker_config_file2               string      /u03/KMC/db/tech_st/10.2.0/dbs
                                                     /dr2KMC_PROD.dat
    dg_broker_start                      boolean     FALSE
    SQL>so i need only:
    ALTER SYSTEM SET DG_BROKER_START=true scope=both;only to act in dgmgrl.
    please confirm me ......

  • ZFS Configuration Question - Also posted in Solaris x86

    Hello,
    I have 2 x 140GB (hw Raid-0 + spare). About 20GB is allocated to Solaris on UFS (standard installation and partitions/slices).
    I would like to allocate the 120GB left on the disk drive to ZFS. That space is not unallocated to any file system for now.
    I found a lot of documentation of how to create a ZFS Pool on an empty disk drive. The documentation is less clear on how to do it on a drive already use by another FS.
    Any help will be appreciated.
    Michel

    Darren,
    I just setup another Solaris x86 server tonight to play with. That future production server is in it's own vlan wtih no Internet access for now.
    The test server has the same configuration, but less disk space.
    Here is the output of prtvtoc
    # prtvtoc /dev/dsk/c0t0d0s0
    * /dev/dsk/c0t0d0s0 partition map
    * Dimensions:
    * 512 bytes/sector
    * 63 sectors/track
    * 255 tracks/cylinder
    * 16065 sectors/cylinder
    * 2350 cylinders
    * 2348 accessible cylinders
    * Flags:
    * 1: unmountable
    * 10: read-only
    * First Sector Last
    * Partition Tag Flags Sector Count Sector Mount Directory
    0 2 00 10522575 27198045 37720619 /
    1 3 01 16065 8401995 8418059
    2 5 00 0 37720620 37720619
    7 8 00 8418060 2104515 10522574 /export/home
    8 1 01 0 16065 16064
    Output of format
    selecting c0t0d0
    [disk formatted]
    Warning: Current Disk has mounted partitions.
    /dev/dsk/c0t0d0s0 is currently mounted on /. Please see umount(1M).
    Total disk size is 8920 cylinders
    Cylinder size is 16065 (512 byte) blocks
    Cylinders
    Partition Status Type Start End Length %
    ====== ====== ============ ===== === ====== ===
    1 Active Solaris2 1 2350 2350 26
    As you can see, the 1st partition is used at 26%. With fdisk, I can create a 2nd partition. My problem is to get that 2nd partiition availlable to Solaris and create a zpool in that unused space..
    Michel

  • App-V 5.0SP2 question with SCCM 2012 CU4 (functionality vs full support with R2)

    I understand that for App-V 5.0 SP2 and SCCM 2012 SP1 integration at least CU4 is required but R2 with CU1 for full functionality.
    I’ve attached an image from some session that someone else gave me. I have questions after looking at the slide since there are no details on what is not fully supported with CU4 pre R2.
    Since we have immediate plans to add CU4 to our SCCM 2012 SP1 environment can anyone please give us a break down of what functionality is not available in App-V 5.0 SP2 before we go all the way up to SCCM 2012 R2?
    On another note does anyone have any clue what TechED session that was from so I can see the replay?
    Thanks very much for any info on this.

    Hello,
    As per the slide - CU1 is required for full support with R2.
    See this article;
    http://support.microsoft.com/kb/2938441
    Application Virtualization
    This cumulative update adds support for Microsoft Application Virtualization (App-V) 5.0 Service Pack 2 (SP2). The following issues are seen only in App-V 5.0 SP2 environments earlier than CU1:
    With App-V 5.0 SP2, when a new version of an App-V package supersedes an earlier version, and when that earlier version is being used, the package is listed as not published. Errors that resemble the following are logged in the AppEnforce.log and the AppDiscovery.log
    files.
    AppEnforce.log
    Publish-AppvClientPackage : A publish operation has been scheduled, pending
    the shutdown of all applications in the package or the connection group.
    Publishing Package is successful but one one of the Virtual Package is currently in use. Close this Virtual Package to get the changes into effect
    Performing detection of app deployment type TestApp - Microsoft Application Virtualization 5(ScopeId_0C7279F0-1490-4A0E-A7A3-32A000CEF76D/DeploymentType_d1adf427-ac14-4ee1-9e51-415af7675383, revision 2) for system.
    AppDiscovery.log
    Required component [{AppVPackageRoot}]\TestApp.exe is not published
    With App-V 5.0 SP2, App-V packages that are being used cannot be uninstalled. Errors that resemble the following are logged in the AppEnforce.log file:
    CVEWorker::UninstallConnectionGroup() failed
    Nicke Källén | The Knack| Twitter:
    @Znackattack

  • Trusted Solaris 8 DIICOE compliance?

    Is Trusted Solaris 8 (or 7) DIICOE compliant??

    You may want to pose this question on the Trusted Solaris forum:
    http://supportforum.sun.com/cgi-bin/WebX.cgi?/security.trustedsolaris

  • Trusted Path Menu (Trusted Solaris 8)

    What file defines the layout of the trusted path menu? Can items be added to the trusted path menu? We are currently converting from the Trusted SCO CMW operating system to the Trusted Solaris 8 operating system and we had modified the trusted path menu in SCO to add some of our applications to it for certain types of users, and I was wondering how we can do the same thing on Trusted Solaris? I have not been able to locate a file that defines the trusted path.

    You may want to pose this question on the Trusted Solaris forum:
    http://supportforum.sun.com/cgi-bin/WebX.cgi?/security.trustedsolaris

  • New to solaris what should I be downloading solaris 10 or opensolaris?

    well I have some experience with redhat but want to learn solaris as, well I really will never be able to get a linux/unix position if I only know one. hmm so I started looking around and got confused by the many versions now available of solaris. so after bout an hour is seems like...
    1) the solaris 10 os is released for free
    2) there are multiple solaris's based off this code but the one solaris is pushing is the opensolaris 2008.05.
    in my mind I figure that solaris loosely relates to redhat then and opensolaris loosely relates to fedora.
    so here are my questions.
    I see solaris is "free" but I can't figure out exactly what that means. I know for instance that me sitting at home at night learning will not be able to call or email sun for support (too bad that would be sweet). but once installed can I get applications, use the sun software installation system (whatever would be like yum to redhat) to get software, will it be from a repo sponsored by sun? also how would I update the system. for instance I see a new version of solairs will be out in late october. do I have to do a complete reinstall or can I just plop in a new cd and hit "upgrade" (or something of that nature). basically I guess I am saying what am I missing by getting solaris free without support. is it just tech support or is it updates and software.
    secondly, would opensolaris be a better option. the reason I am apprehensive is because based on some reviews I have read it is not supported by much hardware and is buggy. I really don't want to waist time downloading and installing this if regular old solaris 10 is the better option. thanks you much for helping a newbie out. I have a seconds pc waiting for this and remember it is basically so I can get up to speed so my solaris unix will be on par with my quite limited linux experience. thanks again...

    I see so>night learning will not be able to call or email sun for support (too bad that would be sweet). but once installed can I get applications, use the sun software installation system (whatever would be like yum to redhat) to get software, will it be from a repo sponsored by sun?Depends. With Solaris you can use the Solaris Companion CD to get a few of the more generic programs or you can use sites such as Blastwave, SunFreeWare, Package Archive etc... to add more software of you can always compile from source.
    OpenSolaris has a pkg install command which is analogous to yum and contains a lot more software then the Solaris Companion CD. If you hunt around you can get a list of all software that pkg install can install to your system.
    also how would I update the system. for instance I see a new version of solairs will be out in late october. do I have to do a complete reinstall or can I just plop in a new cd and hit "upgrade" (or something of that nature). basically I Plop in the DVD and hit "upgrade" or you can do fancy things like live upgrade if you plan in advance.
    guess I am saying what am I missing by getting solaris free without support. is it just tech support or is it updates and software. Patches that aren't labeled as critical or security, phone support, etc... are not part of "free" Solaris.
    secondly, would opensolaris be a better option. the reason I am apprehensive is because based on some reviews I have read it is not supported by much hardware and is buggy. There is a device detection tool that can be used for either OS so you can see in advance if your hardware is probably supported. OpenSolaris contains programs that are generally more current then those that are offered by Solaris.
    alan

  • Dual boot Solaris 8 and Windows XP

    Hello. I currently have windows xp as my OS. I would like to install Solaris 8 as a secondary OS. I have a separate hard drive I would like to put Solaris on. My question is, will the solaris installation allow me to choose which drive to install solaris to? Also, how can I set up my system to boot windows if I do nothing, but boot solaris if I choose to? Thanks for any help, I'm new to solaris and to dual-booting.

    Try this URL:
    http://sun.pmbc.com/faq/9.html
    Hope it helps.
    Senthilkumar
    Developer Technical Support
    Sun Microsystems, Inc.
    http://www.sun.com/developers/support

  • Installation of Solaris 10 on AMD Athlon processor

    hi,
    I am trying to install Solaris 10 version on AMD processor(X86 platform). I am using DVD for installation. I am able to complete installation untill system indentification & initialization. After that i am getting problem at the Solaris Install process.
    I am stuck at Solaris Install Window.
    These are the messages i am having in Solaris Install Window.
    Preparing system for Solaris Install
    Configuring disk ( c0d0 )
    - creating fdisk partition table
    - creating solaris disk label ( VTOC )
    - processing the alternate sector slice
    Creating X86boot partition
    - creating file system on fdisk partition c0d0p1
    Creating & checking UFS file systems
    - creating / ( c0d0s0 )
    Error : File system failed for / ( c0d0s0 )
    Error : could not check or create system critical file system
    Error : could not update disks with new configuration
    mkdir : "/a/var/sadm/launcher" : read only file system
    could not update disks with new configuration
    After this,nothing is happening....
    Can you please somebody help me in this regard.
    I am very thankfull to you people....
    boot version 4.02
    egarly waiting for your help....
    Thanks very much
    with regards
    kalyan

    I've had the same problem when trying to install it, in my case the disklabel was created with parted and caused the problems. I've relabeld the disk by booting into single user mode from cdrom and executing these commands:
    # dd if=/dev/zero of=/dev/rdsk/c0t0d0s0 bs=1024 count=20
    # format
    (select the disk ('0') and 'label' it)
    (verify the label and quit)
    # reboot
    (installation questions)
    Preparing system for Solaris install
    Configuring disk (c0t0d0)
    - Creating Solaris disk label (VTOC)
    Creating and checking UFS file systems
    - Creating / (c0t0d0s0)
    - Creating /var (c0t0d0s1)
    - Creating /usr (c0t0d0s6)
    [...]

  • Ffmpeg installation on Solaris 10 AMD opteron processor

    Hi All,
    I would like to know whether ffmpeg can be installed on Solaris 10 AMD opteron processor.
    -BR

    I've had the same problem when trying to install it, in my case the disklabel was created with parted and caused the problems. I've relabeld the disk by booting into single user mode from cdrom and executing these commands:
    # dd if=/dev/zero of=/dev/rdsk/c0t0d0s0 bs=1024 count=20
    # format
    (select the disk ('0') and 'label' it)
    (verify the label and quit)
    # reboot
    (installation questions)
    Preparing system for Solaris install
    Configuring disk (c0t0d0)
    - Creating Solaris disk label (VTOC)
    Creating and checking UFS file systems
    - Creating / (c0t0d0s0)
    - Creating /var (c0t0d0s1)
    - Creating /usr (c0t0d0s6)
    [...]

Maybe you are looking for