<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.qnap.com/mediawiki/index.php?title=Ftp_run_modded_FTP_conf_on_boot&amp;feed=atom&amp;action=history</id>
	<title>Ftp run modded FTP conf on boot - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.qnap.com/mediawiki/index.php?title=Ftp_run_modded_FTP_conf_on_boot&amp;feed=atom&amp;action=history"/>
	<link rel="alternate" type="text/html" href="https://wiki.qnap.com/mediawiki/index.php?title=Ftp_run_modded_FTP_conf_on_boot&amp;action=history"/>
	<updated>2022-09-01T02:12:54Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.2</generator>
	<entry>
		<id>https://wiki.qnap.com/mediawiki/index.php?title=Ftp_run_modded_FTP_conf_on_boot&amp;diff=349&amp;oldid=prev</id>
		<title>Admin: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://wiki.qnap.com/mediawiki/index.php?title=Ftp_run_modded_FTP_conf_on_boot&amp;diff=349&amp;oldid=prev"/>
		<updated>2015-06-22T00:58:48Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;multilang&amp;gt;&lt;br /&gt;
&lt;br /&gt;
@de|Dies ist eine Anleitung um die zuvor geänderten Einträge in der proftp.conf immer beim Systemstart zu laden um somit die Änderung aktiv zu haben.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
= Vorraussetzungen =&lt;br /&gt;
&lt;br /&gt;
*Sie müssen bereits alle Änderungen in der proftpd.conf Datei vorgenommen haben.&lt;br /&gt;
*Sie müssen wissen wie man sich via [http://de.wikipedia.org/wiki/Secure_Shell ssh] oder [http://de.wikipedia.org/wiki/Telnet telnet] (z.B. mit '''SSH PuTTY''') auf das NAS verbindet&amp;lt;br&amp;gt; &lt;br /&gt;
*Sie müssen wissen wie man Dateien mit dem Editor [http://de.wikipedia.org/wiki/Vi #vi] bearbeitet oder wie man via SFTP (z.B. mit '''WinSCP''') Dateien bearbeitet&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Anleitung =&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;'''Schritt 1'''&amp;lt;/u&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
*Verbinden Sie sich mit SSH oder Telnet auf Ihren Qnap Gerätz.B. mit Putty&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;'''Schritt 2'''&amp;lt;/u&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
*Mit dieser Zeile kopieren Sie die bearbeitete '''proftpd.conf''' Datei in das Verzeichniss, von wo sie beim Systemstart geladen wird.&amp;lt;br&amp;gt; &lt;br /&gt;
&amp;lt;pre&amp;gt;cp /mnt/HDA_ROOT/.config/proftpd.conf /share/HDA_DATA/Public/&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;'''Schritt 3'''&amp;lt;/u&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
*Binden Sie die config Datei ein ramblock /dev/mtdblock5:&lt;br /&gt;
&amp;lt;pre&amp;gt;mount -t ext2 /dev/mtdblock5 /tmp/config&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;'''Schritt 4'''&amp;lt;/u&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
*Bearbeiten Sie die '''autorun.sh''' mit vi: (falls nicht vorhanden, anlegen)&lt;br /&gt;
&amp;lt;pre&amp;gt;vi /tmp/config/autorun.sh&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;'''Schritt 4.1'''&amp;lt;/u&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
*Um in den Bearbeitungsmodus zu wechseln drücken Sie die Taste: '''a''' &lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;'''Schritt 4.2'''&amp;lt;/u&amp;gt;&amp;lt;br&amp;gt;Fügen Sie nun diesen Text am Ende ein&lt;br /&gt;
&amp;lt;pre&amp;gt;#Beschreibung&lt;br /&gt;
cp /share/HDA_DATA/Public/proftpd.conf /mnt/HDA_ROOT/.config/&lt;br /&gt;
/etc/init.d/ftp.sh reconfig&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;'''Schritt 4.3'''&amp;lt;/u&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
*Verlassen Sie den Bearbeitungsmodus mit: '''ESC''' &lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;'''Schritt 4.4'''&amp;lt;/u&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
*Anschliessend speichern und verlassen Sie mit: '''ZZ'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;'''Schritt 4.5'''&amp;lt;/u&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
*Stellen Sie sicher das /tmp/config/autorun.sh ausführbar ist: &amp;lt;pre&amp;gt;# chmod +x /tmp/config/autorun.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;'''Schritt 5'''&amp;lt;/u&amp;gt;&lt;br /&gt;
*'''Wichtig:''' Trennen Sie die verbundene Partition mit dem Befehl:&lt;br /&gt;
&amp;lt;pre&amp;gt;umount /tmp/config&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;'''Schritt 6'''&amp;lt;/u&amp;gt;&lt;br /&gt;
*Nun das Nas neustarten und nachsehen ob alles funktioniert!&lt;br /&gt;
&amp;lt;pre&amp;gt;reboot&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Hinweis =&lt;br /&gt;
Bei nachträglichen Änderungen über das Web-Adminmenü gehen die aktuellen Einstellungen verloren bzw. werden beim nächsten Neustart des Gerätes wieder ungültig.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Deutsches Qnap Forum [http://forum.qnapclub.de www.qnapclub.de].&lt;br /&gt;
&lt;br /&gt;
@en| &lt;br /&gt;
&lt;br /&gt;
This is a guide to make custom entries in proftp.conf persist on your QNAP NAS.&lt;br /&gt;
&lt;br /&gt;
= Requirements =&lt;br /&gt;
&lt;br /&gt;
* You must have already completed all the changes in the proftpd.conf file.&lt;br /&gt;
* You need to know how to get via ssh or telnet (eg with PuTTY SSH connects) to the NAS&lt;br /&gt;
* You need to know how to file with the editor # vi edit or how to via SFTP (eg with WinSCP ) edited files&lt;br /&gt;
&lt;br /&gt;
= Instructions =&lt;br /&gt;
&lt;br /&gt;
== Step 1 ==&lt;br /&gt;
Connect to your QNAP with SSH or Telnet, probably using Putty.&lt;br /&gt;
== Step 2 ==&lt;br /&gt;
Use the following command line to copy the existing proftpd.conf for easy editing off of the NAS&lt;br /&gt;
# cp /mnt/HDA_ROOT/.config/proftpd.conf /share/HDA_DATA/Public/&lt;br /&gt;
== Step 3 ==&lt;br /&gt;
Bind the config file ramblock / dev/mtdblock5:&lt;br /&gt;
# mount-t ext2 /dev/mtdblock5/tmp/config&lt;br /&gt;
== Step 4 ==&lt;br /&gt;
Edit the autorun.sh with vi: (if not exist, create it)&lt;br /&gt;
# vi /tmp/config/autorun.sh&lt;br /&gt;
=== Step 4.1 ===&lt;br /&gt;
To switch to edit mode, press the key: a&lt;br /&gt;
=== Step 4.2 ===&lt;br /&gt;
Now add the following code at the end of a the line starting with '# Description'&lt;br /&gt;
# cp /share/HDA_DATA/Public/proftpd.conf /mnt/HDA_ROOT/.config/&lt;br /&gt;
# /etc/init.d/reconfig ftp.sh&lt;br /&gt;
=== Step 4.3 ===&lt;br /&gt;
Exit the edit mode: ESC&lt;br /&gt;
=== Step 4.4 ===&lt;br /&gt;
Then save and quit with you: ZZ&lt;br /&gt;
=== Step 4.5 ===&lt;br /&gt;
Make sure the /tmp/config/autorun.sh executable is:&lt;br /&gt;
# chmod + x /tmp/config/autorun.sh&lt;br /&gt;
== Step 5 ==&lt;br /&gt;
Important: Disconnect the partition with the command:&lt;br /&gt;
# umount /tmp/config&lt;br /&gt;
== Step 6 ==&lt;br /&gt;
Now the Nas reboot and see if everything works!&lt;br /&gt;
# reboot&lt;br /&gt;
&lt;br /&gt;
= Note =&lt;br /&gt;
&lt;br /&gt;
In case of subsequent changes through the web admin menu, the modified settings will be lost as soon as the service or device is restarted.&lt;br /&gt;
&lt;br /&gt;
German QNAP forum www.qnapclub.de.&lt;br /&gt;
&amp;lt;/multilang&amp;gt; &lt;br /&gt;
&lt;br /&gt;
[[Category:FTP_Server]]&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>