ftp Server Error 530 obwohl richtiges passwort

Riseofdead

Lt. Commander
Registriert
Jan. 2013
Beiträge
1.031
Hallo

Ich hab einen Raspberry Pi. ich will darauf einen ftp Server installieren. Jedoch kennt er keinen User. Er gibt einen Fehler 530 aus obwohl ich die User und das Passwort richtig angelegt hab.

Das habe ich gemacht:

Ich habe proftpd als Servermodus installiert. Dann habe ich unter /etc/shells die Shell /bin/false hinzugefügt. Danach habe ich unter /media/ext/ftp 2 Ordner angelegt (user1 und user2) da ich 2 User haben will.

Ich habe dann eingegeben: adduser user1 -shell /bin/false -home /media/ext/ftp/user1 Ich habe dann noch passwort angegeben. Normal hätte ich noch den Vollständigen Namen, Zimmernummer und Telefonnummer angeben sollen aber das hab ich nicht (liegt es daran?). Ich habe dann mit chown -R user1:user1 user1 sowie mit chmod -R 770 user1 Die Berechtigungen gesetzt.

Das gleiche habe ich mit user2 auch gemacht. Zum Schluss habe ich mit service proftpd restart den Server neugestartet.

Jetzt habe ich das Problem das ich mit keinem ftp Clienten reinkomme. Es steht immer da Error 530 invalid password. Ich habe doch das Passwort mehrmals richtig eingegeben. Ich habe auch kontrolliert ob Capslock oder ähnliches aktiv ist aber der Error 530 bleibt hartnäckig da.

Ich bin schon dabei einen Bugreport an das proftpd Team zu schicken da die Anleitung in mehreren Tuturials funktionieren soll. Wenn das nicht hilft muss ich einen Bugreport an das Debian Team schicken da ja Raspbian oben ist was von Debian stammt. Hab den Bugreport noch nicht abgeschickt da ich vorher euch frage was da sein kann.

Ich hab ja mit dem Betriebssystem mehrere Probleme. z.b kann ich als Root mit chmod 777 Rechte kein Script ausführen was auf /media/ext/* ist.
 
Poste mal die proftpd.conf, nur zur Sicherheit...

Man kann die user darin limitieren, sollte dan so aussehen:
Code:
<Limit LOGIN>
AllowGroup ftp
DenyAll
</Limit>
ggf. kannst du in die Config auch noch
Code:
RequireValidShell       no bzw. off
zu Test-Zwecken reinpacken oder alternativ die shell des users ändern. Zur Isolation des Problem würde ich den usern eine echte shell geben und mal per SSH/SFTP (zB auch mit filezilla) einloggen und schauen, ob alles so funktioniert, wie es soll. Falls ja, am FTP-Server weiterfrickeln.

MfG, Thomas
 
Anbei die proftpd.conf

Code:
#
# /etc/proftpd/proftpd.conf -- This is a basic ProFTPD configuration file.
# To really apply changes, reload proftpd after modifications, if
# it runs in daemon mode. It is not required in inetd/xinetd mode.
# 

# Includes DSO modules
Include /etc/proftpd/modules.conf

# Set off to disable IPv6 support which is annoying on IPv4 only boxes.
UseIPv6				on
# If set on you can experience a longer connection delay in many cases.
IdentLookups			off

ServerName			"Debian"
ServerType			standalone
DeferWelcome			off

MultilineRFC2228		on
DefaultServer			on
ShowSymlinks			on

TimeoutNoTransfer		600
TimeoutStalled			600
TimeoutIdle			1200

DisplayLogin                    welcome.msg
DisplayChdir               	.message true
ListOptions                	"-l"

DenyFilter			\*.*/

# Use this to jail all users in their homes 
DefaultRoot			~

# Users require a valid shell listed in /etc/shells to login.
# Use this directive to release that constrain.
# RequireValidShell		off

# Port 21 is the standard FTP port.
Port				21

# In some cases you have to specify passive ports range to by-pass
# firewall limitations. Ephemeral ports can be used for that, but
# feel free to use a more narrow range.
# PassivePorts                  49152 65534

# If your host was NATted, this option is useful in order to
# allow passive tranfers to work. You have to use your public
# address and opening the passive ports used on your firewall as well.
# MasqueradeAddress		1.2.3.4

# This is useful for masquerading address with dynamic IPs:
# refresh any configured MasqueradeAddress directives every 8 hours
<IfModule mod_dynmasq.c>
# DynMasqRefresh 28800
</IfModule>

# To prevent DoS attacks, set the maximum number of child processes
# to 30.  If you need to allow more than 30 concurrent connections
# at once, simply increase this value.  Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd)
MaxInstances			30

# Set the user and group that the server normally runs at.
User				proftpd
Group				nogroup

