Opensuse 12.3 32bit FTP server issue

I just installed updated to 12.3. and I tried to set my FTP server using YAST (vsftp) I created my user, did everything the same way I have been doing since opensuse 11. checked passwords, firewalls, etc., but when I try to connect using Filezilla i get this

Command:    USER calas
Response:    331 Please specify the password.
Command:    PASS *******
Response:    530 Login incorrect.
Error:    Critical error
Error:    Could not connect to server

I turned off firewalls, created other users, checked existing users, checked router, did everything that came to my mind and still same result.

This used to be so simple in 12.2…

Is the vsftp server actually running? Or rather, can you see the failed login attempts in the logs on the server side?

Exactly same problem with opensuse 12.3 64 bit. I noticed I can login with anonymous user. No problems when I had 12.2.

I got exactly the same problem with opensuse 12.3 32 bit, also noticed that i can login as anonymous user with out a problem

I am running the ftp server vsftpd

hope any one can help , perhaps we are missing a file or something ??

Hi there,
I got exactly the same problem with opensuse 12.3 32 bit
I tried vsftp and pure-ftpd, but without success.
Regards

The problem is somewhere in pam authorization. I had to switch to pure-ftp and comment out the pam authorization and uncomment unix authorization in the pure-ftp config and it works

Could you help us out a bit more, with a bit more detailed instructions ??

Edit pure-ftpd.conf as follows:

If you want to enable PAM authentication, uncomment the following line

#PAMAuthentication yes

If you want simple Unix (/etc/passwd) authentication, uncomment this

UnixAuthentication yes

This is getting annoying. Pure-ftpd for some reason does not even work. it does not start. there are no log files in /var/logs , so I can’t see what the problem is. suggestions anyone?

I had to run it via xinetd to get it to run.

Same here.
I have 3 suse boxes (two with suse 12.2, one with suse 12.3), all with the same problem. I don’t exactly understand why, but it seems to be something kernel >= 3.7 related: after downgrading one suse 12.2 machine to kernel 3.6 all works fine. Something about logging has changed in kernel >=3.7:

vsftpd[1]: PAM audit_log_acct_message() failed: Operation not permitted

As a temporary solution i have switched to proftp. After manually configuring the LDAP backend it works, but i don’t want to separate the configurations (i like yast).

I hoped this bug would be fixed in suse 12.3, but it didn’t :frowning:

Sorry, I’m not familiar with xinetd. can you explain how you did it? Or does anybody knows how to make vsftpd work in opensuse 12.3?

In Yast2 select FTP Server under Network Services then check Via xinetd in the Service Start box

ok, so this is my vsftpd.conf

