Koozali.org: home of the SME Server

problems with changes in the proftpd.conf

honk

problems with changes in the proftpd.conf
« on: July 10, 2005, 08:02:50 PM »
hi,

when i have made some changes in the proftp.conf and i restart my server, the changes aren't there anymore.

do you have an idea, why the changes aren't saved??


bye
honk

cc_skavenger

problems with changes in the proftpd.conf
« Reply #1 on: July 11, 2005, 02:17:34 AM »
are you putting the changes in a template fragment or changing the file directly? If changing directly, they will dissapear.  You need to change the template fragment that corresponds to the area you want to change or create the fragment you want to add.

HTH

honk

problems with changes in the proftpd.conf
« Reply #2 on: July 11, 2005, 10:48:39 AM »
where can i find this template??

thank you for the fast answer.

honk

Offline raem

  • *
  • 3,972
  • +4/-0

honk

problems with changes in the proftpd.conf
« Reply #4 on: July 11, 2005, 08:15:12 PM »
so which file does i have to copy in the /etc/e-smith:
the /etc/proftpd.conf or
the /etc/e-smith/templates/proftpd.conf

honk

cc_skavenger

problems with changes in the proftpd.conf
« Reply #5 on: July 11, 2005, 09:04:35 PM »
ok, what are you trying to add, modify, or delete?

Look in /etc/e-smith/templates/etc/proftpd.conf/ for the files that are used to create the file /etc/proftpd.conf.  

The short lesson:
If you want to add or modify something in proftpd, create the directory path /etc/e-smith/templates-custom/etc/proftpd.conf/.  Add a file (numbered corresponding to where you want it placed in the file /etc/proftpd.conf) to this directory.  Expand the template with the command /sbin/e-smith/expand-template /etc/proftpd.conf and then restart the proftpd daemon with the command /etc/rc.d/init.d/proftpd restart.

That should be it.

HTH

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
problems with changes in the proftpd.conf
« Reply #6 on: July 12, 2005, 11:56:03 PM »
Quote from: "cc_skavenger"

... and then restart the proftpd daemon with the command /etc/rc.d/init.d/proftpd restart.


No, don't do that. proftpd doesn't run as a daemon, and doesn't need to be restarted. It starts from xinetd, with a new instance for each connection, so will read an up to date proftpd.conf file.

cc_skavenger

problems with changes in the proftpd.conf
« Reply #7 on: July 13, 2005, 03:56:13 PM »
Thanks for clearing that up, Charlie.  I have never really messed with proftpd.  I was just running through the steps for modifying things like squid through the template system.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
problems with changes in the proftpd.conf
« Reply #8 on: July 13, 2005, 04:08:38 PM »
Quote from: "cc_skavenger"
Thanks for clearing that up, Charlie.  I have never really messed with proftpd.  I was just running through the steps for modifying things like squid through the template system.


Yep, they're different. Without knowing the details, the only valid "general purpose" advice after making changes is:

/sbin/e-smith/signal-event post-upgrade
/sbin/e-smith/signal-event reboot

That'll work for *any* change (but can be inconvenient).