× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi Holger,

Here's the commands/output without the commentary. I just tried it on my
v7.2 system and it is working as expected (IBM i version shouldn't matter
as long as you're v7.1+, though earlier versions may work too)

$ ssh ibmiuser@myibmi
$ pwd
/home/AARON
$ mkdir chroot2
$ chroot
usage: chroot rootdir command
$ chroot chroot2 /QOpenSys/usr/bin/bsh
/QOpenSys/usr/bin/bsh: No such file or directory
$ mkdir -p chroot2/QOpenSys/usr/bin
$ cp /QOpenSys/usr/bin/bsh chroot2/QOpenSys/usr/bin
$ chroot chroot2 /QOpenSys/usr/bin/bsh
Killed
$ mkdir -p chroot2/usr/lib
$ cp /lib/libc.a chroot2/usr/lib
$ cp /lib/libcrypt.a chroot2/usr/lib
$ chroot chroot2 /QOpenSys/usr/bin/bsh
$ ls <---- inside chroot at this point, that's what 'ls' isn't
found, because we didn't copy it into chroot2.
ls: not found



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


On Thu, Aug 11, 2016 at 3:50 PM, Holger Scherer <hs@xxxxxxx> wrote:

$ ls -la
total 896
drwxrws--- 3 holger 0 8192 Aug 11 20:00 .
drwxrwsrwx 1125 qsys 0 434176 Aug 11 18:28 ..
-rw------- 1 holger 0 872 Aug 11 20:06 .sh_history
drwxrwsrwx 4 holger 0 8192 Aug 11 20:01 chroot1
$

nothing special? :)


-h

Am 11.08.2016 um 22:29 schrieb Aaron Bartell <aaronbartell@xxxxxxxxx>:

In the parent directory of chroot1, run the following command to learn
what
the perms are for chroot1:


--
This is the IBMi Open Source Roundtable (OpenSource) mailing list
To post a message email: OpenSource@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/opensource
or email: OpenSource-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/opensource.


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.