# Umask 022 is a good standard umask to prevent new files and dirs
# (second parm) from being group and world writable.
Umask				022  022
# Normally, we want files to be overwriteable.
AllowOverwrite			on

# Uncomment this if you are using NIS or LDAP via NSS to retrieve passwords:
# PersistentPasswd		off

# This is required to use both PAM-based authentication and local passwords
# AuthOrder			mod_auth_pam.c* mod_auth_unix.c

# Be warned: use of this directive impacts CPU average load!
# Uncomment this if you like to see progress and transfer rate with ftpwho
# in downloads. That is not needed for uploads rates.
#
# UseSendFile			off

TransferLog /var/log/proftpd/xferlog
SystemLog   /var/log/proftpd/proftpd.log

# Logging onto /var/log/lastlog is enabled but set to off by default
#UseLastlog on

# In order to keep log file dates consistent after chroot, use timezone info
# from /etc/localtime.  If this is not set, and proftpd is configured to
# chroot (e.g. DefaultRoot or <Anonymous>), it will use the non-daylight
# savings timezone regardless of whether DST is in effect.
#SetEnv TZ :/etc/localtime

<IfModule mod_quotatab.c>
QuotaEngine off
</IfModule>

<IfModule mod_ratio.c>
Ratios off
</IfModule>


# Delay engine reduces impact of the so-called Timing Attack described in
# http://www.securityfocus.com/bid/11430/discuss
# It is on by default. 
<IfModule mod_delay.c>
DelayEngine on
</IfModule>

<IfModule mod_ctrls.c>
ControlsEngine        off
ControlsMaxClients    2
ControlsLog           /var/log/proftpd/controls.log
ControlsInterval      5
ControlsSocket        /var/run/proftpd/proftpd.sock
</IfModule>

<IfModule mod_ctrls_admin.c>
AdminControlsEngine off
</IfModule>

#
# Alternative authentication frameworks
#
#Include /etc/proftpd/ldap.conf
#Include /etc/proftpd/sql.conf

#
# This is used for FTPS connections
#
#Include /etc/proftpd/tls.conf

#
# Useful to keep VirtualHost/VirtualRoot directives separated
#
#Include /etc/proftpd/virtuals.conf

# A basic anonymous configuration, no upload directories.

# <Anonymous ~ftp>
#   User				ftp
#   Group				nogroup
#   # We want clients to be able to login with "anonymous" as well as "ftp"
#   UserAlias			anonymous ftp
#   # Cosmetic changes, all files belongs to ftp user
#   DirFakeUser	on ftp
#   DirFakeGroup on ftp
# 
#   RequireValidShell		off
# 
#   # Limit the maximum number of anonymous logins
#   MaxClients			10
# 
#   # We want 'welcome.msg' displayed at login, and '.message' displayed
#   # in each newly chdired directory.
#   DisplayLogin			welcome.msg
#   DisplayChdir		.message
# 
#   # Limit WRITE everywhere in the anonymous chroot
#   <Directory *>
#     <Limit WRITE>
#       DenyAll
#     </Limit>
#   </Directory>
# 
#   # Uncomment this if you're brave.
#   # <Directory incoming>
#   #   # Umask 022 is a good standard umask to prevent new files and dirs
#   #   # (second parm) from being group and world writable.
#   #   Umask				022  022
#   #            <Limit READ WRITE>
#   #            DenyAll
#   #            </Limit>
#   #            <Limit STOR>
#   #            AllowAll
#   #            </Limit>
#   # </Directory>
# 
# </Anonymous>

# Include other custom configuration files
Include /etc/proftpd/conf.d/
 
was sagt das log file?
/var/log/proftpd/proftpd.log

mfg
Werner
 
