LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Tags used in this thread
Popular LQ Tags , , ,

Reply
 
Thread Tools
Old 11-24-2008, 10:28 AM   #1
vonedaddy
Member
 
Registered: Aug 2004
Location: Philadelphia,PA
Posts: 104
Thanked: 2
vsftp jail and mounted files systems


[Log in to get rid of this advertisement]
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?
vonedaddy is offline  
Tag This Post , , ,
Reply With Quote
Old 11-24-2008, 01:30 PM   #2
Slacker_Rex
Member
 
Registered: Aug 2003
Location: Arkansas
Distribution: Slackware 12.2
Posts: 104
Thanked: 0
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.
Slacker_Rex is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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


All times are GMT -5. The time now is 10:09 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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration