LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-31-2006, 01:09 PM   #1
TotalDefiance
Member
 
Registered: Jan 2004
Distribution: Slackware, RH, WBEL
Posts: 65

Rep: Reputation: 15
chrooted SFTP + FTP server


haven't found anything on the unification of these two protocols...


we'd like to build an ftp/sftp appliance, allowing both protocols if needed. one user can have the possibility ofg logging in via ftp, or sftp, and be chrooted in the same directory. I know this is technically possible, but would be an administrative nightmare if managed seperately.

so...has anyone heard of or implemented an integrated ftp/sftp system like what I am describing?

much thanks.
 
Old 11-02-2006, 09:25 AM   #2
TotalDefiance
Member
 
Registered: Jan 2004
Distribution: Slackware, RH, WBEL
Posts: 65

Original Poster
Rep: Reputation: 15
I forgot to note that we would preferably like to use sldap/ldap to authenticate users, which means that it should ideally be possible even to setup ftp/sftp systems seperately.... but with the same chrooted environments.....hmmm
 
Old 12-07-2006, 03:48 PM   #3
mattdyke
LQ Newbie
 
Registered: Sep 2006
Distribution: Slackware 10.2, Slackware 11, Slackware 12.2, Slamd64 12.2, Slackware 13
Posts: 19

Rep: Reputation: 0
I have not heard of this, but i am also trying to do the same.. The problem as i have seen it is that i can't have something like RSSH as a virtual shell for the users and still have them be able to login using FTP with the same name, because of the restrictions set forth by RSSH allowing only certian connections.

If there is a way to copy over or dynamically link FTP services to users while using a different shell or copying over the libs as you would do with a normal chroot enviroment, but every option that i have tried has not come up with anything useful results.. if anyone has any ideas please advise
 
Old 12-07-2006, 10:44 PM   #4
TotalDefiance
Member
 
Registered: Jan 2004
Distribution: Slackware, RH, WBEL
Posts: 65

Original Poster
Rep: Reputation: 15
sadly, the need for this was erased due to a file transfer appliance utilizing https being purchased.


my end conclusion was to setup chrooted ftp and ssh/scp services separately. however, both would use ldap and refer to the same directory regardless of services used to connect. this way, it would *appear* to the end user to be the same (since the chroot location would be the same either way). this would minimize management by utilizing ldap, so it's not as if user account would have to be created twice (once for ftp, once for ssh). you could us the local passwd file as well of course as an authentication source for both.

for example, if the user JohnFoo authenticated:

$LDAP_user=JohnFoo

ftp would chroot to: /home/jail/home/$LDAP_user/

and

ssh would chroot to: /home/jail/home/$LDAP_user/


problem solved!....conceptually

Last edited by TotalDefiance; 12-07-2006 at 10:47 PM.
 
1 members found this post helpful.
Old 12-08-2006, 09:37 AM   #5
mattdyke
LQ Newbie
 
Registered: Sep 2006
Distribution: Slackware 10.2, Slackware 11, Slackware 12.2, Slamd64 12.2, Slackware 13
Posts: 19

Rep: Reputation: 0
Thanks ill try it that way then .. ill just have to read a bit more on LDAP, since i only know a little about it
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Chrooted sftp - complete list of things to do? rose_bud4201 Linux - Networking 2 09-26-2006 07:30 PM
Problem with Scponly and chrooted SFTP kicko Mandriva 2 07-14-2006 02:10 PM
FC3 : Failing to configure a chrooted sftp gmuller Linux - Software 3 06-28-2005 02:39 AM
Jailed(chrooted) users and ftp linux_terror Linux - Security 4 08-29-2004 07:56 PM
Files truncated by sftp/sftp-server at 65kb gato Linux - Networking 1 12-18-2003 11:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration