Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
im wanting to setup an ftp. i just installed proftpd. and basically i would like all users with there own user names to logon in /home/ftp and in that folder have links to the shares, like...
games, mp3s, uploads, etc.
and when they go up out of that folder it return them to the /home/ftp.
i can do this quite easily bulletproof or servu in winblows, but dont have a clue in linux. ive read through many posts and looked at proftpd.com some.
can some one enlighten me or point me in a direction please.
Normally you cannot "symlink" to a folder outside, or below rather, your ftp root (/home/ftp). So you might be better off creating a seperate tree for all the directories you want to share to them, something like:
And have subdirectories with the applications you want to share. Then, edit your proftpd.conf file to have an entry:
And then everyone who ftp's in will start out in that folder.
The problem is not OS specific. You cannot access a file that virtually does not exist. DefaultRoot means "This is where the / of the drive is". Meaning, there really isn't anything outside of that directory tree. That's why you should copy the files, symlinks won't work.
You can mount above it. But then you'd have to make them all part of a group that owns those mount points.
I'll try to explain it better:
This entry tells the FTP Client that:
/var/ftp is now /
So as far as the FTP client is concerned, that is the uppermost directory, or lowermost whichever way you look at it. It's the equivilent to you going to your / partion:
And then trying to go lower:
So, now, assuming you understand that, if /var/ftp is now seen as / then anything "below" that is non-existant. Symlinks pointing outside of your root partition (DefaultRoot) are not there. It's pointing nowhere. Look at the symlink:
file ---> /home/data/file
Well since /var/ftp is now / and in /var/ftp there is no /home/data, /home/data/file does not exist.
1. Have to move the data above it:
if this data is on seperate partitions, you can mount those partitions at directories accessible by these users, above the /var/ftp directory. To do this, create the directories:
And then create an entry in fstab or mount with options:
mount -t ext3 /dev/hdx /var/ftp/data
Assuming it's an ext3 partition the users will have access to it by default. If it's something else, you'll need to use the -o (option) to specify options, such as umasks.
ok, so i think ive got it now.
ive got DefaultRoot /var/ftp in proftp.conf
and i decided symlinks werent gonna work so ive used mount
i had trouble mounting in fstab so what i did was in /etc/rc.local
i added mounts for all my shares...like...
mount --bind /storage/apps.iso /var/ftp/apps.iso
mount --bind /mnt/games /var/ftp/games
this seems to work fine. the only thing i have to do now is make user accounts and give the upload folder rights to the proper ppl.
hopefully that wont be that hard.
You're Welcome, and I'm glad you got it sorted out. If you still want to try the fstab way, go ahead and let us know a bit more info about what you are trying to mount, maybe the filesystem it exists on, and what you've tried.