LinuxQuestions.org
Review your favorite Linux distribution.
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 04-25-2003, 01:38 AM   #1
mrsolo
Member
 
Registered: Jun 2002
Location: Where ever the Navy sends me
Distribution: Gentoo
Posts: 320

Rep: Reputation: 30
Virtual Folders


Well, I am trying to configure my FTP server with some virtual folders under a chrooted environment. I think in linux they are called symlinks. Any way, when users log onto my ftp, they are immediately sent to their home directory in a chroot environment. I want to link to another part of my harddrive that isn't in their chroot path. How do I make a link so that they can go to that other folder?
 
Old 04-25-2003, 03:53 AM   #2
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,185

Rep: Reputation: 52
what you've said works.
before chrooting, in a subdir in the chroot environment
ln -s directorytolink nameoflink
then when they are chrooted into it,
they can cd nameoflink, and woot, there it is.
that was probably the first time i ever typed woot,
by the way
 
Old 04-25-2003, 03:57 AM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,332
Blog Entries: 55

Rep: Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533
If you say they are sent to their chroot, which you didn't expect, you want to change their home dir in the ftpd config if that's what you mean.
If OTOH you want to add dirs *under* the users home you could try using the --bind flag to mount the dirs, but I'd hope any decent ftpd will deny access, what you're trying to do defeats the purpose of chrooting AFAIK.
 
Old 04-25-2003, 05:06 PM   #4
mrsolo
Member
 
Registered: Jun 2002
Location: Where ever the Navy sends me
Distribution: Gentoo
Posts: 320

Original Poster
Rep: Reputation: 30
My users will log into their chrooted envirnment which is specified by their home dirs. I have a symlink to a different folder called media in each home directory. When they try to change to that directory, I get the error, failed to change directory. Anything else that I can do?
 
Old 04-25-2003, 05:38 PM   #5
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,185

Rep: Reputation: 52
maybe you could make an actual directory in the users
directory called media, and have a script that softlinks
or hardlinks the files in the media directory to the users
directory.
 
Old 04-25-2003, 10:04 PM   #6
mrsolo
Member
 
Registered: Jun 2002
Location: Where ever the Navy sends me
Distribution: Gentoo
Posts: 320

Original Poster
Rep: Reputation: 30
since vsftp is so secure, would it not allow symlinks to work correctly? Would proftpd work better at it?
 
  


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
vsftpd, web uploads, vsftpd virtual users, apache virtual hosts, home directories jerryasher Linux - Software 7 02-18-2007 07:29 AM
virtual hosts, virtual ip's? kuplo Linux - Newbie 3 11-29-2005 09:44 PM
What are those folders? Ephracis LQ Suggestions & Feedback 2 02-25-2005 09:34 AM
So many folders merchtemeagle Linux - Newbie 4 10-07-2004 09:23 AM
what are those folders in a / jpkeisala Linux - Newbie 6 04-18-2004 02:16 PM


All times are GMT -5. The time now is 09:23 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