Be careful that your server name should be as simple as possible, some characters may create some problems, is it the whole configuration file ?
Yes, it's easy to use and really powerful
Yes, but i won't use it
No, the GUI has to be improved
Be careful that your server name should be as simple as possible, some characters may create some problems, is it the whole configuration file ?
Hello frodon,
First off - as everyone has pointed out - excellent howto. I at first tried the gproftpd gui option, but wasnt all that impressed and decided to go the other option. After some tinkering, reading, and time - I am successfully connecting to my home box from work right now. My only problem is that I'm having trouble with PASV. I can't seem to get it to work. Is there anything special you've seen to getting PASV to work? I specified PassivePorts 60000 60049 in my proftpd.conf and forwarded those ports to my internal IP on my router. I'm also masquerading my external IP.
Like I said, all works fine in active mode, but I'd like to get passive mode working properly. Any ideas would be much appreciated. Thanks!
I'm jammed here.Originally Posted by frodon
I'll be upfront, I have two dyndns configurations. One which is sub'd off my main web host, and another with gotdns.com just in case.
I'm only using the masqueradeaddress as the one i'm technically using with filezilla, which is only specified as the main web host address.
On the lan, by IP address I don't even need to worry about passive mode, goes right on through. Logs in just the way I want it to for each user.
When trying from the LAN through the web address, I get:
Response: 500 Illegal PORT command
Error: Could not retrieve directory listing
When trying from LAN to web address using PASV:
Response: 200 Type set to A
Command: LIST
Error: Disconnected from server
Error: Could not retrieve directory listing
Error: Timeout detected!
FTP from win32 command prompt results in a 425 error, when going through web address and typing "ls" as usual. So it leads me to believe something is silly with the PASV mode set up. The specified port ranges are opened on the router by the way.
I must have made a mess somewhere, but I'm running out of ideas. I included my proftpd.conf file which I'm sure will seem a bit sloppy.
I'm hoping someone will show me the light here. I really should be able to use the web address to do this, whether inside my LAN or not.
edit: I've tested inbound works perfectly fine, I guess I'll just deal with the provided setup as is.
Last edited by trinaryouroboros; February 20th, 2006 at 05:44 AM.
-Shawn Q {64-bit...like Atari Jaguar?}
MSI K9A2 Platinum 790FX;Phenom 9600;G.Skill 4x2GB DDR2 1066;2x Radeon HD 4800 series;Antec TruePower Quattro TPQ-1000
"The road to hell is paved with good intentions."-Wyrm by Mark Fabi
Hi,
My FTP server is up and running.
I can access it from outside and I can browse the folders.
I tried to mount a folder in my /home/FTP-shared/download but i've got the error
Then I created a folderCode:$ sudo mount -o Photos /home/FTP-shared/download/ mount: can't find /home/FTP-shared/download in /etc/fstab or /etc/mtab
and I created a permanent entry in my fstab as proposed in this howto.Code:$ sudo mkdir /home/FTP-shared/download/Photos
I can browse this folder, but I'm unable to download a file from my ftp server....
Any help ??
Is it a typo ? the command is :I think it's not needed to create a Photos directory under download if what you want is only to mount your photo directory in /home/FTP-shared/download.Code:sudo mount -o bind Photo_directory_path /home/FTP-shared/download
If you're still not able to download in this directory post your proftpd.conf file and check that you put the good rights on this directory because proftpd won't overwrite the system rights you set on this directory.
need some help ...
i have 2 diferent users to get in 2 diferent directories
"/home/shared"
and other to
"/online/forum/"
the problem is that both of then enter in the same directory ...
user1 i created it like
useradd user1 -p passuser1 -d /home/shared -s /bin/false
and user 2
useradd user2 -p passuser2 -d /online/forum -s /bin/false
config lines:
so 1 want 1 user to access both directorys and the other only to 1 ... if possible or each user for each directory ...Code:... ... ... # Set /home/FTP-shared directory as home directory # DefaultRoot /home/FTP-shared DefaultRoot ~ # Lock all the users in home directory, ***** really important ***** DefaultRoot ~ ... ... ... <Directory /home/shared/*> Umask 022 022 AllowOverwrite on AllowUser user1 </Directory> <Directory /online/forum/> Umask 022 022 AllowOverwrite on AllowAll </Directory>
can anyone help me ?
The command DefaultRoot ~ define the user home directory as home directory for the FTP, so each user will be locked in his home directory thanks to this command, so the way you use sounds good but i never used it so i don't know if it works but it should.
Add a section like that before setting the directories :Thus you will be sure to allow only your 2 users to login.Code:#VALID LOGINS <Limit LOGIN> AllowUser user1 AllowUser user2 DenyALL </Limit>
Try to modify your directory section like that :I assume that your directories are upload/download directories and therefore you gave 777 rights to them.Code:<Directory /home/shared/*> Umask 022 022 AllowOverwrite on <Limit ALL> Order Allow,Deny AllowUser user1 Deny ALL </Limit> <Limit READ RMD DELE> DenyAll </Limit> <Limit STOR CWD MKD> AllowAll </Limit> </Directory> <Directory /online/forum/> Umask 022 022 AllowOverwrite on <Limit ALL> Order Allow,Deny AllowUser user2 Deny ALL </Limit> <Limit READ RMD DELE> DenyAll </Limit> <Limit STOR CWD MKD> AllowAll </Limit> </Directory> </Directory>
However, you can use also the way i gave in this post and then keep the guide spirit with the home/FTP-shared home directory for all the users and allow the user you want to enter in the directory you want. After that you can mount the directory you want in home/FTP-shared/upload, create more directories if you need.
Let me know if it works, i'm curious.
ok so far so good ... i've changed something ... and now directory's work fine each user can enter in diferent directory.
user1 -> directory1
user2 -> directory2
the changes:
the Valid logins section was already there so no changes there
and now they both enter in diferent directory'sCode:<Directory /home/shared/*> Umask 022 022 AllowOverwrite on AllowAll </Directory> <Directory /online/forum/> Umask 022 022 AllowOverwrite on AllowAll </Directory>
1º move ok
now the 2º fase ... i was thinking arround and it seems to be impossible to 1 of those users to access diferent directory's since i've defined when creating them their "home" directory, since in config i'm forcing them to be in their home directory it's gome be a bit hard ...
Why not just install SSH server ?
What am i doing wrong
- no such group 'nobody'
- Fatal: Group: Unknown group 'nobody'. on line 20 of '/etc/proftpd.conf'
what group should it be?
Bookmarks