LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 05-18-2007, 11:29 AM   #1
elitecodex
Member
 
Registered: Feb 2004
Location: MD
Distribution: Fedora 9
Posts: 129

Rep: Reputation: 15
Virtual SSH Hosting


Hello everyone.

I am in the process of attempting to setup a system that will act as a remote fileserver for guys out in the field. I want to use something like SftpDrive to a linux server that will contain the files.

I want to use virtual user hosting (perferably through MySQL for ease of management). However, I also want to use chroot() to ensure that they only have access to a specific directory. I also do not want them to have a valid shell (so they cannot use putty.exe or something to login).

I contemplated using PAM with the pam_mysql and pam_chroot. If I have to, I will roll my own pam module, but I was wondering if there was something out there that already does this? Basically gets the username, password and 'home directory' for a user and locks them into it for a SSH session?

Also, what would my /etc/pam.d/sshd look like?

This doesn't seem to far fetched, so Im assuming its been done somewhere. Thanks for any input.
 
Old 05-18-2007, 11:52 AM   #2
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
Hi.

Why not use vsftpd with SSL
http://www.brennan.id.au/14-FTP_Server.html

You can then chroot your users, and they won't need a shell account.

Dave
 
Old 05-18-2007, 11:54 AM   #3
elitecodex
Member
 
Registered: Feb 2004
Location: MD
Distribution: Fedora 9
Posts: 129

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by ilikejam
Hi.

Why not use vsftpd with SSL
http://www.brennan.id.au/14-FTP_Server.html

You can then chroot your users, and they won't need a shell account.

Dave
hmmm... I can live with that. Now I just have to find something that will mount a FTP over SSL to a windows drive. Another option I'll keep open.
 
Old 05-18-2007, 12:21 PM   #4
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
Google turned up WebDrive:
http://www.webdrive.com/products/webdrive/index.html

It'll cost you though. Just a thought.
 
Old 05-18-2007, 12:29 PM   #5
rtspitz
Member
 
Registered: Jan 2005
Location: germany
Distribution: suse, opensuse, debian, others for testing
Posts: 307

Rep: Reputation: 32
why not just use winscp ?
 
Old 05-18-2007, 12:34 PM   #6
Electro
Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Look into WebDAV. In Windows and Mac, users can set it up like a drive. In Linux mounting WebDAV is easy with davfs2, but it is not compatible with filenames and directories that has a % and other strange characters. I use cadaver to access WebDAV servers.
 
  


Reply

Tags
mysql, pam, ssh, virtual


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
SSH Virtual Hosting erat123 Linux - Security 2 11-17-2006 09:42 AM
Virtual Hosting bstuart Linux - Software 1 06-19-2005 11:26 AM
virtual hosting setenv02 Linux - General 6 05-05-2005 02:35 AM
Virtual hosting... id10t Linux - Networking 4 02-02-2004 05:43 PM
Virtual Hosting - what does it actually do? gevers1 Linux - General 3 02-01-2004 09:28 AM


All times are GMT -5. The time now is 01:24 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration