LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 02-16-2011, 11:41 AM   #1
tiedyeguy64
LQ Newbie
 
Registered: Oct 2004
Posts: 19

Rep: Reputation: 0
Tying WinSCP logins to specific directory


We have a Debian Lenny / Samba server sharing files on a LAN with Windows clients. We also have several remote users who login in via WinSCP to do simple file transfers. (A OpenVPN was too slow due to bandwidth issues.)

Is there a way to lock the WinSCP connections to a specific directory?

My first thought was to move the remote users' home directory to the portion of the directory tree shared via Samba:

usermod -d /data/public/ username

but that does not stop them from going up the directory tree.

Thanks.
 
Old 02-16-2011, 12:01 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by tiedyeguy64 View Post
We have a Debian Lenny / Samba server sharing files on a LAN with Windows clients. We also have several remote users who login in via WinSCP to do simple file transfers. (A OpenVPN was too slow due to bandwidth issues.)

Is there a way to lock the WinSCP connections to a specific directory? My first thought was to move the remote users' home directory to the portion of the directory tree shared via Samba:

usermod -d /data/public/ username

but that does not stop them from going up the directory tree.
Thanks.
What you're looking for is a chroot'ed SCP environment. This:
http://www.howtoforge.com/chroot_ssh_sftp_debian_etch

is a bit dated, but will definitely get you going.
 
  


Reply



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
Active Directory Authentication FC12 New user logins jgoodyear Linux - Security 0 03-11-2010 07:59 AM
LXer: Restricting SSH logins to specific groups on Ubuntu LXer Syndicated Linux News 0 12-25-2009 11:02 PM
Authenticate ssh logins against kerberos / Active directory rosv Linux - Security 1 09-11-2008 07:16 AM
Restrict Domain Logins on Specific Computer dwade Linux - Security 0 04-25-2007 10:02 AM
Searching a specific directory for a specific extension? RoaCh Of DisCor Linux - Newbie 3 08-13-2005 03:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:41 PM.

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