*New 11.3 series Release:
2019-10-19: XigmaNAS 11.3.0.4.7014 - released

*New 12.0 series Release:
2019-10-05: XigmaNAS 12.0.0.4.6928 - released!

*New 11.2 series Release:
2019-09-23: XigmaNAS 11.2.0.4.6881 - released!

We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS costs money. Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL

Proftp welcome message problem

File transfer protocol.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
744700595
experienced User
experienced User
Posts: 83
Joined: 09 Mar 2017 01:30
Status: Offline

Proftp welcome message problem

#1

Post by 744700595 » 13 Jul 2018 02:03

I want to reflect a problem with proftp webgui
I use proftp webgui to generate a text image welcome message. I found that the image was completely ruined and it didn't seem to correctly recognize the carriage return symbol.

Then I manually edited /var/run/proftpd/proftpd.motd. Use the same text image. It can then be displayed normally during use. I feel that this is a problem with webgui. I hope the development team has time to test it.
Thank you
11.png
You do not have the required permissions to view the files attached to this post.
Favorite to kill the red devil
FreeBSD users from China. English is limited and posted using Google Translate. If the expression is not clear, please forgive me!

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4924
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: Proftp welcome message problem

#2

Post by raulfg3 » 13 Jul 2018 08:52

added suport to read "LF" from 9.1.0.1.509 viewtopic.php?f=78&t=1600&p=7000&hilit=motd+LF#p7000

Perhaps is broken in new release?
12.0.0.4 (revision 6766)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size only 22TB usable

Wiki
Last changes

744700595
experienced User
experienced User
Posts: 83
Joined: 09 Mar 2017 01:30
Status: Offline

Re: Proftp welcome message problem

#3

Post by 744700595 » 13 Jul 2018 11:20

raulfg3 wrote:
13 Jul 2018 08:52
added suport to read "LF" from 9.1.0.1.509 viewtopic.php?f=78&t=1600&p=7000&hilit=motd+LF#p7000

Perhaps is broken in new release?
Excuse me, my English is not good, it was translated by Google. I don't quite understand what you mean.
Last edited by 744700595 on 16 Jul 2018 13:22, edited 1 time in total.
Favorite to kill the red devil
FreeBSD users from China. English is limited and posted using Google Translate. If the expression is not clear, please forgive me!

User avatar
ms49434
Developer
Developer
Posts: 720
Joined: 03 Sep 2015 18:49
Location: Neuenkirchen-Vörden, Germany - GMT+1
Contact:
Status: Online

Re: Proftp welcome message problem

#4

Post by ms49434 » 13 Jul 2018 13:30

raulfg3 wrote:
13 Jul 2018 08:52
added suport to read "LF" from 9.1.0.1.509 viewtopic.php?f=78&t=1600&p=7000&hilit=motd+LF#p7000

Perhaps is broken in new release?
Explanation:
System motd and proftpd welcome message are two different settings.
Motd has been programmed to preserve tabs, line feed and escape sequences using base64 encoding.
The proftpd welcome message has never been programmed in such a way - it was never expected that it will contain more than one line.

Background:
The root cause of the lost line feed characters can be found in the config reader.
The config reader strips CR, LT and TAB from a configuration value, see xmlparse.inc.
If these characters must be preserved it is required to encode/decode the data (base64),
Changes must be applied to services_ftp.php and to the proftpd rc script.
1) XigmaNAS 12.0.0.4 amd64-embedded on a Dell T20 running in a VM on ESXi 6.7U2, 22GB out of 32GB ECC RAM, LSI 9300-8i IT mode in passthrough mode. Pool 1: 2x HGST 10TB, mirrored, SLOG: Samsung 850 Pro, L2ARC: Samsung 850 Pro, Pool 2: 1x Samsung 860 EVO 1TB , services: Samba AD, CIFS/SMB, ftp, ctld, rsync, syncthing, zfs snapshots.
2) XigmaNAS 12.0.0.4 amd64-embedded on a Dell T20 running in a VM on ESXi 6.7U2, 8GB out of 32GB ECC RAM, IBM M1215 crossflashed, IT mode, passthrough mode, 2x HGST 10TB , services: rsync.

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4924
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: Proftp welcome message problem

#5

Post by raulfg3 » 15 Jul 2018 21:54

Ok thanks to add support on latest 5753: https://sourceforge.net/p/xigmanas/code ... d00f2:5752
12.0.0.4 (revision 6766)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size only 22TB usable

Wiki
Last changes

744700595
experienced User
experienced User
Posts: 83
Joined: 09 Mar 2017 01:30
Status: Offline

Re: Proftp welcome message problem

#6

Post by 744700595 » 16 Jul 2018 11:05

raulfg3 wrote:
15 Jul 2018 21:54
Ok thanks to add support on latest 5753: https://sourceforge.net/p/xigmanas/code ... d00f2:5752
thank you for your reply. Are you saying that this patch can be solved? Or what file to replace?
I think the version I am currently using is better and I don't want to upgrade it whole. Can I patch it separately?

I haven't patched it for many years, forget how to fight it.
Favorite to kill the red devil
FreeBSD users from China. English is limited and posted using Google Translate. If the expression is not clear, please forgive me!

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4924
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: Proftp welcome message problem

#7

Post by raulfg3 » 16 Jul 2018 11:09

You need to wait until a new release are post , this new release contain the patch done in latest 5753
12.0.0.4 (revision 6766)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size only 22TB usable

Wiki
Last changes

744700595
experienced User
experienced User
Posts: 83
Joined: 09 Mar 2017 01:30
Status: Offline

Re: Proftp welcome message problem

#8

Post by 744700595 » 16 Jul 2018 13:19

This should be just a WEBGUI issue. If you can patch it, it will be fine. The upgrade requires a reboot. This is a problem
Favorite to kill the red devil
FreeBSD users from China. English is limited and posted using Google Translate. If the expression is not clear, please forgive me!

744700595
experienced User
experienced User
Posts: 83
Joined: 09 Mar 2017 01:30
Status: Offline

Re: Proftp welcome message problem

#9

Post by 744700595 » 16 Jul 2018 13:25

ms49434 wrote:
13 Jul 2018 13:30
raulfg3 wrote:
13 Jul 2018 08:52
added suport to read "LF" from 9.1.0.1.509 viewtopic.php?f=78&t=1600&p=7000&hilit=motd+LF#p7000

Perhaps is broken in new release?
Explanation:
System motd and proftpd welcome message are two different settings.
Motd has been programmed to preserve tabs, line feed and escape sequences using base64 encoding.
The proftpd welcome message has never been programmed in such a way - it was never expected that it will contain more than one line.

Background:
The root cause of the lost line feed characters can be found in the config reader.
The config reader strips CR, LT and TAB from a configuration value, see xmlparse.inc.
If these characters must be preserved it is required to encode/decode the data (base64),
Changes must be applied to services_ftp.php and to the proftpd rc script.
thanks
Favorite to kill the red devil
FreeBSD users from China. English is limited and posted using Google Translate. If the expression is not clear, please forgive me!

Post Reply

Return to “FTP”