LinuxQuestions.org
Review your favorite Linux distribution.
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 11-24-2008, 09:28 AM   #1
vonedaddy
Member
 
Registered: Aug 2004
Location: Philadelphia,PA
Posts: 177

Rep: Reputation: 17
vsftp jail and mounted files systems


I have a ftp server setup for our organization. I wanted to jail users in their home directory so they can not download any sensitive files.

Added this line to the vsftpd.conf file:
chroot_local_user=YES

Which did the trick just fine.

BUt, We have a CIFS mounted share that some people need access to. It is mounted as follows:

//Server/Share /Sharename

So it is mounted in the root directory. I then had symbolic links pointing to the folders inside this share in the users home directory to allow them to get to these files (read only via fstab).


Now when I jail them the symbolic links show up but they are unable to follow them since they are jailed.

Any ideas for a workaround?
 
Old 11-24-2008, 12:30 PM   #2
Slacker_Rex
Member
 
Registered: Aug 2003
Location: Arkansas
Distribution: Slackware 12.2
Posts: 104

Rep: Reputation: 15
I am not sure if it will work or not, but you could try using the mount command (for the share you want to provide them access to) with the -bind option. I believe that will take care of what you are trying to accomplish.
 
  


Reply

Tags
chroot, cifs, jail, vsftpd


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
read & modify files out side chroot jail Dr_Death_UAE AIX 2 11-06-2008 05:24 AM
How to Mount bin and sbin directories as readonly mounted file systems Larry James Fedora 8 10-21-2008 11:40 AM
mount: too many mounted file systems ferdinand2 Linux - Hardware 0 01-23-2006 12:13 PM
sftp chroot jail, not able to find lib files drolic Linux - Security 3 11-23-2005 11:57 AM
vsftp - locking files? amanu1 Linux - Software 1 11-15-2003 07:46 AM


All times are GMT -5. The time now is 11:30 PM.

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