Code:
Jän 26 23:18:53 raspberrypi proftpd[5670] raspberrypi: ProFTPD 1.3.4a (maint) (built Sun Sep 29 2013 15:27:57 UTC) standalone mode STARTUP
Jän 26 23:21:50 raspberrypi proftpd[5670] raspberrypi: ProFTPD killed (signal 15)
Jän 26 23:21:50 raspberrypi proftpd[5670] raspberrypi: ProFTPD 1.3.4a standalone mode SHUTDOWN
Jän 26 23:21:52 raspberrypi proftpd[5751] raspberrypi: ProFTPD 1.3.4a (maint) (built Sun Sep 29 2013 15:27:57 UTC) standalone mode STARTUP
Jän 26 23:23:00 raspberrypi proftpd[5771] raspberrypi (62-47-254-248.adsl.highway.telekom.at[62.47.254.248]): FTP session opened.
Jän 26 23:23:00 raspberrypi proftpd[5771] raspberrypi (62-47-254-248.adsl.highway.telekom.at[62.47.254.248]): USER flo (Login failed): Invalid shell: '/bin/false'
Jän 26 23:23:05 raspberrypi proftpd[5771] raspberrypi (62-47-254-248.adsl.highway.telekom.at[62.47.254.248]): USER flo (Login failed): Invalid shell: '/bin/false'
Jän 26 23:23:06 raspberrypi proftpd[5771] raspberrypi (62-47-254-248.adsl.highway.telekom.at[62.47.254.248]): USER flo (Login failed): Invalid shell: '/bin/false'
Jän 26 23:23:06 raspberrypi proftpd[5771] raspberrypi (62-47-254-248.adsl.highway.telekom.at[62.47.254.248]): Maximum login attempts (3) exceeded, connection refused
Jän 26 23:23:06 raspberrypi proftpd[5771] raspberrypi (62-47-254-248.adsl.highway.telekom.at[62.47.254.248]): FTP session closed.
Jän 26 23:23:09 raspberrypi proftpd[5777] raspberrypi (62-47-254-248.adsl.highway.telekom.at[62.47.254.248]): FTP session opened.
Jän 26 23:23:09 raspberrypi proftpd[5777] raspberrypi (62-47-254-248.adsl.highway.telekom.at[62.47.254.248]): USER flo (Login failed): Invalid shell: '/bin/false'
Jän 26 23:24:05 raspberrypi proftpd[5751] raspberrypi: ProFTPD killed (signal 15)
Jän 26 23:24:05 raspberrypi proftpd[5751] raspberrypi: ProFTPD 1.3.4a standalone mode SHUTDOWN
Jän 26 23:24:05 raspberrypi proftpd[5777] raspberrypi (62-47-254-248.adsl.highway.telekom.at[62.47.254.248]): FTP session closed.
Jän 26 23:24:32 raspberrypi proftpd[5828] raspberrypi: ProFTPD 1.3.4a (maint) (built Sun Sep 29 2013 15:27:57 UTC) standalone mode STARTUP
Jän 26 23:24:53 raspberrypi proftpd[5846] raspberrypi (62-47-254-248.adsl.highway.telekom.at[62.47.254.248]): FTP session opened.
Jän 26 23:24:54 raspberrypi proftpd[5846] raspberrypi (62-47-254-248.adsl.highway.telekom.at[62.47.254.248]): Preparing to chroot to directory '/media/ext/flo'
Jän 26 23:24:54 raspberrypi proftpd[5846] raspberrypi (62-47-254-248.adsl.highway.telekom.at[62.47.254.248]): USER flo: Login successful.
Jän 26 23:25:24 raspberrypi proftpd[5846] raspberrypi (62-47-254-248.adsl.highway.telekom.at[62.47.254.248]): FTP session closed.
Jän 26 23:25:51 raspberrypi proftpd[5828] raspberrypi: ProFTPD killed (signal 15)
Jän 26 23:25:51 raspberrypi proftpd[5828] raspberrypi: ProFTPD 1.3.4a standalone mode SHUTDOWN
Jän 26 23:50:06 raspberrypi proftpd[6072] raspberrypi: ProFTPD 1.3.4a (maint) (built Sun Sep 29 2013 15:27:57 UTC) standalone mode STARTUP
Jän 26 23:50:10 raspberrypi proftpd[6090] raspberrypi (62-47-254-248.adsl.highway.telekom.at[62.47.254.248]): FTP session opened.
Jän 26 23:50:10 raspberrypi proftpd[6090] raspberrypi (62-47-254-248.adsl.highway.telekom.at[62.47.254.248]): notice: unable to use '~/' [resolved to '/media/ext/ftp/ftpadmin/']: Keine Berechtigung
Jän 26 23:50:10 raspberrypi proftpd[6090] raspberrypi (62-47-254-248.adsl.highway.telekom.at[62.47.254.248]): Preparing to chroot to directory '~/'
Jän 26 23:50:10 raspberrypi proftpd[6090] raspberrypi (62-47-254-248.adsl.highway.telekom.at[62.47.254.248]): chroot to '~/' failed for user 'ftpadmin': Die Operation ist nicht erlaubt
Jän 26 23:50:10 raspberrypi proftpd[6090] raspberrypi (62-47-254-248.adsl.highway.telekom.at[62.47.254.248]): error: unable to set default root directory
Jän 26 23:50:10 raspberrypi proftpd[6090] raspberrypi (62-47-254-248.adsl.highway.telekom.at[62.47.254.248]): FTP session closed.
Jän 26 23:50:13 raspberrypi proftpd[6096] raspberrypi (62-47-254-248.adsl.highway.telekom.at[62.47.254.248]): FTP session opened.
Jän 26 23:50:13 raspberrypi proftpd[6096] raspberrypi (62-47-254-248.adsl.highway.telekom.at[62.47.254.248]): notice: unable to use '~/' [resolved to '/media/ext/ftp/ftpadmin/']: Keine Berechtigung
Jän 26 23:50:13 raspberrypi proftpd[6096] raspberrypi (62-47-254-248.adsl.highway.telekom.at[62.47.254.248]): Preparing to chroot to directory '~/'
Jän 26 23:50:13 raspberrypi proftpd[6096] raspberrypi (62-47-254-248.adsl.highway.telekom.at[62.47.254.248]): chroot to '~/' failed for user 'ftpadmin': Die Operation ist nicht erlaubt
Jän 26 23:50:13 raspberrypi proftpd[6096] raspberrypi (62-47-254-248.adsl.highway.telekom.at[62.47.254.248]): error: unable to set default root directory
Jän 26 23:50:13 raspberrypi proftpd[6096] raspberrypi (62-47-254-248.adsl.highway.telekom.at[62.47.254.248]): FTP session closed.
Jän 26 23:51:02 raspberrypi proftpd[6103] raspberrypi (62-47-254-248.adsl.highway.telekom.at[62.47.254.248]): FTP session opened.
Jän 26 23:51:02 raspberrypi proftpd[6103] raspberrypi (62-47-254-248.adsl.highway.telekom.at[62.47.254.248]): notice: unable to use '~/' [resolved to '/media/ext/ftp/ftpadmin/']: Keine Berechtigung
Jän 26 23:51:02 raspberrypi proftpd[6103] raspberrypi (62-47-254-248.adsl.highway.telekom.at[62.47.254.248]): Preparing to chroot to directory '~/'
Jän 26 23:51:02 raspberrypi proftpd[6103] raspberrypi (62-47-254-248.adsl.highway.telekom.at[62.47.254.248]): chroot to '~/' failed for user 'ftpadmin': Die Operation ist nicht erlaubt
Jän 26 23:51:02 raspberrypi proftpd[6103] raspberrypi (62-47-254-248.adsl.highway.telekom.at[62.47.254.248]): error: unable to set default root directory
Jän 26 23:51:02 raspberrypi proftpd[6103] raspberrypi (62-47-254-248.adsl.highway.telekom.at[62.47.254.248]): FTP session closed.
Jän 26 23:52:01 raspberrypi proftpd[6072] raspberrypi: ProFTPD killed (signal 15)
Jän 26 23:52:01 raspberrypi proftpd[6072] raspberrypi: ProFTPD 1.3.4a standalone mode SHUTDOWN
Jän 26 23:52:08 raspberrypi proftpd[6168] raspberrypi: ProFTPD 1.3.4a (maint) (built Sun Sep 29 2013 15:27:57 UTC) standalone mode STARTUP
Jän 26 23:52:15 raspberrypi proftpd[6186] raspberrypi (62-47-254-248.adsl.highway.telekom.at[62.47.254.248]): FTP session opened.
Jän 26 23:52:16 raspberrypi proftpd[6186] raspberrypi (62-47-254-248.adsl.highway.telekom.at[62.47.254.248]): notice: unable to use '~/' [resolved to '/media/ext/ftp/ftpadmin/']: Keine Berechtigung
Jän 26 23:52:16 raspberrypi proftpd[6186] raspberrypi (62-47-254-248.adsl.highway.telekom.at[62.47.254.248]): Preparing to chroot to directory '~/'
Jän 26 23:52:16 raspberrypi proftpd[6186] raspberrypi (62-47-254-248.adsl.highway.telekom.at[62.47.254.248]): chroot to '~/' failed for user 'ftpadmin': Die Operation ist nicht erlaubt
Jän 26 23:52:16 raspberrypi proftpd[6186] raspberrypi (62-47-254-248.adsl.highway.telekom.at[62.47.254.248]): error: unable to set default root directory
Jän 26 23:52:16 raspberrypi proftpd[6186] raspberrypi (62-47-254-248.adsl.highway.telekom.at[62.47.254.248]): FTP session closed.
Jän 26 23:52:18 raspberrypi proftpd[6192] raspberrypi (62-47-254-248.adsl.highway.telekom.at[62.47.254.248]): FTP session opened.
Jän 26 23:52:18 raspberrypi proftpd[6192] raspberrypi (62-47-254-248.adsl.highway.telekom.at[62.47.254.248]): notice: unable to use '~/' [resolved to '/media/ext/ftp/ftpadmin/']: Keine Berechtigung
Jän 26 23:52:18 raspberrypi proftpd[6192] raspberrypi (62-47-254-248.adsl.highway.telekom.at[62.47.254.248]): Preparing to chroot to directory '~/'
Jän 26 23:52:18 raspberrypi proftpd[6192] raspberrypi (62-47-254-248.adsl.highway.telekom.at[62.47.254.248]): chroot to '~/' failed for user 'ftpadmin': Die Operation ist nicht erlaubt
Jän 26 23:52:18 raspberrypi proftpd[6192] raspberrypi (62-47-254-248.adsl.highway.telekom.at[62.47.254.248]): error: unable to set default root directory
Jän 26 23:52:18 raspberrypi proftpd[6192] raspberrypi (62-47-254-248.adsl.highway.telekom.at[62.47.254.248]): FTP session closed.
Jän 26 23:52:57 raspberrypi proftpd[6168] raspberrypi: ProFTPD killed (signal 15)
Jän 26 23:52:57 raspberrypi proftpd[6168] raspberrypi: ProFTPD 1.3.4a standalone mode SHUTDOWN
Jän 26 23:55:11 raspberrypi proftpd[6267] raspberrypi: ProFTPD 1.3.4a (maint) (built Sun Sep 29 2013 15:27:57 UTC) standalone mode STARTUP
Jän 26 23:55:48 raspberrypi proftpd[6285] raspberrypi (62-47-254-248.adsl.highway.telekom.at[62.47.254.248]): FTP session opened.
Jän 26 23:55:48 raspberrypi proftpd[6285] raspberrypi (62-47-254-248.adsl.highway.telekom.at[62.47.254.248]): notice: unable to use '~/' [resolved to '/media/ext/ftp/ftpadmin/']: Keine Berechtigung
Jän 26 23:55:48 raspberrypi proftpd[6285] raspberrypi (62-47-254-248.adsl.highway.telekom.at[62.47.254.248]): Preparing to chroot to directory '~/'
Jän 26 23:55:48 raspberrypi proftpd[6285] raspberrypi (62-47-254-248.adsl.highway.telekom.at[62.47.254.248]): chroot to '~/' failed for user 'ftpadmin': Die Operation ist nicht erlaubt
Jän 26 23:55:48 raspberrypi proftpd[6285] raspberrypi (62-47-254-248.adsl.highway.telekom.at[62.47.254.248]): error: unable to set default root directory
Jän 26 23:55:48 raspberrypi proftpd[6285] raspberrypi (62-47-254-248.adsl.highway.telekom.at[62.47.254.248]): FTP session closed.
Jän 26 23:55:50 raspberrypi proftpd[6291] raspberrypi (62-47-254-248.adsl.highway.telekom.at[62.47.254.248]): FTP session opened.
Jän 26 23:55:51 raspberrypi proftpd[6291] raspberrypi (62-47-254-248.adsl.highway.telekom.at[62.47.254.248]): notice: unable to use '~/' [resolved to '/media/ext/ftp/ftpadmin/']: Keine Berechtigung
Jän 26 23:55:51 raspberrypi proftpd[6291] raspberrypi (62-47-254-248.adsl.highway.telekom.at[62.47.254.248]): Preparing to chroot to directory '~/'
Jän 26 23:55:51 raspberrypi proftpd[6291] raspberrypi (62-47-254-248.adsl.highway.telekom.at[62.47.254.248]): chroot to '~/' failed for user 'ftpadmin': Die Operation ist nicht erlaubt
Jän 26 23:55:51 raspberrypi proftpd[6291] raspberrypi (62-47-254-248.adsl.highway.telekom.at[62.47.254.248]): error: unable to set default root directory
Jän 26 23:55:51 raspberrypi proftpd[6291] raspberrypi (62-47-254-248.adsl.highway.telekom.at[62.47.254.248]): FTP session closed.
Jän 26 23:56:32 raspberrypi proftpd[6297] raspberrypi (62-47-254-248.adsl.highway.telekom.at[62.47.254.248]): FTP session opened.
Jän 26 23:56:32 raspberrypi proftpd[6297] raspberrypi (62-47-254-248.adsl.highway.telekom.at[62.47.254.248]): notice: unable to use '~/' [resolved to '/media/ext/ftp/flo/']: Keine Berechtigung
Jän 26 23:56:32 raspberrypi proftpd[6297] raspberrypi (62-47-254-248.adsl.highway.telekom.at[62.47.254.248]): Preparing to chroot to directory '~/'
Jän 26 23:56:32 raspberrypi proftpd[6297] raspberrypi (62-47-254-248.adsl.highway.telekom.at[62.47.254.248]): chroot to '~/' failed for user 'flo': Die Operation ist nicht erlaubt
Jän 26 23:56:32 raspberrypi proftpd[6297] raspberrypi (62-47-254-248.adsl.highway.telekom.at[62.47.254.248]): error: unable to set default root directory
Jän 26 23:56:32 raspberrypi proftpd[6297] raspberrypi (62-47-254-248.adsl.highway.telekom.at[62.47.254.248]): FTP session closed.
Jän 27 00:00:35 raspberrypi proftpd[6267] raspberrypi: ProFTPD killed (signal 15)
Jän 27 00:00:35 raspberrypi proftpd[6267] raspberrypi: ProFTPD 1.3.4a standalone mode SHUTDOWN
Jän 27 00:00:49 raspberrypi proftpd[6433] raspberrypi: ProFTPD 1.3.4a (maint) (built Sun Sep 29 2013 15:27:57 UTC) standalone mode STARTUP
Jän 27 00:01:36 raspberrypi proftpd[6433] raspberrypi: ProFTPD killed (signal 15)
Jän 27 00:01:36 raspberrypi proftpd[6433] raspberrypi: ProFTPD 1.3.4a standalone mode SHUTDOWN
Jan 27 00:03:00 raspberrypi proftpd[2632] raspberrypi: ProFTPD 1.3.4a (maint) (built Sun Sep 29 2013 15:27:57 UTC) standalone mode STARTUP
Jan 27 19:10:16 raspberrypi proftpd[2632] raspberrypi: ProFTPD killed (signal 15)
Jan 27 19:10:16 raspberrypi proftpd[2632] raspberrypi: ProFTPD 1.3.4a standalone mode SHUTDOWN
Jan 27 19:11:44 raspberrypi proftpd[2696] raspberrypi: ProFTPD 1.3.4a (maint) (built Sun Sep 29 2013 15:27:57 UTC) standalone mode STARTUP
Jan 27 20:18:55 raspberrypi proftpd[2696] raspberrypi: ProFTPD killed (signal 15)
Jan 27 20:18:55 raspberrypi proftpd[2696] raspberrypi: ProFTPD 1.3.4a standalone mode SHUTDOWN
Jan 27 20:19:41 raspberrypi proftpd[2689] raspberrypi: ProFTPD 1.3.4a (maint) (built Sun Sep 29 2013 15:27:57 UTC) standalone mode STARTUP
 
