Tuesday, April 2, 2013

Compile Proftpd with virtual user



Hi Friends, Recently I configured Proftpd with Virtual user ftp access.
Below are the steps that I follow for the same.

Step 1) Download and compile proftpd

wget ftp://ftp.proftpd.org/distrib/source/proftpd-1.3.5rc2.tar.gz
tar -xvzf proftpd-1.3.5rc2.tar.gz
cd proftpd-1.3.5rc2
./configure --prefix=/usr/proftpd
 Make
Make install

Step 2) Change setting on proftpd.conf

vi /usr/proftpd/etc/proftpd.conf

# Set the user and group under which the server will run.
User                            ftp
Group                           ftp

DefaultRoot ~
AuthOrder mod_auth_file.c
AuthUserFile /usr/proftpd/ftpd.passwd
AuthGroupFile /usr/proftpd/ftpd.group
RequireValidShell off
# Normally, we want files to be overwriteable.
AllowOverwrite          on


Step 3) adding virtual user 

     1. Create directory for ftp user

     2.Add users to ftpd.passwd
ftpasswd --uid <uid> --gid <gid> --gecos "Full Name" --name <username> --shell /bin/false --home <path> --passwd
ftpasswd --gid <gid> --name <groupname> --group
  1. Add members to a group
ftpasswd --gid <gid> --name <groupname> --member <membername> --group
  1. Set permissions on the ftpd.passwd and ftpd.group files
chmod 400 /usr/proftpd/ftpd.passwd /etc/proftpd/ftpd.group
chown ftp.ftp /usr/proftpd/ftpd.passwd /etc/proftpd/ftpd.group
  1. Restart ProFTPD
 /usr/proftpd/sbin/proftpd


Note: To change password of FTP Only user use below command

      ftpasswd –passwd –name=ftp_login –change-password


No comments:

Post a Comment

Renew k8s certificates

Check If certificate expires: amikum@~:03:06:54(⎈ |local-cluster:default):sudo kubeadm certs check-expiration CERTIFICATE                EXP...