
FTP (File Transfer Protocol) is a standard network protocol used for the transfer of computer files between a client and server on a computer network. Two of the most popular FTP servers are vsftpd and proftpd. In this article, we will be discussing how to list all FTP users in vsftpd and proftpd.
To list all FTP users in vsftpd, you can check the userlist_file
directive in the vsftpd configuration file and open the specified file to view the list of local users. For virtual users, you can check the /etc/pam.d/
directory for a file starting with vsftpd
and open it to find the pwdfile
parameter, which specifies the file containing the list of virtual users.
To list all FTP users in proftpd, you can check the AuthUserFile
directive in the proftpd configuration file and open the specified file to view the list of FTP users.
vsftpd: Listing FTP Users
vsftpd (Very Secure FTP Daemon) is an FTP server for Unix-like systems, including Linux. It is secure, stable, and fast.
Local Users
To list all local FTP users in vsftpd, follow these steps:
- Open the vsftpd configuration file. This is usually located at
/etc/vsftpd.conf
. Use the commandsudo nano /etc/vsftpd.conf
to open this file in a text editor. - Look for the line
userlist_file=/etc/vsftpd.allowed_users
. This line specifies the file that contains the list of allowed users. - Open the file specified in the
userlist_file
directive. If the default location is used, this will be/etc/vsftpd.allowed_users
. Use the commandsudo nano /etc/vsftpd.allowed_users
to open this file in a text editor.
The list of local users allowed to use vsftpd will be displayed.
Virtual Users
If you have virtual users configured, follow these steps:
- Check the
/etc/pam.d/
directory for a file starting withvsftpd
, such asvsftpd.virtual
. Use the commandls /etc/pam.d/
to list all files in this directory. - Open the file you found in the previous step. For example,
sudo nano /etc/pam.d/vsftpd.virtual
. - Look for the line
auth required pam_pwdfile.so pwdfile /etc/vsftpd.passwd
. This line specifies the file that contains the list of virtual users. - Open the file specified in the
pwdfile
parameter. If the default location is used, this will be/etc/vsftpd.passwd
. Use the commandsudo nano /etc/vsftpd.passwd
to open this file in a text editor.
The list of virtual users will be displayed.
proftpd: Listing FTP Users
proftpd (Pro FTP Daemon) is a highly configurable FTP server for Unix-like environments.
To list all FTP users in proftpd, follow these steps:
- Open the proftpd configuration file. This is usually located at
/etc/proftpd/proftpd.conf
. Use the commandsudo nano /etc/proftpd/proftpd.conf
to open this file in a text editor. - Look for the line
AuthUserFile /etc/proftpd/ftpd.passwd
. This line specifies the file that contains the list of FTP users. - Open the file specified in the
AuthUserFile
directive. If the default location is used, this will be/etc/proftpd/ftpd.passwd
. Use the commandsudo nano /etc/proftpd/ftpd.passwd
to open this file in a text editor.
The list of FTP users will be displayed.
Conclusion
In this article, we have discussed how to list all FTP users in vsftpd and proftpd. Remember to use appropriate permissions and security measures when accessing these files. If you need more detailed information, refer to the respective man pages for vsftpd.conf
or proftpd.conf
.
vsftpd (Very Secure FTP Daemon) is an FTP server for Unix-like systems, including Linux. It is known for its security, stability, and speed.
To list all local FTP users in vsftpd, you need to open the vsftpd configuration file located at /etc/vsftpd.conf
. Look for the line userlist_file=/etc/vsftpd.allowed_users
, and open the file specified in the userlist_file
directive (usually /etc/vsftpd.allowed_users
). The list of local users allowed to use vsftpd will be displayed.
If you have virtual users configured in vsftpd, you need to check the /etc/pam.d/
directory for a file starting with vsftpd
, such as vsftpd.virtual
. Open the file you found, and look for the line auth required pam_pwdfile.so pwdfile /etc/vsftpd.passwd
. Open the file specified in the pwdfile
parameter (usually /etc/vsftpd.passwd
). The list of virtual users will be displayed.
proftpd (Pro FTP Daemon) is a highly configurable FTP server for Unix-like environments.
To list all FTP users in proftpd, you need to open the proftpd configuration file located at /etc/proftpd/proftpd.conf
. Look for the line AuthUserFile /etc/proftpd/ftpd.passwd
, and open the file specified in the AuthUserFile
directive (usually /etc/proftpd/ftpd.passwd
). The list of FTP users will be displayed.