# Example config file /etc/vsftpd.conf
# 
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all compiled in defaults.
# 
# If you do not change anything here you will have a minimum setup for an
# anonymus FTP server.
#
# READ THIS: This example file is NOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.
# 
# ################
# General Settings  
# ################
# 
# Uncomment this to enable any form of FTP write command.
write_enable=NO
# 
# Activate directory messages - messages given to remote users when they
# go into a certain directory.
dirmessage_enable=YES
# 
# It is recommended that you define on your system a unique user which the
# ftp server can use as a totally isolated and unprivileged user.
nopriv_user=ftpsecure
# 
# You may fully customise the login banner string:
#ftpd_banner=Welcome to blah FTP service.
#
# You may activate the "-R" option to the builtin ls. This is disabled by
# default to avoid remote users being able to cause excessive I/O on large
# sites. However, some broken FTP clients such as "ncftp" and "mirror" assume
# the presence of the "-R" option, so there is a strong case for enabling it.
#ls_recurse_enable=YES
# 
# You may specify a file of disallowed anonymous e-mail addresses. Apparently
# useful for combatting certain DoS attacks.
#deny_email_enable=YES
# (default follows)
#banned_email_file=/etc/vsftpd.banned_emails
#
# If  enabled,  all  user  and  group  information in
# directory listings will be displayed as "ftp".
#hide_ids=YES
#
# #######################
# Local FTP user Settings
# #######################
# 
# Uncomment this to allow local users to log in.
local_enable=YES
# 
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
#local_umask=022
# 
# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
#chroot_local_user=YES
#chroot_list_enable=YES
# (default follows)
#chroot_list_file=/etc/vsftpd.chroot_list
# 
# The maximum data transfer rate permitted, in bytes per second, for
# local authenticated users. The default is 0 (unlimited).
#local_max_rate=7200
# 
# ##########################
# Anonymus FTP user Settings
# ##########################
# 
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=NO
#
# The maximum data transfer rate permitted, in bytes per second, for anonymous
# authenticated users. The default is 0 (unlimited).
#anon_max_rate=7200
#
# Anonymous users will only be allowed to download files which are
# world readable.
anon_world_readable_only=YES
#
# Default umask for anonymus users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
#anon_umask=022
# 
# Uncomment this to allow the anonymous FTP user to upload files. This only
# has an effect if the above global write enable is activated. Also, you will
# obviously need to create a directory writable by the FTP user.
#anon_upload_enable=YES
#
# Uncomment this if you want the anonymous FTP user to be able to create
# new directories.
#anon_mkdir_write_enable=YES
# 
# Uncomment this to enable anonymus FTP users to perform other write operations
# like deletion and renaming.
#anon_other_write_enable=YES
# 
# If you want, you can arrange for uploaded anonymous files to be owned by
# a different user. Note! Using "root" for uploaded files is not
# recommended!
#chown_uploads=YES
#chown_username=whoever
# 
# ############
# Log Settings
# 
# Log to the syslog daemon instead of using an logfile.
syslog_enable=NO
# 
# Uncomment this to log all FTP requests and responses.
log_ftp_protocol=YES  
# 
# Activate logging of uploads/downloads. 
#xferlog_enable=YES
# 
# You may override where the log file goes if you like. The default is shown
# below.
# 
vsftpd_log_file=/var/log/vsftpd.log
# 
# If you want, you can have your log file in standard ftpd xferlog format.
# Note that the default log file location is /var/log/xferlog in this case.
#xferlog_std_format=YES
#
# You may override where the log file goes if you like. The default is shown
# below.
#xferlog_file=/var/log/vsftpd.log
#
# Enable this to have booth logfiles. Standard xferlog and vsftpd's own style log.
#dual_log_enable=YES
# 
# Uncomment this to enable session status information in the system process listing.
#setproctitle_enable=YES
# 
# #################
# Transfer Settings
# #################
# 
# Make sure PORT transfer connections originate from port 20 (ftp-data).
connect_from_port_20=YES
#
# You may change the default value for timing out an idle session.
#idle_session_timeout=600
# 
# You may change the default value for timing out a data connection.
#data_connection_timeout=120
# 
# Enable this and the server will recognise asynchronous ABOR requests. Not
# recommended for security (the code is non-trivial). Not enabling it,
# however, may confuse older FTP clients.
#async_abor_enable=YES
# 
# By default the server will pretend to allow ASCII mode but in fact ignore
# the request. Turn on the below options to have the server actually do ASCII
# mangling on files when in ASCII mode.
# Beware that on some FTP servers, ASCII support allows a denial of service
# attack (DoS) via the command "SIZE /big/file" in ASCII mode. vsftpd
# predicted this attack and has always been safe, reporting the size of the
# raw file.     
# ASCII mangling is a horrible feature of the protocol.
ascii_upload_enable=YES
#ascii_download_enable=YES
# 
# Set to NO if you want to disallow the  PASV  method of obtaining a data
# connection.
#pasv_enable=NO
# 
# PAM setting. Do NOT change this unless you know what you do!
pam_service_name=vsftpd
# 
# When "listen" directive is enabled, vsftpd runs in standalone mode and
# listens on IPv4 sockets. This directive cannot be used in conjunction
# with the listen_ipv6 directive.   
listen=YES
# 
# Set to ssl_enable=YES if you want to enable SSL
ssl_enable=NO
#
# Limit passive ports to this range to assis firewalling
pasv_min_port=30000
pasv_max_port=30100
anon_mkdir_write_enable=NO
anon_root=/srv/ftp
anon_upload_enable=NO
chroot_local_user=NO
ftpd_banner=Welcome message
idle_session_timeout=900
log_ftp_protocol=NO
max_clients=10
max_per_ip=3
pasv_enable=YES
ssl_sslv2=NO
ssl_sslv3=NO
ssl_tlsv1=YES

