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
chroot working are those from the directories
usr/shlib and etc/sia.
Fred.
__________________________________________________________
>>> <LHERCAUD_at_bouyguestelecom.fr> 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)
===========
# 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
============
Cordialement ,
_________________________________________________
Lucien HERCAUD ( 6.42.60 )
mailto:lhercaud_at_bouyguestelecom.fr <mailto:lhercaud_at_bouyguestelecom.fr>
Support N3 Héb. - Expert UNIX _at_ /DCSI/DEB/HSI/HFI
Pôle Opérationnel Système Hébergeur
Europa H - Aile 1A/26
Bouygues Telecom
24 avenue de l'Europe - 78944 Vélizy
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_at_ornl.gov
[mailto:tru64-unix-managers-owner_at_ornl.gov]De la part de Fred Leung
Date: mercredi 8 septembre 2004 03:47
À: tru64-unix-managers_at_ornl.gov
Objet: chroot command
hello t64-managers,
i couldn't get the chroot command working on a T64 v5.1a or v4.x
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
the real root to /prod1. what are the minimum
setup files that needs to be copied across?
Thanks for any responds.
Frederick.
fleun_at_doh.health.nsw.gov.au
_________________________________________
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
Received on Thu Sep 09 2004 - 02:11:55 NZST