a backup server by RSYNC + SSH in a chrooted environment

Discussion in 'Server Operation' started by paguira, Aug 21, 2008.

  1. paguira

    paguira New Member

    Good morning,
    I try to set up a backup server by RSYNC + SSH in a chrooted environment.
    Only SCP, SFTP and RSYNC will be used and usable for users.
    And I want to establish quotas for these users.
    I use CentOS5 note Fedora
    I tested script:

    http://www.howtoforge.com/chroot_ssh_sftp_fedora7_p2

    But in both cases, when I connect with the user's account I have an immediate disconnection

    I tested the script "make_chroot_jail.sh" according to the following procedure:
    http://www.howtoforge.com/chroot_ssh_sftp_fedora7_p2

    I had the following problem:
    What I set like this:
    comment "requiretty Defaults" in "/etc/sudoers"

    ld-lsb.so.1 is replaced by ld-lsb.so.3 in the script "make_chroot_jail.sh" REDHAT

    Nevertheless I find it impossible to connect me with ssh and WinSCP, I have an immediate disconnection, my logs:


    P.S: excused my English, I'm french Reply With Quote
     
  2. falko

    falko Super Moderator

    Did you get any errors when you ran the script?
    Is the chrooted user listed in /home/chroot/etc/passwd and /home/chroot/etc/shadow?
     
  3. paguira

    paguira New Member

    I have no error.

    Except with "libxcrypt"
    But according to the tutorial "HowForge" This is not a problem

    I forget to say that I'm on CentOS 5

    /home/chroot/etc/passwd


    Code:
    root:x:0:0:root:/root:/bin/bash
    utilisateur:x:500:500::/home/utilisateur:/bin/bash
    /home/chroot/etc/shadow

    Code:
    utilisateur:$1$3lXATEfy$.ttLr/IFf.3VPXo4qjgTq0:14112:0:99999:7:::
     
  4. falko

    falko Super Moderator

    Not sure if this is the problem, but did you disable SELinux?
     

Share This Page