Discussion:
chroot - /dev/null permission denied
Erika Pacholleck
2000-05-20 12:28:57 UTC
Permalink
When I try the chroot method I get the message

/dev/null: permission denied
for configure scripts that use it like config.guess

rights are set this way:
scripts root.root
/dev/null crw-rw-rw- root sys 1,3

tried already with /dev/null root root - negative
Any ideas what else might be the reason?

Erika
--
Mail archive: http://www.pcrdallas.com/mail-archives/lfs-discuss
Unsubscribe: email lfs-discuss-***@linuxfromscratch.org and put
"unsubscribe" (without the quotation marks) in the body of the message
(no subject is required)
Gerard Beekmans
2000-05-20 13:04:43 UTC
Permalink
Adam Daniels
2000-05-20 13:59:53 UTC
Permalink
Hi,

I have completed LFS 2.3.2 (online version) up to the part where we chroot
and install the rest of the software. When I 'chroot $LFS bash' I get the
following error.

bash: error in loading shared libraries: libtermcap.so.2: cannot open shared
object file: No such file or directory

Now from what I remember of using a chroot, all libraries have to be located
within the chroot for it to operate properly, yet I never noticed termpcap
being installed before the chroot. It's a slack 7 system I am bootstrapping
off of and it has the correct libtermcap library. Has anybody else
encountered this problem and if so, has anybody a solution ?


Thanks,

Adam.

--
Mail archive: http://www.pcrdallas.com/mail-archives/lfs-discuss
Unsubscribe: email lfs-discuss-***@linuxfromscratch.org and put
"unsubscribe" (without the quotation marks) in the body of the message
(no subject is required)
Gerard Beekmans
2000-05-21 15:11:44 UTC
Permalink
Erika Pacholleck
2000-05-20 18:51:37 UTC
Permalink
Post by Erika Pacholleck
When I try the chroot method I get the message
/dev/null: permission denied
for configure scripts that use it like config.guess
scripts root.root
/dev/null crw-rw-rw- root sys 1,3
tried already with /dev/null root root - negative
Any ideas what else might be the reason?
------------
when you run as user root does it work then (perhaps it's not related
to the rights but something else)? And which package(s) give this
error?
Gerard Beekmans
------------

1. once it happened in native: I was normal user, tried to send to /dev/null
- result: permission denied, so did same as root : was OK
- conclusion: related to rights of /dev/null

2. with chrooted I am root when doing these things
- all static installed, trying now compiling glibc in chrooted which should work
- message came from configure script when trying to guess the hosttype

3. Compare native and chrooted:
- native: send echo msg to /dev/null -> OK, works
- chrooted: send echo msg to /dev/null -> permission denied
- in both systems /dev/null is identical.

Erika

--
Mail archive: http://www.pcrdallas.com/mail-archives/lfs-discuss
Unsubscribe: email lfs-discuss-***@linuxfromscratch.org and put
"unsubscribe" (without the quotation marks) in the body of the message
(no subject is required)
Gerard Beekmans
2000-05-21 15:14:47 UTC
Permalink
Loading...