Showing posts with label FTP. Show all posts
Showing posts with label FTP. Show all posts
0

Unable to update main FTP account password

Wednesday, November 7, 2007

Unable to update the main (default) FTP account password via control panel. The following error o
ccurred:
Attempting to modify nonexistent username
Couldn't delete previous ProFTPd user config file.

The issue is occurring due to the absence of password entry in the passwd.vhosts file.
#cd /etc/proftpd/
Server:/etc/proftpd#grep userName: passwd.vhosts
Server:/etc/proftpd#

This shows that password entry is missing in the /etc/proftpd/passwd.vhosts. Add the coresponding
entry from /etc/proftpd/userName.

The entry can be found from /etc/proftpd/userName
Server:/etc/proftpd#grep userName: userName
(example:- userName:$1$MAwZd0to$A8U6GQNGwkC0c7DA0P/7..:1697:1697:domainName:/home/userName:/nonexistent)

Add the above entry in /etc/proftpd/passwd.vhosts
Server:/etc/proftpd#cat >> passwd.vhosts
userName:$1$MAwZd0to$A8U6GQNGwkC0c7DA0P/7..:1697:1697:userName:/home/userName:/nonexistent

0

FTP timeout error, while uploading the file

If you have obtained the follwoing error while uploading the file:

227 Entering Passive Mode (66,235,217,102,241,77). ftp: connect: Connection timed out

You can enter code or bash commands like this
1. Find the proftpd.conf for cpanel ( pureftpd.conf for vDeck)
2. Add "PassivePorts 8000 8250" somewhere after the "#" section of /etc/proftpd.conf
or somewhere after the "#" section of /etc/proftpd.conf

0

Hiding folders to avoid deletion via FTP

You can Hide the "tmp, usr, lib, var" folders using the conf file (when logging in via ftp), so users dont try to delete them.

If it is proftpd, find out the proftpd.conf

Add the following to the proftpd.conf file:

HideGroup wheel



HideNoAccess yes


Enter the directory path near to "", like "docs/folder>"

After modification, restart the FTP .

0

FTP Connection Speed Tuning

Initially FTP connections might be extremely slow.

Create a proftpd.include2 with the following details:
IdentLookups off
UseReverseDNS off
Quotas on
AllowStoreRestart on
AllowRetrieveRestart on
TimeoutIdle 1800


Enter the following line in the proftpd.conf
Include /etc/proftpd.include2

Restart the FTP.

Note: I had done this fix on VPS Plesk