| Forum Home | ||||
| Press F1 | ||||
| Thread ID: 55820 | 2005-03-20 08:22:00 | FTP Structure on Linux Box | Sam I Am (1679) | Press F1 |
| Post ID | Timestamp | Content | User | ||
| 336114 | 2005-03-20 08:22:00 | Ok here goes . I have spent the day arguing with vsftpd and getting it going . Surprisingly enough I managed quite well . I have: added a user to my nix box chrooted their ftp access to their /home dir only setup no-ip client (dynamic ip) They can connect, upload and download all fine . Heres my problem . The files I want to share are on another drive . A fat32 drive mounted as /archive . How do I give them download access to this drive? If theres a better way using ftp to do this (and I suspect there is) then now is a good time to do it . Would it have anything to do with /var/ftp ? Also . what are the security risks from having port 21 open? There is no anonymus access allowed . There is a list of forbidden logons who wont even get the chance to enter a password eg: root etc Cheers |
Sam I Am (1679) | ||
| 336115 | 2005-03-20 08:50:00 | Basically you've done perfectly :) You could symlink to /mnt/fat32 or wherever you choose to mount it but VSFTPd is "Very Secure FTP Daemon" and it wouldnt be very secure if it allowed you to follow a symlink out of the home folder after chrooting the user now would it. You're left with only one option: mount --bind /mnt/fat32 /home/ftpusername/fat32 Been there myself, took me forever to work that one out ;) Cheers Chill. |
Chilling_Silence (9) | ||
| 336116 | 2005-03-20 08:57:00 | Not exactly Chill, I had the same thing. I simply had my fstab with the following /dev/hda5 mounted on /home/ftp/ /dev/hdb1 mounted on /home/ftp/pub2/ /dev/hdd1 mounted on /home/ftp/backup/ So the drives were mounted under each other Then I just created two users both with the home dir of /home/ftp/ I then set vsftpd's umask to 000 (making everthing chmodded to 777) and it worked a treat.. This worked fine, although I now use glFTPd as its more configurable. |
Ash M (46) | ||
| 336117 | 2005-03-20 09:02:00 | See, there is more than one way to skin the cat ;) I never played around with the umask permissions in vsftpd... After moving away from Redhat 8/9, I began using pureftpd :) |
Chilling_Silence (9) | ||
| 336118 | 2005-03-20 09:29:00 | See, there is more than one way to skin the cat ;) I never played around with the umask permissions in vsftpd... After moving away from Redhat 8/9, I began using pureftpd :) You're a Gentoo user aren't you....? You should use glFTPd.... It doesn't get any more configurable than that.... |
Ash M (46) | ||
| 336119 | 2005-03-20 09:42:00 | glFTPd? Never heard of it?! I like pureftpd for the use of the command pure-ftpwho, showing me who's online and using what files at what speeds. I'll look into it :) |
Chilling_Silence (9) | ||
| 336120 | 2005-03-20 10:04:00 | Ok chill, I tried your command, amending it to my dir names :) logged into ftp as the user and got this: 230 Login successful. Remote system type is UNIX. Using binary mode to transfer files. ftp> ls 227 Entering Passive Mode (127,0,0,1,45,137) 150 Here comes the directory listing. lrwxrwxrwx 1 0 0 14 Mar 20 04:21 Music -> /archive/Music 226 Directory send OK. ftp> cd Music 550 Failed to change directory. If I just logon to the box as the same user then it works fine. This user will never loggon this way. He will only ever have FTP access. Sorry, should have been a little clearer :) |
Sam I Am (1679) | ||
| 336121 | 2005-03-20 10:07:00 | Not exactly Chill, I had the same thing . I simply had my fstab with the following /dev/hda5 mounted on /home/ftp/ /dev/hdb1 mounted on /home/ftp/pub2/ /dev/hdd1 mounted on /home/ftp/backup/ So the drives were mounted under each other Then I just created two users both with the home dir of /home/ftp/ I then set vsftpd's umask to 000 (making everthing chmodded to 777) and it worked a treat . . This worked fine, although I now use glFTPd as its more configurable . Ahhhhh I see . Yeah that would work . I hadnt thought of that . I never thought to change the users home dir . . . Doh . I may use that as a fall back as I like the way chill is trying to work it . Has a certain elegance about it :) I really must study up on umask |
Sam I Am (1679) | ||
| 336122 | 2005-03-20 10:09:00 | glFTPd? Never heard of it?! I like pureftpd for the use of the command pure-ftpwho, showing me who's online and using what files at what speeds. I'll look into it :) The inablility to see the user logged on freaked me out. wonder if theres a command like that for vsftpd? hmmm off to the man page. |
Sam I Am (1679) | ||
| 336123 | 2005-03-20 10:40:00 | I mount my fat32 partition with umask=000 ;) | Chilling_Silence (9) | ||
| 1 2 | |||||