Hi I Am Trying To Setup Pure-FTPD So I And Other Can Access Files From Other Machines In My Network ( Don’t Say Samba, That Is Impossible To Easily Add Users To, Etc )
I Have Logging In And Downloading Files Working Fine, But As Soon As I Try To Upload, It Immediately Closes The Connection.
Running dmesg I Found That It Was Actually segfaulting As Soon As It Recieved A Request To Upload. This Doesn’t Affect The Server As Each One Is Spawned From The Master, That Just Handles Login Requests.
Does Anyone Know Why It Is Segfaulting. I Am Trying This Locally ( Ie: On The Server ) Without A Firewall, And The Directory I Am Uploading To Is Owned By The User “ftpuser” And The Group “ftpgroup”. The Directory Has rwxrwxrwx Permissions. I Cannot Upload Anywhere. Not As A Virtual User, Or A Actual User On My Machine.
The Only Difference From A Stock SUSE Config Is That I Changed In The Pure-FTPD Config File:
Disallowed Anonymous
Forced Users To Authenticate
Enabled Automatic Creation Of User Home Directories
Changed The Mask To 000:000 As One Of The Users Is Used To Upload To A Web Server Running On The Server, Which I Need To Be Able To Edit The Contents Of Locally.
On A Side Note: I Did Have This Problem For Logging In, But Then It Resolved Itself. I Don’t Remember Pure-FTPD Being This Buggy…
Er, what version of OpenSUSE? Also I hope you used the OpenSUSE package and didn’t try to install a foreign package? Any distress messages in /var/log/messages, or any recently appended file in /var/log/?
Is the directory special in any way, like being on NTFS or something like that? There was a bug, but I think that was vsftpd, to do with the use of the sendfile system call as an optimisation which doesn’t work on some filesystems. I don’t know if pure-ftpd tries to do anything similar.
PS: Don’t You Get Tired Of Using The Shift Key All The Time?
The “pure-ftp” I downloaded this year from the YaST2 software repository still does not work for uploads! The link with a working version was said to be:
The problem was with the SuSE Firewall and how it is set (or rather not set!) by YAST.
The SuSE Firewall stops all ftp, also in “Internal Zone”, with the default setting. This is not automatically corrected by YAST when ftp software is downloaded from the repository !
Either completely switch off the SuSE Firewall (with YAST interactive “security” utility) or explicitly allow ftp (internal/external zone, again with YAST interactive “security” utility)