LinuxÒÁµéÔ°ÂÛ̳'s Archiver

redflaglinux9.8 ·¢±íÓÚ 2003-11-10 23:50

chroot :command not found

[root@localhost lfs]# chroot $LFS /static/bin/env -i \

>HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
>PATH=/bin:/usr/bin:/sbin:/usr/sbin:/static/bin \
>/static/bin/bash --login

bash: chroot: command not found


---

I use redhat9,&lfs-4.0-rc1,

how to do with it?
---

redflaglinux9.8 ·¢±íÓÚ 2003-11-10 23:52

my input of chinese in rh9 cann't be found,
I have to use my poor Englinsh:D

redflaglinux9.8 ·¢±íÓÚ 2003-11-11 13:23

I"VE GOT IT,


Exactly. Redhat places many "system administration" commands in /sbin and then leaves /sbin out of the PATH of normat users. Depending on how you su to root it may not be in root's PATH either. Try replacing chroot with /sbin/chroot in the above. Also, if your not to far along try changing over to LFS 5.0 as another post mentioned.

Ò³: [1]

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.