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 Plugin for unRAID v6.8.x

Featured Replies

Spent an hour on it and couldn't figure out how to get the SSH cert to.work properly.

So sorry, between my screening kid right now, SFTP being slower and I have OpenVPN already, not sure if I'll look at this in a timely manner

  • Replies 845
  • Views 241.9k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • @MJA Inc. The second install option from the first post should still work, I think.   @all If anyone want's to pick up my work, you're welcome! It is open source, feel free to use

  • soschronotek
    soschronotek

    genius, this worked perfectly on my new install. this is definitely a bug or something

  • @geonerdist Yes, that is the reason.

Posted Images

Spent an hour on it and couldn't figure out how to get the SSH cert to.work properly.

So sorry, between my screening kid right now, SFTP being slower and I have OpenVPN already, not sure if I'll look at this in a timely manner

 

perfectly understandable – thx. alot for trying!

well, i would also use VPN, but this backup-software doesn't support FTP – just SFTP.

 

may i ask, what errors you were seeing? and is there's anything special related to unRAID v6.2 (is it compatible)?

 

thx. again,

oliver

 

Here is an example of how I like to setup the FTP.

Thanks for this - similar to mine, but the tmp directory technique is a good trick.

 

Do you know how to setup permissions for different users?  Say for myself I wanted write access to certain directories, but for other users I want it all locked down?

Thanks for this - similar to mine, but the tmp directory technique is a good trick.

Do you know how to setup permissions for different users?  Say for myself I wanted write access to certain directories, but for other users I want it all locked down?

 

What I do is make FTP groups via file structure.

So my file structure isn't exactly how my guide has it.

 

and example would be

 

mkdir /tmp/FTP/
mkdir /tmp/FTP/Cessquill

mount --bind /mnt/user/Media/Videos /tmp/FTP/Cessquill/Media/
mount --bind /mnt/user/Uploads /tmp/FTP/Cessquill/Uploads

mkdir /tmp/FTP/JaY_III
mount --bind /mnt/user/

 

#File Permissions
<Directory /tmp/FTP/Cessquill/Media>
<Limit WRITE>
DenyAll
</Limit>
</Directory>

 

Then i would jail you too

ftpuser /tmp/FTP/Cessquill

 

And jail myself to

ftpuser /tmp/FTP/JaY_III

 

I have full access to /mnt/user aka then entire array pretty much

and you have read only to the media and upload permissions.

 

Is this the best way to do it, probably not, but it works

Is this the best way to do it, probably not, but it works

D'oh!  Of course, thank you.  That's actually how I've got it set up at the moment, just without the permissions.  Cheers

Hi,

 

First great plugin!

 

I have a question how i can chroot a user? because now a user can browse over the whole file-structure when it press the arrow key to go out his starting folder.

 

Thanks.

Hi,

 

First great plugin!

 

I have a question how i can chroot a user? because now a user can browse over the whole file-structure when it press the arrow key to go out his starting folder.

 

Thanks.

 

if a user account has access to "/" restart  the service.

If restarting the service doesnt work, restarting the array will.

 

I had the problem when i made an account for my sister, unRAID reboot was required.

Hi,

 

First great plugin!

 

I have a question how i can chroot a user? because now a user can browse over the whole file-structure when it press the arrow key to go out his starting folder.

 

Thanks.

 

if a user account has access to "/" restart  the service.

If restarting the service doesnt work, restarting the array will.

 

I had the problem when i made an account for my sister, unRAID reboot was required.

 

Thanks for your reply that working for me to ;)

 

Spent an hour on it and couldn't figure out how to get the SSH cert to.work properly.

So sorry, between my screening kid right now, SFTP being slower and I have OpenVPN already, not sure if I'll look at this in a timely manner

 

perfectly understandable – thx. alot for trying!

well, i would also use VPN, but this backup-software doesn't support FTP – just SFTP.

 

may i ask, what errors you were seeing? and is there's anything special related to unRAID v6.2 (is it compatible)?

 

thx. again,

oliver

 

 

I may be off on SFTP but isn't that simply enabling SSL? If so I placed a guide towards the start of this thread. See below:

 

EDIT: Nvm, shouldve googled first. Seems like the SFTP requires a lot more work including a recompile.....meh

 