Code:
USER flo (Login failed): Invalid shell: '/bin/false'
Hast Du für den User "flo" keine gültige shell eingerichtet?

Edit: -------------------
Steht da viel drin. Bitte beobachte das Log-File mal beim Einloggen:
Also:
Code:
tail -f /var/log/proftpd/proftpd.log

Und dann mal einloggen. Schauen was die Ausgabe bringt, verstehen und ggf. sich nochmal hier melden
 
Zuletzt bearbeitet:
Code:
Jan 28 18:35:20 raspberrypi proftpd[3580] raspberrypi (194-118-138-139.adsl.high                                                                                                                                                             way.telekom.at[194.118.138.139]): FTP session opened.
Jan 28 18:35:21 raspberrypi proftpd[3580] raspberrypi (194-118-138-139.adsl.high                                                                                                                                                             way.telekom.at[194.118.138.139]): notice: unable to use '~/' [resolved to '/medi                                                                                                                                                             a/ext/ftp/flo/']: Permission denied
Jan 28 18:35:21 raspberrypi proftpd[3580] raspberrypi (194-118-138-139.adsl.high                                                                                                                                                             way.telekom.at[194.118.138.139]): Preparing to chroot to directory '~/'
Jan 28 18:35:21 raspberrypi proftpd[3580] raspberrypi (194-118-138-139.adsl.high                                                                                                                                                             way.telekom.at[194.118.138.139]): chroot to '~/' failed for user 'flo': Operatio                                                                                                                                                             n not permitted
Jan 28 18:35:21 raspberrypi proftpd[3580] raspberrypi (194-118-138-139.adsl.high                                                                                                                                                             way.telekom.at[194.118.138.139]): error: unable to set default root directory
Jan 28 18:35:21 raspberrypi proftpd[3580] raspberrypi (194-118-138-139.adsl.high                                                                                                                                                             way.telekom.at[194.118.138.139]): FTP session closed.
root@raspberrypi:/var/log/proftpd#

