ProFTP Setting up virtual users (GO)

Source: Internet
Author: User

First add in proftpd.conf:

Authorder mod_auth_file.c mod_auth_unix.c

authuserfile/usr/local/etc/ftpd.passwd

#AuthGroupFile/usr/local/etc/ftpd.group

Then restart the PORTFTPD service

Service PROFTPD Restart

Authorder is the FTP user authentication order. MOD_AUTH_FILE.C is proftpd virtual user authentication, virtual user and group information is stored in AuthUserFile and authgroupfile specified files below, but I want to make it simple, so I'm not going to have a virtual group. MOD_AUTH_UNIX.C is System user authentication, or/etc/passwd.

Then add a new virtual user with the following command:

FTPASSWD--passwd--file=/usr/local/etc/ftpd.passwd--name=test--uid=1002--home=/usr/local/ftp/test--shell=/usr/ Sbin/nologin

–PASSWD specifies the creation of a new virtual user, –group establishes a virtual group;

–FILE Specifies the file that stores the virtual user;

–NAME Specifies the user name of this virtual user, and the password is required to be entered when the command executes;

–UID Specifies the UID of the system user for this virtual user, which will read and write the file as this system uid;

–HOME specifies the root directory of this virtual user, which is the root directory after its login to FTP;

–shell Specifies the shell of this virtual user and, for security purposes, specifies a non-landing shell.

If it is the source installation PROFTPD, the service item proftpd and the command ftpasswd in the following two directories respectively

FTPASSWD: Source Package Directory/CONTRIB/FTPASSWD

PROFTPD Service Program: Source package Directory/contrib/dist/rpm/proftpd.init.d

Plus executable permissions. Then copy the ftpasswd to the/usr/local/sbin directory.

Copy Proftpd.init.d to/etc/init.d/under Rename to Proftpd

ProFTP Setting up virtual users (GO)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.