How to configur proftpd for webmaster

OS: Debian 10

Install an FTP-server using proftpd

#apt-get install proftpd

Change the user and group owner of /var/www is www-data and add full permission to user and group.

#chown -R www-data:www-data /var/www/
#chmod -R 775 /var/www

Add a user called "webmaster" with the password "$3curE" and the root directory is the same directory as the web-root /var/www

#useradd -d /var/www -s /bin/false webmaster
#passwd webmaster

Add a webmaster user to the www-data group as primary group.

#usermod -g www-data webmaster

Configure proftpd.conf
- User must not leave its home directory.
- Disable shell access for webmaster.
- When uploading files, the group is set to www-data.

DefaultRoot                     ~

RequireValidShell           off

#service proftpd restart





Komentar

Postingan populer dari blog ini

Pembahasan IT Network Systems Administration Module A DNS (Forward Zone, Reverse Zone, CNAME, MX, Split View)

Cara restart / stop windows service (services.msc) dengan bat / cmd

How to convert VMDK to OVA