Pure-FTPD Won't Allow Me To Upload

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…

Ben

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?

I Managed To Solve The Problem.
I Use OpenSUSE 11.0
It Appears That Someone Screwed That Package Totally. I Found A Package In The Build Service: http://download.opensuse.org/repositories/server:/ftp/SUSE_Factory/i586/pure-ftpd-1.0.21-131.28.i586.rpm

This Works As I Need It To, Allowing Uploads.
Its Not Strictly For 11.0 But Its Close Enough. And I Just Downloaded It, Didn’t Add The Repo.

Oh And By The Way I Don’t Use The Shift Key, Its The Caps Key That Gets A Hiding.

Ben

NOTE: The pure-ftpd Package In The OSS Repo Is Hosed, DON’T USE IT! It Will Cause Problems Like Mine.

If you report the bug, then it will benefit all of us when a fixed package is pushed out.

I have the same problem.
I installed the OpenSUSE 11 from network.

bug posted: #407363

@g_mayer: use the link i have provided above to get a package of pure-ftpd that actually works.
you will need to uninstall the oss repo version first.

Ben

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:

http://download.opensuse.org/reposit...31.28.i586.rpm

But what does “…” stand for?

My xinetd/pure-ftp costellation just uploaded from the suse-repository does not work at all (not only for uploads!), see

Pure-ftpd collected with YAST from the Suse repository - LinuxQuestions.org

Possibly it is because the version in the repository is faulty as said in this thread. Where can a correct version of pure-ftp be collected?

The link with a working version was said to be:

http://download.opensuse.org/reposit...31.28.i586.rpm

But what does “…” stand for?

No comment on pure-ftpd, but on your terminology.

When you get something from a repository, you are downloading, not uploading. You are further down the supply chain.

Good luck.

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)

Why would it? Downloading the software is not intention to activate or use it. Firewall settings should be the responsibility of admin.

Glad you got it to work.