Setting up SSL (YMMV, these are the settings I set for myself that I was able to get to work. Any change suggestions welcome)

 

1) Stop Proftpd (just in case)

 

2) Login through telnet and paste the following two lines in order. Please note I had to specify the config file (for some reason the default is .cnf but the one I had in my ssl folder is .cfg)

mkdir /boot/config/plugins/proftpd/ssl/
openssl req -new -x509 -config /etc/ssl/openssl.cfg -days 3650 -nodes -out /boot/config/plugins/proftpd/ssl/ftp.cert.pem -keyout /boot/config/plugins/proftpd/ssl/ftp.key.pem

 

3) Add following to the end of your proftpd.conf

<IfModule mod_tls.c>
TLSEngine on

TLSLog /var/log/proftpd.tls.log

TLSProtocol SSLv23 TLSv1

TLSOptions NoCertRequest NoSessionReuseRequired 

TLSRSACertificateFile /boot/config/plugins/proftpd/ssl/ftp.cert.pem

TLSRSACertificateKeyFile /boot/config/plugins/proftpd/ssl/ftp.key.pem

TLSVerifyClient off

TLSRequired on

</IfModule>

 

4) Start Proftpd again and log in. Remember to enable TLS/SSL authentication for your client.

Doing a quick search I have not found anything about this issue. I have tried this on a server without ProFTPD, but logging in as root and it works. Maybe on my home server I am not doing things correctly. I have sshfs setup on a VM for my brother to use and I am trying to mount his FTP share within the VM. We do this for CrashPlan on my work server and it works fine when logging in as root. Here is the command I'm using for my brother's VM.

 

sshfs [email protected]: /home/brother/FTP

 

All I am getting is "remote host has disconnected".

  • 2 weeks later...

I tried to install the plugin on unRAID 6.2.1 but when I try to start it, I get a "Cannot start ProFTPd -- /etc/proftpd.conf missing" error.

 

Is that normal? I expect the plugin to come with a barebone config file.

  • 5 weeks later...

I tried to install the plugin on unRAID 6.2.1 but when I try to start it, I get a "Cannot start ProFTPd -- /etc/proftpd.conf missing" error.

 

Is that normal? I expect the plugin to come with a barebone config file.

I have the same problem. I have just installed the plugin, added the ftpuser tag to a user's description. Now if I enable proftpd it doesn't start. The only thing I see in my syslog is :

Nov 19 20:35:00 Tower emhttp: cmd: /usr/local/emhttp/plugins/ProFTPd/scripts/rc.ProFTPd buttonstart

 

but the server is not running.

 

If I try to start it manually using shell:

root@Tower:/etc# /usr/local/emhttp/plugins/ProFTPd/scripts/rc.ProFTPd start

Cannot start ProFTPd -- /etc/proftpd.conf missing

 

Finally managed to start it.

 

I have symlinked /etc/proftpd.conf to the real one like so:

 

ln -s /boot/config/plugins/ProFTPd/proftpd.conf /etc/proftpd.conf

  • 1 month later...

Hello all- Been using ProFTPD and was working fine.  I think my roommate installed a flavor of vsftpd and now that appears to be taking over ftp requests (and I have no users configured so it does not work).  Does anyone know how to completely remove vsftpd so ProFTPD can continue to work correctly?

 

Sorry if someone else has already answered this question.  I could not find any info on this.

 

EDIT  And I have removed the vsftpd docker he installed but it still seems to be trying to answer ftp requests.

EDIT To the EDIT- Running unraid 6.1.4

Final EDIT- Fixed.  Re-added and removed the docker one more time and it seems like that took care of it.  Thanks for reading

  • 2 weeks later...

Hi There,

 

Can anyone shed some light on this issue i'm having.

 

When I try to install proFTPd i get the following error even though I have a working internet connection:

 

plugin: installing: https://raw.githubusercontent.com/SlrG/unRAID/master/Plugins/ProFTPd.plg

plugin: downloading https://raw.githubusercontent.com/SlrG/unRAID/master/Plugins/ProFTPd.plg

plugin: downloading: https://raw.githubusercontent.com/SlrG/unRAID/master/Plugins/ProFTPd.plg ... done

Cleaning up previous install files...

Executing selfremoval commands if present...

...Cleanup complete!

Downloading any missing plugin files...