and this is my /etc/pam.d/vsftpd

#%PAM-1.0

# Uncomment this to achieve what used to be ftpd -A.
# auth       required     pam_listfile.so item=user sense=allow file=/etc/ftpchroot onerr=fail
auth     required       pam_listfile.so item=user sense=deny file=/etc/ftpusers onerr=succeed
# Uncomment the following line for anonymous ftp.
#auth    sufficient     pam_ftp.so
auth     required       pam_shells.so
auth     include        common-auth
account  include        common-account
password include        common-password
session  required       pam_loginuid.so
session  include        common-session

Does anyone sees anything wrong in any of these files?

On 2013-03-22 06:46, cepiolidus wrote:
>
> ok, so this is my vsftpd.conf

The obvious thing is to look at the logs. And they are not going to
syslog, so find out where they are:

>
> Code:
> --------------------

> # ############
> # Log Settings
> #
> # Log to the syslog daemon instead of using an logfile.
> syslog_enable=NO
> #
> # Uncomment this to log all FTP requests and responses.
> log_ftp_protocol=YES
> #
> # Activate logging of uploads/downloads.
> #xferlog_enable=YES
> #
> # You may override where the log file goes if you like. The default is shown
> # below.
> #
> vsftpd_log_file=/var/log/vsftpd.log
> #
> # If you want, you can have your log file in standard ftpd xferlog format.
> # Note that the default log file location is /var/log/xferlog in this case.
> #xferlog_std_format=YES
> #
> # You may override where the log file goes if you like. The default is shown
> # below.
> #xferlog_file=/var/log/vsftpd.log

> --------------------


Cheers / Saludos,

Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)

ok. I was finally able to create a log fro vsftpd. not that helpful anyway.

Fri Mar 22 10:14:52 2013 [pid 2] CONNECT: Client "192.168.1.1"
Fri Mar 22 10:14:53 2013 [pid 1] [calas] FAIL LOGIN: Client "192.168.1.1"

Is there any other logo that I can post that would be helpful to get a solution?

On 2013-03-22 15:26, cepiolidus wrote:
>
> ok. I was finally able to create a log fro vsftpd. not that helpful
> anyway.

No…

> Code:
> --------------------
> Fri Mar 22 10:14:52 2013 [pid 2] CONNECT: Client “192.168.1.1”
> Fri Mar 22 10:14:53 2013 [pid 1] [calas] FAIL LOGIN: Client “192.168.1.1”
> --------------------
>
>
> Is there any other logo that I can post that would be helpful to get a
> solution?

I think that you can enable/disable parts of the logs. Have a look at
that section, maybe something in there helps.


Cheers / Saludos,

Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)

Well, here’s another guy with the same ****ing problem.

I’ll try pure-FTP.

EDIT:
YUPIIIIIIIIIIIIIIIIIIIIIIII

I have a stupid FTP server running now with pure-FTPD.

http://i45.tinypic.com/24ky637.png

Oh, man, I lost all day trying to repair this ****.

ok this is with pure FTP on xinetd. at least I can log in… but a new error

Status:    Connecting to 173.9.150.165:21...
Status:    Connection established, waiting for welcome message...
Response:    220-Welcome to Pure-FTPd.
Response:    220-You are user number 1 of 50 allowed.
Response:    220-Local time is now 21:19. Server port: 21.
Response:    220-IPv6 connections are also welcome on this server.
Response:    220 You will be disconnected after 15 minutes of inactivity.
Command:    USER calas
Response:    331 User calas OK. Password required
Command:    PASS *****************
Response:    230 OK. Current directory is /home/loots/External-Disk/
Command:    OPTS UTF8 ON
Response:    200 OK, UTF-8 enabled
Status:    Connected
Status:    Retrieving directory listing...
Command:    PWD
Response:    257 "/home/loots/External-Disk" is your current location
Command:    TYPE I
Response:    200 TYPE is now 8-bit binary
Command:    PASV
Response:    227 Entering Passive Mode (173,9,150,165,183,251)
Command:    MLSD
Error:    Connection timed out
Error:    Failed to retrieve directory listing

Any ideas?