Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

proFTPd issues - please help

Featured Replies

 

I've been trying to get this to work for two days now without much success.

 

It seems that i can log into the ftp using a windows based client but i cant write to the directory.

 

Can someone take a look at the following and give me a hand, i'm really struggling ???

 

 

This is the permissions bit for the appropriate folder:-

drwxrwxrwx  4 root  root  120 Jul 18 11:43 Camera/

 

and this is the proftpd.conf content:-

#To really apply changes reload proftpd after modifications.

 

AllowOverwrite on

AuthAliasOnly on

 

# Choose here the user alias you want !!!!

UserAlias daniel userftp

 

ServerName                      "danftp"

ServerType                      standalone

DeferWelcome                    on

 

MultilineRFC2228 on

DefaultServer                  on

ShowSymlinks                    off

 

TimeoutNoTransfer 600

TimeoutStalled 100

TimeoutIdle 2200

 

#DisplayChdir                    .message

ListOptions                    "-l"

 

RequireValidShell              off

 

TimeoutLogin 20

 

RootLogin                      off

 

# It's better for debug to create log files

ExtendedLog                    /var/log/ftp.log

TransferLog                    /var/log/xferlog

SystemLog                      /var/log/syslog.log

 

#DenyFilter                    \*.*/

 

# I don't choose to use /etc/ftpusers file (set inside the users you want to ban, not useful for me)

UseFtpUsers off

 

# Allow to restart a download

AllowStoreRestart              on

 

# Port 21 is the standard FTP port, so you may prefer to use another port for security reasons (choose here t

he port you want)

Port                            21

 

# 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 3

 

# Set the user and group that the server normally runs at.

User                  nobody

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

 

PersistentPasswd                off

 

MaxClients 8

MaxClientsPerHost 8

MaxClientsPerUser 8

MaxHostsPerUser 8

 

# Display a message after a successful login

AccessGrantMsg "welcome !!!"

# This message is displayed for each access good or not

ServerIdent                  on      "you're at home"

 

# Lock all the users in home directory, ***** really important *****

DefaultRoot ~

 

MaxLoginAttempts    5

 

#VALID LOGINS

<Limit LOGIN>

AllowUser userftp

DenyALL

</Limit>

 

<Directory /mnt/disk2/BACKUPS/Camera>

        <Limit ALL>

          DenyAll

        </Limit>

 

        <Limit CDUP CWD XCWD XCUP>

          AllowAll

        </Limit>

 

        <Limit STOR STOU>

          AllowAll

        </Limit>

</Directory>

 

Many thanks for your time, Dan

 

 

Do you actually specify the username+password while connecting, or does windows use the defaults (which is anonymous access, which would likely not have the required permissions). Not sure where the logfiles for proftpd land, most likely in /var/log or in syslog, so dig those up and post them here if you can't find anything obvious yourself.

 

 

  • Author

 

I can specify the username and password.

I've had a look through the log files but there isnt anything obvious to me (not surprisingly).

Do you see anything?

 

Having had a look around the /mnt directory i've found several failed test attempts to write to the ftp, this must mean i've been close at some point?

proftpd.txt

syslog.txt

  • Author

 

I've found this also, in the /var/log/ftp.log

 

192.168.0.150 UNKNOWN nobody [18/Jul/2011:16:33:41 +0100] "USER daniel" 331 -

192.168.0.150 UNKNOWN userftp [18/Jul/2011:15:33:41 +0000] "PASS (hidden)" 230 -

192.168.0.150 UNKNOWN userftp [18/Jul/2011:15:33:41 +0000] "CWD /" 250 -

192.168.0.150 UNKNOWN userftp [18/Jul/2011:15:33:41 +0000] "CWD /BACKUPS/Camera/" 550 -

192.168.0.150 UNKNOWN userftp [18/Jul/2011:15:33:41 +0000] "MKD /BACKUPS/Camera/" 550 -

192.168.0.150 UNKNOWN userftp [18/Jul/2011:15:33:41 +0000] "CWD /BACKUPS/Camera/" 550 -

192.168.0.150 UNKNOWN userftp [18/Jul/2011:15:33:41 +0000] "TYPE I" 200 -

192.168.0.150 UNKNOWN userftp [18/Jul/2011:15:33:41 +0000] "PASV" 227 -

192.168.0.150 UNKNOWN userftp [18/Jul/2011:15:33:41 +0000] "STOR Trigger_1_20110718162511.avc" 550 -

192.168.0.150 UNKNOWN userftp [18/Jul/2011:15:33:41 +0000] "QUIT" 221 -

192.168.0.150 UNKNOWN nobody [18/Jul/2011:16:36:13 +0100] "USER daniel" 331 -

192.168.0.150 UNKNOWN userftp [18/Jul/2011:15:36:13 +0000] "PASS (hidden)" 230 -

192.168.0.150 UNKNOWN userftp [18/Jul/2011:15:36:13 +0000] "CWD /" 250 -

192.168.0.150 UNKNOWN userftp [18/Jul/2011:15:36:13 +0000] "CWD /BACKUPS/Camera/" 550 -

192.168.0.150 UNKNOWN userftp [18/Jul/2011:15:36:14 +0000] "MKD /BACKUPS/Camera/" 550 -

192.168.0.150 UNKNOWN userftp [18/Jul/2011:15:36:14 +0000] "CWD /BACKUPS/Camera/" 550 -

192.168.0.150 UNKNOWN userftp [18/Jul/2011:15:36:14 +0000] "TYPE I" 200 -

192.168.0.150 UNKNOWN userftp [18/Jul/2011:15:36:14 +0000] "PASV" 227 -

192.168.0.150 UNKNOWN userftp [18/Jul/2011:15:36:14 +0000] "STOR Trigger_1_20110718162743.avc" 550 -

192.168.0.150 UNKNOWN userftp [18/Jul/2011:15:36:14 +0000] "QUIT" 221 -

 

Looks like its trying to write the file to a folder but cant, permissions?

The folder already exists tho? So do i just want the client to just write its info to the location specified by the proftpd.conf?

 

 

550 is Permission Denied in ftp-speak, so it does seem to be the direction to look in.

 

I noticed you're using userftp in the config, with an alias defined for daniel. Perhaps something goes wrong in this area. Does either daniel or userftp exist in unraid?

  • Author

 

Well daniel is me so it could well be used in unraid somewhere. To be honest i cant remember.

I'll change this alias in the .conf and see how that goes.

I just dont know what permissions I need to allow in the 'Camera' folder so that it can be written to by anybody?

In the ftp.log, it says you're changing to /BACKUPS/Camera. Have you tried going to /mnt/disk2/BACKUPS/Camera in the ftp client? I don't see anything that defines/changes what the root would be, so it may just require the full path.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.