May 2 13:21:18 newsyslog[611]: logfile first created
May 2 13:24:23 pure-ftpd: (?@192.168.1.21) [INFO] New connection from 192.168.1.21
May 2 13:24:23 pure-ftpd: (?@192.168.1.21) [ERROR] Unable to read the indexed puredb file (or old format detected) - Try pure-pw mkdb
# Cage in every user in his home directory
ChrootEveryone yes
tangram said:If bob, john and peter are added to the vftp Pure-FTPd virtual user database.
An file upload by john will typically send the file to [cmd=]/home/john/[/cmd] and permissions such as:
Code:-rw-r--r-- 1 john john 1131291 Apr 15 22:31 random-file
An file upload by peter will typically send the file to [cmd=]/home/peter/[/cmd] and permissions such as:
Code:-rw-r--r-- 1 peter peter 1131291 Apr 15 22:31 random-file
# pure-pw useradd user -u vftp -g vftp -d /usr/home/vftp/user
but when #pure-pw: Command not found
Hello
I installed FreeBSD 10.1 and started to setup the Pure-FTPD andiI reached a point whereiI should add users by using the command# pure-pw useradd user -u vftp -g vftp -d /usr/home/vftp/user
but wheniI press enteriI got this message:Code:#pure-pw: Command not found
pPlease advise me where is the preoblem.
Thanks.
pkg install pure-ftpd
followed by which pure-pw
and found it is /usr/local/bin/pure-pw. By any chance are you using non-standard shell settings that would exclude /usr/local/bin:/usr/local/sbin from PATH? What does echo $PATH
say? #pure-pw
, use pure-pw
."Unable to find the 'ftp' account"
AntiWarez no
# AntiWarez yes
"ECONNREFUSED - Connection refused by server"
CallUploadScript no
# CallUploadScript yes
Impossible to say if you don't tell us what your intention is. Generally speaking: if you are not sure about a setting then just go with the default (note: what you're sharing is not the default on FreeBSD). Usually this means to leave the option commented out.is this the right command?
Impossible to say if you don't tell us what your intention is. Generally speaking: if you are not sure about a setting then just go with the default (note: what you're sharing is not the default on FreeBSD). Usually this means to leave the option commented out.
That's not something you can (nor should) configure with pure-ftpd nor any other ftp server; set up a firewall instead and configure it to only allow access to port 21 from a few specific hosts. What you can configure with pure-ftpd is which user accounts are allowed to log on.my intention is to only allow few IP's of the routers. This FTP for auto config backup router, so only few IP (router) that allow to access, upload, or download from ftp server through pure-ftpd. Now how is the config on the pure-ftpd to only allowing few IP's?
That's not something you can (nor should) configure with pure-ftpd nor any other ftp server; set up a firewall instead and configure it to only allow access to port 21 from a few specific hosts. What you can configure with pure-ftpd is which user accounts are allowed to log on.
The Bind option you tried to use is only meant to actually bind ("assign") the ftp server to a specific IP address; this is only useful if your server has more than one IP address and you don't want the ftp server to be available on all those addresses. Simple example: usually the ftp server would be accessible on your public IP address as well as localhost (127.0.0.1), so setting Bind to 127.0.0.1 would make the server only accessible on the localhost.
Still: you don't even need pure-ftpd to set up an FTP server though. FreeBSD provides one in the base system, ready to use and it'll be a lot easier too. See this link for instructions.
As mentioned; blocking the server from remote hosts needs to be done with a firewall. FreeBSD provides three, so just set up the one you think is best, see this link for information on that. On a personal note I think you can't go wrong with PF. It's relatively easy to set up, well documented and the default firewall of OpenBSD.
Why don't you try them both and see which one you like?which firewall do you think the best on freebsd? PF or IPFW?
After spend almost 48 hours trying fix same errors reported here on this thread, I come to share my findings for in future people reading this, do not spend so much time searching the solution.
People getting the error:
Code:"Unable to find the 'ftp' account"
Is because you have uncommented the Antiwarez without read the requirements (need an ftp account), to fix it:
Code:AntiWarez no
or
Code:# AntiWarez yes
For people getting:
Code:"ECONNREFUSED - Connection refused by server"
Is because you have enabled CallUploadScript to yes and have not setup it, to fix it:
Code:CallUploadScript no
or
Code:# CallUploadScript yes
After setup the upload script (example to use antivirus) you can remove the comment tag (#) or change to yes.
PS.: I know the thread is old, but is on the first page from Google if search for: freebsd pure-ftpd