Chrooted SSH HowTo question???

Discussion in 'HOWTO-Related Questions' started by ctroyp, Jan 19, 2006.

  1. falko

    falko Super Moderator Howtoforge Staff

    What's the output of
    Code:
    ls -la /home/chroot
    ? What's in /etc/passwd?
     
  2. seanheng

    seanheng New Member

    ls -la home/chroot result

    this is the output

    total 36
    drwxr-xr-x 8 root root 4096 Aug 27 17:45 .
    drwxr-xr-x 3 root root 4096 Aug 27 17:43 ..
    drwxr-xr-x 2 root root 4096 Aug 30 17:11 bin
    drwxr-xr-x 2 root root 4096 Aug 27 17:45 dev
    drwxr-xr-x 2 root root 4096 Aug 27 17:48 etc
    drwxr-xr-x 3 root root 4096 Aug 30 16:56 home
    drwxr-xr-x 2 root root 4096 Aug 27 17:47 lib
    drwxr-xr-x 4 root root 4096 Aug 27 17:46 usr


    in the /etc/passwd is

    root:x:0:0:root:/root:/bin/bash
    sean:x:500:100:sean:/home/chroot/./home/sean:/bin/bash
     
  3. seanheng

    seanheng New Member

    fedora 5 and chroot ssh

    anyone else has any ideas?
     
  4. falko

    falko Super Moderator Howtoforge Staff

    What's in /home/chroot/etc/passwd?
     
  5. seanheng

    seanheng New Member

    chroot

    this is in /home/chroot/etc/passwd


    root:x:0:0:root:/root:/bin/bash
    sean:x:500:100:sean:/home/chroot/./home/sean:/bin/bash
     
  6. falko

    falko Super Moderator Howtoforge Staff

    Looks ok, too... I don't have any ideas anymore, in order to help you I'd have to try this myself on Fedora...
     
  7. seanheng

    seanheng New Member

    thanks

    thanks for trying to help

    i cant figure out why either i did exactly from the howto and from the post
    unless im suppose to install the openssh-4.2p1-chroot a different way
     
  8. falko

    falko Super Moderator Howtoforge Staff

    The tutorial was written for Debian Sarge, so it's possible this doesn't work on Fedora.
     
  9. zaqavis

    zaqavis New Member

    Permission to directory

    Heee guys....
    My junior admin, I given him to permission on some command using sudo files.
    I want to given his id to change some different home direcotry files i.e (normal edit files) of different home directory users.

    HOW..........?
     
  10. falko

    falko Super Moderator Howtoforge Staff

    You must edit /etc/sudoers and allow him to use the chmod, chown, etc. commands.
     
  11. zaqavis

    zaqavis New Member

    X windows problem

    Dear guys,,,,,

    I have linux 8.0 and will attach KVM switch (monitor) .... when I give the command (startx) do not shows display , it is out of range.

    still command prompt is display .
     
  12. falko

    falko Super Moderator Howtoforge Staff

    What's Linux 8.0? :confused: Which distribution do you use?


    What's the exact error message? What's in the logs?
     
  13. zaqavis

    zaqavis New Member

    ls: /home/chroot: No such file or directory
     
  14. zaqavis

    zaqavis New Member

    X windows problem

    startx error.

    module loader
    fatal serve error could not open default font fixed.

    fatal IO error connection reset.

    Regards
    qavi
     
  15. falko

    falko Super Moderator Howtoforge Staff

    What are you trying to do? What does X have to do with chrooted SSH? :confused: Can you explain in more detail?
     
  16. zaqavis

    zaqavis New Member

    X windows problem

    I m just trying start X windows of linux.

    Regards
    Qavi
     
  17. falko

    falko Super Moderator Howtoforge Staff

    And how is this related to chrooted SSH? :confused:
     
  18. rv3000

    rv3000 New Member

    create_chroot_env.sh script is not universal
    check ldd $APP output
    i think there r now any libs in jailed /lib directory

    wish success
     
  19. zaqavis

    zaqavis New Member

    this is not realted to ssh. I m just ask
     
  20. falko

    falko Super Moderator Howtoforge Staff

    But this thread is about chrooted SSH. If you question is unrelated to this thread's topic, please open a new one.
     

Share This Page