nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

a backup server by RSYNC + SSH in a chrooted environment

This is a discussion on a backup server by RSYNC + SSH in a chrooted environment within the CentOS / RHEL / Fedora forums, part of the Linux Distribution category; Good morning, I try to set up a backup server by RSYNC + SSH in a chrooted environment. Only SCP, ...


Go Back   nixCraft Linux Forum > Linux Distribution > CentOS / RHEL / Fedora

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 08-21-2008, 02:58 AM
Junior Member
User
 
Join Date: Aug 2008
My distro: CentOS
Posts: 2
Rep Power: 0
paguira is on a distinguished road
Default a backup server by RSYNC + SSH in a chrooted environment

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 tested scripts:

How to: Restrict Users to SCP and SFTP and Block SSH Shell Access with rssh
Chrooted SSH/SFTP On Fedora 7 - Page 2 | HowtoForge - Linux Howtos and Tutorials

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

P.S: excused my English, I'm french
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-21-2008, 12:52 PM
monk's Avatar
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
My distro: Debian GNU/Linux
Posts: 482
Rep Power: 5
monk will become famous soon enough monk will become famous soon enough
Default

Do you see any error in /var/log/secure or /var/log/auth.log or /var/log/messages file while login?
__________________
May the force with you!
Reply With Quote
  #3 (permalink)  
Old 08-21-2008, 09:13 PM
Junior Member
User
 
Join Date: Aug 2008
My distro: CentOS
Posts: 2
Rep Power: 0
paguira is on a distinguished road
Default

I tested the script "make_chroot_jail.sh" according to the following procedure:
Chrooted SSH/SFTP On Fedora 7 - Page 2 | HowtoForge - Linux Howtos and Tutorials
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-file ldb.so.1 is replaced by ld-ldb.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
Reply With Quote
Reply

Bookmarks

Tags
chroot , ssh


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Desktop Environment forum? Johnny Utah Feedback & Site News 2 06-16-2008 04:23 AM
rsync pls help linuxmanjusha Web servers 1 10-23-2007 12:12 PM
MySql FTP server backup script zafar466 Shell scripting 3 09-25-2007 06:43 PM
Linux set environment variables in my shell chiku Shell scripting 1 12-30-2006 05:05 AM
user as chrooted enviorment gaurav_verm123 Linux software 1 08-28-2006 10:35 PM


All times are GMT +5.5. The time now is 03:54 AM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36