![]() Towards the bottom of /etc/pure-ftpd/nf you should find a section for TLS. # openssl req -x509 -nodes -days 7300 -newkey rsa:2048 -sha256 -keyout /etc/ssl/private/pure-ftpd.pem -out /etc/ssl/private/pure-ftpd.pem Refer to the documentation for more information. It will use the first backend which contains the requested user. If you specify more than one, Pure-FTPd will respect the order in which they are specified. You need to specify one or more backends. To check a user's current account settings, type the command: The user's home directory is not removed via this command therefore, it must be removed manually. There is no need to restart your service when issuing this command as it is updated on the fly and changes take effect immediately.įor example, to change a user's password, type the command:Īfterwards, commit your changes by updating /etc/pureftpd.pdb: ![]() The command pure-pw mkdb creates the file mentioned earlier called /etc/pureftpd.pdb, which houses all information related to your virtual users. The virtual user can now access everything in /srv/ftp. You can use mount -bind source target as a workaround.īefore this account is usable, we need to commit our changes: Note: Symlinks outside of the chrooted directory do not work since the package is not compiled with -with-virtualchroot. In the event that that's undesirable, replace -d with -D. By default, the user is chrooted to /srv/ftp. This creates the user someuser which runs as the FTP system user. # pure-pw useradd someuser -u ftp -d /srv/ftp To create, view, or modify the /etc/pureftpd.passwd file, we use the pure-pw command. To add users to the PureDB we need to create a /etc/passwd-like file which is then used to create the PureDB. Now only authenticated users can connect. # We use PureDB as backend and specify its path. etc/pure-ftpd/nf # We disable the anonymous account. See backends.įor simplicity and demonstration purposes, the PureDB backend will be used. The available users need to be provided by one ore more backends. With Pure-FTPd, it is possible to use virtual users instead of real system users. It then starts Pure-FTPd with the corresponding arguments. There is a wrapper script, which reads /etc/pure-ftpd/nf. Pure-FTPd configuration is completely done with its startup arguments. ![]() Pure-ftpd AUR can be installed from the Arch User Repository. Pure-FTPd is an FTP server designed with security in mind. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |