202-450 practice question 17 of 25

Which Linux user is used by vsftpd to perform file system operations for anonymous FTP users?

Full set: 119 questions
Answer options
A: The Linux user which runs the vsftpd process
B: The Linux user that owns the root FTP directory served by vsftpd
C: The Linux user with the same user name that was used to anonymously log into the FTP server
D: The Linux user root, but vsftpd grants access to anonymous users only to globally read-/writeable files
E: The Linux user specified in the configuration option ftp_username Correct answer
Correct Answer:
E. The Linux user specified in the configuration option ftp_username
Explanation

For anonymous FTP sessions, vsftpd maps the incoming connection to a specific, unprivileged local Linux user account. The name of this user account is determined by the ftpusername directive in the vsftpd.conf configuration file. All file system operations, such as listing directories or transferring files, performed by the anonymous user are executed with the permissions of this designated local user. The default user for this purpose is typically ftp.

Why Incorrect

A. The main vsftpd daemon may start as root, but session-handling processes operate under a less privileged user, which for anonymous users is specified by ftpusername.
B. File system permissions are checked against the user running the process (ftpusername), not the owner of the directory itself.
C. The login name (e.g., "anonymous") is mapped to the user specified by ftpusername; they are not the same.
D. vsftpd is designed for security and explicitly avoids using the root user for anonymous session operations to minimize potential security risks.

References

- vsftpd.conf(5) man page. The description for the ftpusername option states: "This is the name of the user we use for anonymous FTP. The home directory of this user is the root of the anonymous FTP area. Default: ftp".

Scroll to Top