In order to access databases from a chroot environment you would use the
SQL connect to the database name of the server you want, just like you
would if the PHP server was running on one system, and the database server
was on a second system. Certainly you would be able to web services and
toolkit functions to access traditional IBM i programs/objects as needed.
The local QSYS.LIB environment acts and feels like a remote system at that
point.

On Tue, Oct 27, 2015 at 10:47 AM, Mike Pavlak <mike.p@xxxxxxxx> wrote:

Hi Vern,

I am learning this, too. Per Aaron's previous note, you cannot access
QSYS.LIB from Chroot. Actually, that is the point. You can't get anywhere
from a Chroot, which is why it is often times referred to as a jail. You
are locked in there by the sys admin and you can't get anywhere else
without special features like DRDA access in PHP or the XML Toolkit, etc.
The chroot is actually past the qsys.lib file system and once you're in
the chroot, you cannot look at other directory structures outside of the
chroot. You can have all the directories, and your own PASE environment
in the chroot, but you cannot mount qsys.lib. The native environment
cannot be accessed via the file system.

This is actually a good thing as you can also not harm anything outside
the chroot, which is also the point. Harm accidental or intended is
isolated to the chroot.

Hope this helps!

Mike Pavlak
Cell: (408)679-1011 Office: (708)233-5880

-----Original Message-----
From: WEB400 [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Vernon
Hamberg
Sent: Tuesday, October 27, 2015 10:06 AM
To: Web Enabling the IBM i (AS/400 and iSeries)
Subject: Re: [WEB400] chroot, Doctrine, ZendFrameWork

Hmm - allow me to press a bit more - so if you chroot to the IASP's
directory, /IASPVERN, and there are programs in /IASPVERN/QSYS.LIB, that
you can call such a program from some PHP or node.js app in the IASP?

I imagine we are keeping a library list thing separate from IFS path here,
right? That a program in /IASPVERN/QSYS.LIB will operate with the library
list and have access to library objects outside of the chroot environment,
but they can't operate on anything in the IFS that is outside the chroot
environment?

I hope I make a little sense - as often, VERY little!!

Vern

On 10/27/2015 7:49 AM, Aaron Bartell wrote:
I suppose you could get at data in the QSYS.LIB that shows up within
an
IASP - but not be able to run programs - am I getting it?

If you have authority you can access data and call programs.

Aaron Bartell
litmis.com - Services for open source on IBM i

--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing
list To post a message email: WEB400@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/web400.
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing
list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.