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:
Quote:
|
sudo: user: sorry, you must have a tty to run sudo; TTY = unknown; PWD = /home/chroot/home/user; USER = root ...
|
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:
Quote:
Aug 13 15:49:24 rsync sshd[2797]: Accepted password for utilisateur from 192.168.23.199 port 1116 ssh2
Aug 13 15:49:24 rsync sshd[2797]: pam_unix(sshd:session): session opened for user utilisateur by (uid=0)
Aug 13 15:49:24 rsync sshd[2799]: subsystem request for sftp
Aug 13 15:49:24 rsync sudo: utilisateur : TTY=unknown ; PWD=/home/chroot/home/utilisateur ; USER=root ; COMMAND=/usr/sbin/chroot /home/jail /bin/su - utilisateur -c /usr$
Aug 13 15:49:24 rsync sshd[2797]: pam_unix(sshd:session): session closed for user utilisateur
|
P.S: excused my English, I'm french Reply With Quote
Recent comments
17 hours 30 min ago
17 hours 36 min ago
22 hours 34 min ago
1 day 5 hours ago
1 day 6 hours ago
1 day 7 hours ago
1 day 11 hours ago
1 day 18 hours ago
1 day 22 hours ago
1 day 23 hours ago