|If for whatever reason, you're missing all or some of your system ftp accounts in your /etc/proftpd.passwd file, you can do the following to ensure they're all present.|
First change to the root directory:
cd /rootThen create a file called fix_ftp.sh (use your favorite editor):
nano fix_ftp.shInside this new file in your users directory, insert the following code:
chmod 755 fix_ftp.sh
Test it out first (it won't make any changes to your file like this):
./fix_ftp.shmake sure it's dumping out the information that goes into the proftpd.passwd file.
Once satisfied that it's the data you want, pipe it to the tail end of the file:
./fix_ftp.sh >> /etc/proftpd.passwdmaking sure to use 2 > characters (>>) and not just 1, as using just 1 would delete whatever was previously there (which is a bad thing if there are any email@example.com accounts).
Make sure /etc/proftpd.passwd is chowned to root:ftp as well:
chown root:ftp /etc/proftpd.passwd
That's it, then just test out the ftp accounts.
|How ftp accounts for default domains on owned IP's work|
© 2003 JBMC Software, Suite 173 3-11 Bellerose Drive, St Albert, AB T8N 1P7 Canada. Mon-Fri 9AM-5PM MST