LinuxQuestions.org
Help answer threads with 0 replies.
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, 12:41 PM   #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, 01:01 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 22,217

Rep: Reputation: 5962Reputation: 5962Reputation: 5962Reputation: 5962Reputation: 5962Reputation: 5962Reputation: 5962Reputation: 5962Reputation: 5962Reputation: 5962Reputation: 5962
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


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

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

All times are GMT -5. The time now is 02:22 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration