From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Fred Leung Newsgroups: gmane.os.tru64.managers Subject: Summary: chroot command Date: Thu, 09 Sep 2004 12:08:40 +1000 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <3.0.32.20040909120839.008bbac0@mouse.ccf.health.nsw.gov.au> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1094695844 17552 80.91.224.253 (9 Sep 2004 02:10:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 9 Sep 2004 02:10:44 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Thu Sep 09 04:10:29 2004 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 1C5EOK-0003je-00 for ; Thu, 09 Sep 2004 04:10:28 +0200 Original-Received: (qmail 31876 invoked by uid 5); 9 Sep 2004 02:10:16 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 31861 invoked by uid 49501); 9 Sep 2004 02:10:16 -0000 Original-Received: from fleun@doh.health.nsw.gov.au by sws1 by uid 49491 with qmail-scanner-1.21 (clamdscan: 0.70-rc. iscan: v3.1/v5.600-1011/847/50540. spamassassin: 2.63. Clear:RC:0(160.91.4.110):SA:0(-4.9/5.0):. Processed in 1.532497 secs); 09 Sep 2004 02:10:16 -0000 Original-Received: from unknown (HELO emroute3.ornl.gov) (160.91.4.110) by 0 with SMTP; 9 Sep 2004 02:10:14 -0000 Original-Received: from emroute3.ornl.gov (localhost [127.0.0.1]) by emroute3.ornl.gov (PMDF V6.2-X27 #30899) with ESMTP id <0I3R00D9C4OZX3@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 08 Sep 2004 22:10:13 -0400 (EDT) Original-Received: from VIRUSCAN-DAEMON.emroute3.ornl.gov by emroute3.ornl.gov (PMDF V6.2-X27 #30899) id <0I3R00F024O98H@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 08 Sep 2004 22:09:46 -0400 (EDT) Original-Received: from [203.5.110.194] (burnia.dmz.health.nsw.gov.au [203.5.110.252]) by emroute3.ornl.gov (PMDF V6.2-X27 #30899) with SMTP id <0I3R00ECB4O72I@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 08 Sep 2004 22:09:45 -0400 (EDT) Original-Received: from bablia.ccf.health.nsw.gov.au by [203.5.110.194] via smtpd (for smtp.ornl.gov [160.91.4.118]) with SMTP; Thu, 09 Sep 2004 12:09:44 +1000 Original-Received: from mouse.ccf.health.nsw.gov.au ([10.192.128.9]) by health.nsw.gov.au (PMDF V6.2-X27 #30538) with SMTP id <01LENVK493F8006687@health.nsw.gov.au> for tru64-unix-managers@ornl.gov; Thu, 09 Sep 2004 12:09:29 -0500 (EST) Original-Received: from [10.192.128.108] by mouse.ccf.health.nsw.gov.au (5.65v4.0/1.1.19.2/09Apr99-0306PM) id AA14236; Thu, 09 Sep 2004 12:09:28 +1000 X-Sender: fleun@mouse.ccf.health.nsw.gov.au (Unverified) Original-To: tru64-unix-managers@ornl.gov X-Mailer: Windows Eudora Pro Version 3.0 (32) Xref: main.gmane.org gmane.os.tru64.managers:7537 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:7537 Thanks for the 2 responses i received and in particular many thanks to Lucien HERCAUD who gave me a file list to follow and fixed my problem. To summarise, the files i missed copying to make=20 chroot working are those from the directories usr/shlib and etc/sia.=20 Fred. __________________________________________________________ >>> 08/09/2004 18:48:21 >>> you need the loader and the *.so libraries (you have them but no need for the .a ones) and the /tcb and /etc/sia/. I attach a list of the files I use in a RUNNING CHROOT ENVIRONMENT (for ftpd) =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D # ls -R usr var tcb sbin etc bin dev bin: ls dev: log null etc: auth ftpusers group passwd shells sia svc.conf etc/auth: subsystems system etc/auth/subsystems: .new..users .proto..users users etc/auth/system: #.mrg..files .new..files .proto..default .proto..ttys files .new..authorize .new..subsystems .proto..devassign authorize subsystems .new..default .new..ttys .proto..files default ttys .new..devassign .proto..authorize .proto..subsystems devassign ttys.db etc/sia: .new..bsd_matrix.conf .proto..bsd_matrix.conf OSFC2_matrix.conf matrix.conf .new..matrix.conf .proto..matrix.conf bsd_matrix.conf siainitgood sbin: cat loader ls sh tcb: bin files lib tcb/bin: authck convauth convuser edauth pwpolicy tcb/files: auth auth.db subsys tcb/files/auth: a b c d e f g h i j k l m n o p q r s t u v w x y z tcb/files/auth/a: .new..adm .new..auth .proto..adm .proto..auth adm auth tcb/files/auth/b: .new..bin .proto..bin bin tcb/files/auth/c: .new..cron .proto..cron cron tcb/files/auth/d: .new..daemon .proto..daemon daemon tcb/files/auth/e: tcb/files/auth/f: tcb/files/auth/g: tcb/files/auth/h: tcb/files/auth/i: tcb/files/auth/j: tcb/files/auth/k: tcb/files/auth/l: .new..lp .proto..lp lp tcb/files/auth/m: tcb/files/auth/n: tcb/files/auth/o: tcb/files/auth/p: tcb/files/auth/q: tcb/files/auth/r: .new..ris .new..root .proto..ris .proto..root ris root tcb/files/auth/s: tcb/files/auth/t: .new..tcb .proto..tcb tcb tcb/files/auth/u: .new..uucp .new..uucpa .proto..uucp .proto..uucpa uucp uucpa tcb/files/auth/v: tcb/files/auth/w: tcb/files/auth/x: tcb/files/auth/y: tcb/files/auth/z: tcb/lib: initcond usr: sbin shlib usr/sbin: ftpd ftpd.20000329.nr ftpd.20010226.lh ftpd.20030127.lh usr/shlib: libaud.so libc.so libdb.so libm.so libsecurity.so var: tcb var/tcb: audit files var/tcb/audit: deselection selection var/tcb/audit/deselection: deselection_sample var/tcb/audit/selection: selection_sample var/tcb/files: auth.db auth.db_tmp_w auth_db.tar.sav2 jjeanbar_tmp auth.db_200207401_wr auth_db.tar.sav jjean_tmp subsys var/tcb/files/subsys: auth backup cron lp mem sysadmin tape terminal uucp =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Cordialement , _________________________________________________=20 Lucien HERCAUD ( 6.42.60 ) mailto:lhercaud@bouyguestelecom.fr Support N3 H=E9b. - Expert UNIX @ /DCSI/DEB/HSI/HFI=20 P=F4le Op=E9rationnel Syst=E8me H=E9bergeur Europa H - Aile 1A/26 Bouygues Telecom 24 avenue de l'Europe - 78944 V=E9lizy FRANCE *(+33)1.39.45.42.60 *(+33)1.39.45.43.32 *(+33)6.09.44.28.80 -----Message d'origine----- De: tru64-unix-managers-owner@ornl.gov=20 [mailto:tru64-unix-managers-owner@ornl.gov]De la part de Fred Leung Date: mercredi 8 septembre 2004 03:47 =C0: tru64-unix-managers@ornl.gov=20 Objet: chroot command hello t64-managers, i couldn't get the chroot command working on a T64 v5.1a or v4.x=20 machine. Any idea what i have missed? When i issueed 'chroot /prod1 /bin/ksh' or 'chroot /prod1 /bin/ls -l trash' It didn't give me an error message nor give me a subshell. it appeared as if it finished processing the command instantaneously but with no result. Below are the files and subdirectories i copied across from=20 the real root to /prod1. what are the minimum setup files that needs to be copied across? Thanks for any responds. Frederick. fleun@doh.health.nsw.gov.au=20 _________________________________________ test:/prod1>ls -Rl sbin shlib usr etc etc: total 24 drwxr-xr-x 2 root system 8192 Aug 30 16:44 . drwxr-xr-x 17 root system 8192 Aug 30 17:23 .. -rwxr-xr-x 1 root system 655 May 11 14:52 group -rw-r--r-- 1 root system 6067 Aug 27 11:28 passwd -rwxr-xr-x 1 bin bin 108 Apr 3 2000 shells sbin: total 536 drwxr-xr-x 2 root system 8192 Sep 8 10:48 . drwxr-xr-x 17 root system 8192 Aug 30 17:23 .. -rwxr-xr-x 2 bin bin 270336 Feb 9 2000 ksh -r-xr-xr-x 1 bin bin 131072 Jul 11 1999 loader -rwxr-xr-x 2 bin bin 131072 Jan 7 1999 sh shlib: total 3672 drwxr-xr-x 2 root system 8192 Mar 17 2000 . drwxr-xr-x 17 root system 8192 Aug 30 17:23 .. -rw-r--r-- 1 bin bin 1662096 Feb 9 2000 libc.so -rw-r--r-- 1 bin bin 1662096 Feb 9 2000 libc_r.so -rw-r--r-- 1 bin bin 40960 Feb 9 2000 libfilsys.so -rw-r--r-- 1 bin bin 81920 Feb 9 2000 libmsfs.so -rw-r--r-- 1 bin bin 294912 Jul 10 1999 libvxvm.so usr: total 32 drwxr-xr-x 4 root system 8192 Aug 30 16:59 . drwxr-xr-x 17 root system 8192 Aug 30 17:23 .. drwxr-xr-x 2 root system 8192 Aug 30 17:06 bin drwxr-xr-x 2 root system 8192 Aug 30 17:02 lib usr/bin: total 458 drwxr-xr-x 2 root system 8192 Aug 30 17:06 . drwxr-xr-x 4 root system 8192 Aug 30 16:59 .. -rwxr-xr-x 1 bin bin 1518 Dec 30 1997 cd -rwxr-xr-x 2 bin bin 270336 Feb 9 2000 ksh -rwxr-xr-x 1 bin bin 32768 Dec 30 1997 ls -rwxr-xr-x 1 bin bin 16384 Dec 30 1997 pwd -rwxr-xr-x 2 bin bin 131072 Jan 7 1999 sh usr/lib: total 16829 drwxr-xr-x 2 root system 8192 Aug 30 17:02 . drwxr-xr-x 4 root system 8192 Aug 30 16:59 .. -rwxr-xr-x 1 bin bin 4115 Dec 30 1997 lib.b -rw-r--r-- 1 bin bin 11418 Jan 6 1998 libAF.a . . . -rw-r--r-- 1 bin bin 1620 Jan 6 1998 liby.a