Latest plugin control files downloading

...Unable to download missing plugin control files. Aborting install

plugin: run failed: /bin/bash retval: 1

 

Thank you in advance

  • 3 weeks later...
  • Author

Sorry for the late reply. Somehow I got no notifaction of your message. Sadly the log is not very telling. Did you try to remove the plugin completely and reinstall it again?

kr33 , check your DNS settings

Finally managed to start it.

 

I have symlinked /etc/proftpd.conf to the real one like so:

 

ln -s /boot/config/plugins/ProFTPd/proftpd.conf /etc/proftpd.conf

 

genius, this worked perfectly on my new install. this is definitely a bug or something

I just installed this plugin into v6.2.4.

 

I've noticed when I select Settings->ProFTPd the Lime Tech logo in the upper left of the screen in the banner has a solid white background. Compared to all other pages in unRAID which have the logo with a transparent background.

 

Not sure if this is a problem in unRAID or just the ProFTPd plugin. It seems like just the plugin since it only happens on that page.

  • Author

I just gave it a try on my 6.3.1 system. In both Chrome and Firefox it does work for me. What browser are you using?

  • 2 weeks later...

Installed ProFTPd on UR 6.3.2, running and been able to access server localnet via FTP.  Great program thanks!  One problem, I don't see the config display in the app config area.  What can I check to see why this isn't displaying?

 

Thanks in advance!

 

ProFTPd.jpg

  • Author

@jeffreywhunter

The path to the webserver needs to be a full path. I have /mnt/cache/Web. The plugin will copy the files of the config editor to a ProFTPd directory there. You need a webserver running on your unraid which serves files from that directory, or it won't work. You should be able to connect to the config editor by typing http://x.x.x.x:8088/ProFTPd/ConfEdit.php into your browsers url field. x.x.x.x should be the ip of your unraid server. Also the port 8088 needs to be the port the webserver is listening on.

@StevenHB

Please contact me again via PM. The forum upgrade seems to have killed you message in my inbox? I don't think the error messages you listed are related to this plugin. Please enable the TransferLog and check the output you get in this when trying to connect.

41 minutes ago, SlrG said:

@jeffreywhunter

The path to the webserver needs to be a full path. I have /mnt/cache/Web. The plugin will copy the files of the config editor to a ProFTPd directory there. You need a webserver running on your unraid which serves files from that directory, or it won't work. You should be able to connect to the config editor by typing http://x.x.x.x:8088/ProFTPd/ConfEdit.php into your browsers url field. x.x.x.x should be the ip of your unraid server. Also the port 8088 needs to be the port the webserver is listening on.

@StevenHB

Please contact me again via PM. The forum upgrade seems to have killed you message in my inbox? I don't think the error messages you listed are related to this plugin. Please enable the TransferLog and check the output you get in this when trying to connect.

Which web server should I install to support ProFTPd?  Will it work with the internal unRaid web server?

As to the error messages, I was able to get ProFTPd working with only this remaining problem.

Edited by jeffreywhunter

59 minutes ago, SlrG said:

@jeffreywhunter

The path to the webserver needs to be a full path. I have /mnt/cache/Web. The plugin will copy the files of the config editor to a ProFTPd directory there. You need a webserver running on your unraid which serves files from that directory, or it won't work. You should be able to connect to the config editor by typing http://x.x.x.x:8088/ProFTPd/ConfEdit.php into your browsers url field. x.x.x.x should be the ip of your unraid server. Also the port 8088 needs to be the port the webserver is listening on.

When I try to access the config editor, I get 

Not Found

The requested URL /ProFTPd/ConfEdit.php was not found on this server.

BOTH from a web browser or from within ProFTPd.

  • Author

@jeffreywhunter

No it won't work with unRAIDs  internal webserver. As webserver I recommend the Apache Web Server Plugin as I am using this myself. I tried the available dockers first, but somehow I was not able to get it to work there. I see you posted in the plugins thread already. I recommend running as user nobody and setting the permissions and group of the web folder accordingly. Most of the files on your unRAID will have this user and group. You can use the newperms script to achieve proper settings:

newperms /mnt/cache/web

And a side note: You don't need the config editor to change your proftpd.conf.  You can always use nano or something and edit it in an unRAID console. :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

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.