komischerweise habe ich alles richtig eingestellt. Mit usermod -d /media/ext/ftp/flo flo das Homeverzeichnis eingestellt. Die Rechte vom Ordner auf 770 eingestellt und Besitzer sowie Gruppe auf flo gestellt. Shell ist definitiv /bin/false da es mir bei chsh vorgeschlagen wird
 
Code:
 notice: unable to use '~/' [resolved to '/media/ext/ftp/flo/']:

Da steht, dass proftp nicht nach /media/... etc, wechseln kann. Weil er die Anweisung hat nur in "~/" zu suchen.

~/ ist das Home-Directory des jeweiligen Users. Normalerweise hier unter "/home/flo"

=> In deiner proftp config steht:

Code:
# Use this to jail all users in their homes
DefaultRoot	~

Also kommst Du nicht aus "/home/flo" raus.
1.) Möglichkeit (empfehlenswert):
Zielberzeichnis ändern in:
/home/flo/media/ext/ftp/flo/

2.) Möglichkeit:
conf. Zeile löschen/auskommentieren:
Code:
# Use this to jail all users in their homes
# DefaultRoot	~


MfG
Werner
 
also das Home von flo ist unter /media/ext/ftp/flo. Der ordner hat wie gesagt die Berechtigungen die Benötigt werden. Das kranke ist ja das ich im /media/ext/* nicht mal ein Shellscript ausführen kann. Nicht mal mit 777er Rechten und als Root.

Ich hab mal Testweise ein Script erstellt:

Code:
#!/bin/bash

echo "Hallo Welt"

das als test.sh gespeichert. Der Datei hab ich 777er Rechte gegeben und Besitzer sowie Gruppe als Root festgelegt. Will ich es ausführen habe ich keine Berechtigung dazu. Ich tippe da echt stark auf einen Bug seitens Debian (Raspbian). Würde ich wissen wie man einen Bugreport schreibt hätte ich schon länger einen geschrieben.

Also ich bin mit meinem Latein am Ende und zweifle langsam daran das der Raspberry das richtige Gerät für einen kleinen Home ftp Server

Wenn du einverstanden bist kann ich dir per PN die ganzen Serverdaten geben damit du via SSH als Root zugreifen kannst.
 

Anhänge

  • bug.JPG
    bug.JPG
    69,8 KB · Aufrufe: 717
Zuletzt bearbeitet:
... bevor Du das Wagnis eingehst fremde Personen auf deinen Rechner zu lassen :evillol:

Wie Aki bereits sagte^D schrieb : Wie sind denn die Partitionen gemountet?
Code:
mount

Wie startest Du denn das Shellscript? Schon mit "./" vorangestellt? Also
Code:
./script.sh

Wie sieht denn deine "/etc/passwd" aus? Hat der User wirklich das "Home"-Verz. richtig eingetragen?

Code:
server> grep werner /etc/passwd
server> werner:x:6001:6001:werner,,,:/home/werner:/bin/bash

...
 
ok ich hab wohl rausgefunden was das Problem war. Proftpd ist anscheinend ein eigener User. Sprich ich hab in der proftpd.conf einen Eintrag mit default group oder so gefunden. Die habe ich einfach von "nogroup" auf "ftp" geändert. Ich geb dem Homeverzeichnis des jenigen Users, dann root:ftp sowie 775. Zum Schluss wird der Benutzer in die Gruppe ftp hinzugefügt.

Der usb Stick ist so gemountet:

Code:
UUID=2a420cbb-ed7d-4c95-ac35-862f1197ace9       /media/ext      ext4    defaults,exec   0       0

mount gibt

Code:
/dev/root on / type ext4 (rw,noatime,data=ordered)
devtmpfs on /dev type devtmpfs (rw,relatime,size=240208k,nr_inodes=60052,mode=755)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=49696k,mode=755)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /run/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=99380k)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620)
/dev/mmcblk0p1 on /boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro)
/dev/sda on /media/ext type ext4 (rw,relatime,data=ordered)

Ja ich führe das Script mit ./ aus. Jetzt funktioniert es ja seitdem ich in der fstab den Eintrag defaults,exec hinzugefügt hab.

Die /etc/passwd sieht so aus

Code:
root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/bin/sh
bin:x:2:2:bin:/bin:/bin/sh
sys:x:3:3:sys:/dev:/bin/sh
sync:x:4:65534:sync:/bin:/bin/sync
games:x:5:60:games:/usr/games:/bin/sh
man:x:6:12:man:/var/cache/man:/bin/sh
lp:x:7:7:lp:/var/spool/lpd:/bin/sh
mail:x:8:8:mail:/var/mail:/bin/sh
news:x:9:9:news:/var/spool/news:/bin/sh
uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
proxy:x:13:13:proxy:/bin:/bin/sh
www-data:x:33:33:www-data:/var/www:/bin/sh
backup:x:34:34:backup:/var/backups:/bin/sh
list:x:38:38:Mailing List Manager:/var/list:/bin/sh
irc:x:39:39:ircd:/var/run/ircd:/bin/sh
gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
libuuid:x:100:101::/var/lib/libuuid:/bin/sh
sshd:x:101:65534::/var/run/sshd:/usr/sbin/nologin
ntp:x:102:104::/home/ntp:/bin/false
statd:x:103:65534::/var/lib/nfs:/bin/false
messagebus:x:104:106::/var/run/dbus:/bin/false
usbmux:x:105:46:usbmux daemon,,,:/home/usbmux:/bin/false
lightdm:x:106:109:Light Display Manager:/var/lib/lightdm:/bin/false
mario:x:1001:1004::/home/mario:/bin/bash
mysql:x:109:112:MySQL Server,,,:/nonexistent:/bin/false
Debian-exim:x:110:114::/var/spool/exim4:/bin/false
proftpd:x:107:65534::/var/run/proftpd:/bin/false
ftp:x:108:65534::/srv/ftp:/bin/false
flo:x:1000:1000:,,,:/media/ext/ftp/flo:/bin/false
martin:x:1002:1006:,,,:/media/ext/ftp/martin:/bin/false
ftpadmin:x:1003:1007:,,,:/media/ext/ftp/ftpadmin:/bin/false

hoffe das man damit nicht meine passwörter rauslesen kann.

Hoffe ich konnte alle Informationen die benötigt werden preisgeben
 
Das passt aber auch nicht zusammen:

proftpd.conf
Code:
# Users require a valid shell listed in /etc/shells to login.
# Use this directive to release that constrain.
# RequireValidShell off

und

/etc/passwd
Code:
flo:x:1000:1000:,,,:/media/ext/ftp/flo:/bin/false

Bitte mal den "Kommentar" löschen:
proftpd.conf
Code:
# Users require a valid shell listed in /etc/shells to login.
# Use this directive to release that constrain.
RequireValidShell off
Und natürlich proftpd neu starten ....

hoffe das man damit nicht meine passwörter rauslesen kann.
Nein, die sind verschlüsselt in der /etc/shadow

Ist ja logisch :freaky:
 
Zuletzt bearbeitet:
ok nun hab ich einen Bug. Jeder kann in anderen Verzeichnissen rumschnüffeln da alle in der Gruppe ftp sind. Gibt man der Gruppe ftp keine Rechte, so kann sich auch der ftp Server nicht verbinden. Gibt man dem ftp genügend Rechte damit ein User auf den Server zugreifen kann, so kann er auch alle anderen User einsehen was die auf ihren Verzeichnisen haben. Das heißt Theoretisch brauch ich keinen User anlegen weil sowieso jeder auf alles Zugriff hat, sobald ich den Zugang mal eingerichtet hab.
 
ok nun hab ich einen Bug.
Schon wieder einer :cool_alt:

Glaub mir die Pakete die oft benutzt werden sind relativ Fehlerfrei ;)

Code:
    # Use this to jail all users in their homes
    DefaultRoot	~

Steht die Zeile da so?


PS: Sonst läuft der proftp?
Ich würde es als guten Stil empfinden wenn man hier nicht nur um Hilfe schreihen würde, sondern - wen es mal läuft - ein kurzes Feedback geben würde......
 
Default root hab ich auf /media/ext/ftp eingestellt da ja dort die ganzen Verzeichnisse der ganzen User liegen

Wenn ich das mit dem Verzeichnis noch hinbekomme läuft der Server ja. Was halt noch bisschen kompliziert ist, ich muss mit folgendem Befehl einen User mit Verzeichnis anlegen.

Code:
mkdir /media/ext/ftp/user && adduser user -shell /bin/false -home /media/ext/ftp/user && chown -R root:ftp /media/ext/ftp/user && chmod -R 770 /media/ext/ftp/user
Nachdem ich die Befehlskette eingegeben habe muss ich das Passwort eingeben was ja logisch ist aber was mache ich bitte mit Zimmernummer, Telefonnummer usw? Kann man nicht irgendwie ein Script machen wo man den Usernamen und das Passwort eingibt und das Script dann den rest erledigt (Ordner erstellen, Rechte verteilen)? Gut, letzteres ist ein Luxusproblem, wenn ich das mit den Verzeichnissen jedoch hinbekomme, bin ich schon zufrieden
 
default root auf ~

~ entspricht dem jeweiligen nutzer verzeichnis. Wenn Du cd ~ eingibst landest du in deinem Home Verzeichnis.
 
yay es hat funktioniert. Hab proftpd nochmal neu installiert. Dann in der config die Raute bei dem Default Root weggetan und nun funktioniert es einwandfrei. Wenn ich meinen Lappi neu aufgesetzt habe und mein Raspi wieder Internet hat, dann probier ich

<Limit LOGIN>
AllowGroup ftp
DenyAll
</Limit>

Glaub ich werd die Konfigurationsdatei von dem ganzen einkommentierten Zeugs säubern. Eine 10 Zeilen Config sieht nämlich besser aus als eine 100 Zeilen Config wo 90 Zeilen eh nur einkommentiert ist. So sind auch so fehler leichter erkennbar für mich
 
Schön :D

Bevor Du die Config-Datei aufräumst mach eine Kopie davon. Diese Datei ist mit ihren ganzen Kommentaren Teil der Dokumentation.



Bzgl. Fehlersuche noch ein Tipp für deinen zukünftigen Weg als angehender Linux Fan :freaky:
Viele der Programme schreiben ihre Fehler in eine Log-Datei. Also:
Schritt 1.) Es geht nicht
Schritt 2.) Was steht in /var/log/syslog, /var/log/messages, /var/log/programm-xyz, ...
Schritt 3.) Schauen&Verstehen was der Output-Müll bedeutet
Schritt 4.) Nach Fehler ggf. I-Net suchen/bzw. danach fragen
 
Zurück
Oben