• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Please beaware of a breaking change in the REST API on the next Plesk release (18.0.62).
    Starting from Plesk Obsidian 18.0.62, requests to REST API containing the Content-Type header with a media-type directive other than “application/json” will result in the HTTP “415 Unsupported Media Type” client error response code. Read more here

Best Practices: FTP account creation

Eric Pretorious

Regular Pleskian
I've noticed that some hosts create a separate -- but related -- account for FTP access to protect the user credentials of the customer account.

What other sorts of policies should be instituted? e.g.,

  1. Should FTP access using the customer account credentials be prohibited? Can FTP access using the customer account credentials be prohibited?
  2. Should a separate account [for FTP] be created automatically during account creation? Can a separate account [for FTP] be created automatically during account creation?
 
Last edited:
Maybe it will help.

I've noticed that some hosts create a separate -- but related -- account for FTP access to protect the user credentials of the customer account.

What other sorts of policies should be instituted? e.g.,

  1. Should FTP access using the customer account credentials be prohibited? Can FTP access using the customer account credentials be prohibited?
  2. Should a separate account [for FTP] be created automatically during account creation? Can a separate account [for FTP] be created automatically during account creation?


maybe this link will help you.
https://manage.grabweb.net/knowledgebase.php?action=displayarticle&id=683
 

Thanks. I understand how to create FTP accounts. :p

I'm looking for best practices for FTP access. e.g.,

What other sorts of policies should be instituted? e.g.,

  1. Should FTP access using the customer account credentials be prohibited? Can FTP access using the customer account credentials be prohibited?
  2. Should a separate account [for FTP] be created automatically during account creation? Can a separate account [for FTP] be created automatically during account creation?

TIA.
 
Thanks. I understand how to create FTP accounts. :p

I'm looking for best practices for FTP access. e.g.,
What other sorts of policies should be instituted? e.g.,

  1. Should FTP access using the customer account credentials be prohibited? Can FTP access using the customer account credentials be prohibited?
  2. Should a separate account [for FTP] be created automatically during account creation? Can a separate account [for FTP] be created automatically during account creation?

Suggestions? Anybody?
 
Suggestions? Anybody?

AFAICT, proftpd uses system user credentials (i.e., PAM)...
Code:
[root@www ~]# cat /etc/xinetd.d/ftp_psa 
...
service ftp
{
	flags		= IPv6
        disable		= no
	socket_type     = stream
        protocol        = tcp
        wait            = no
        user            = root
        instances       = UNLIMITED
        server          = /usr/sbin/in.proftpd
        server_args     = -c /etc/proftpd.conf
}

[root@www ~]# cat /etc/proftpd.conf 
...
# Enable PAM authentication
AuthPAM on
AuthPAMConfig proftpd

IdentLookups off 
UseReverseDNS off

AuthGroupFile	/etc/group

Include /etc/proftpd.include

[root@www ~]# cat /etc/pam.d/proftpd 
#%PAM-1.0
auth       required	pam_listfile.so item=user sense=deny file=/etc/ftpusers onerr=succeed
auth       required	pam_stack.so service=system-auth
auth       required	pam_shells.so
account    required	pam_stack.so service=system-auth
session    required	pam_stack.so service=system-auth
...but Plesk maintains separate credentials.
 
Back
Top