Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
chroot ssh login problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
meez
n00b
n00b


Joined: 25 Jul 2004
Posts: 33

PostPosted: Wed Dec 14, 2005 10:12 am    Post subject: chroot ssh login problem Reply with quote

I used the chroot script to create chroot homes for special unsers, but there ist a probleme with one lib for bash.
Because the output from ldd /bin/bash gives me a strange output:

Code:
 scripts # ldd  /bin/bash
        linux-gate.so.1 =>  (0xffffe000)
        libdl.so.2 => /lib/libdl.so.2 (0xb7f21000)
        libc.so.6 => /lib/tls/libc.so.6 (0xb7e06000)
        /lib/ld-linux.so.2 (0xb7f2a000)


and because of the missing col in this listing, I can't grep the right libs for creating the chroot home. This is very strange, because on an other gentoo server the script works perfect, and there the output from ldd has the missing col. What to do, to get the missing col from ldd output?

greetings,

Martin
Back to top
View user's profile Send private message
dgaffuri
Advocate
Advocate


Joined: 05 Jun 2005
Posts: 2078
Location: Italy

PostPosted: Wed Dec 14, 2005 10:40 am    Post subject: Reply with quote

If for missing col you mean that ldd can't find linux-gate.so.1, that's not a real library
http://www.trilithium.com/johan/2005/08/linux-gate/
and ldd output is quite normal.
_________________
Adopt an unanswered post
If you feel that your problem has been solved please edit the top post and add [solved] to the subject
Back to top
View user's profile Send private message
meez
n00b
n00b


Joined: 25 Jul 2004
Posts: 33

PostPosted: Wed Dec 14, 2005 4:17 pm    Post subject: not the missing linux-gate Reply with quote

No, linux-gate is not the Problem.
But it shoud be:
Code:

ldd /bin/bash
  libncurses.so.5 => /lib/libncurses.so.5 (0x4001b000)
  libdl.so.2 => /lib/libdl.so.2 (0x40060000)
  libc.so.6 => /lib/libc.so.6 (0x40063000)
  /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)


this line is the important one:
Code:
  /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)


greetings,

Martin
Back to top
View user's profile Send private message
dgaffuri
Advocate
Advocate


Joined: 05 Jun 2005
Posts: 2078
Location: Italy

PostPosted: Wed Dec 14, 2005 8:15 pm    Post subject: Reply with quote

Sorry for the noise then. BTW, I've exactly the same output.
_________________
Adopt an unanswered post
If you feel that your problem has been solved please edit the top post and add [solved] to the subject
Back to top
View user's profile Send private message
meez
n00b
n00b


Joined: 25 Jul 2004
Posts: 33

PostPosted: Wed Dec 14, 2005 8:18 pm    Post subject: no prob Reply with quote

I solved the prob by adding this lib to my programms array, so it's copied even if it is no programm :-).

But why is my output from ldd /bin/bash different to to output discribed by all others?

Greetings,

Martin
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum