After the installation of Dovecot, it is observed that the dovecot processes are shown in ps ax like this:
31248 ? S 0:00 dovecot/imap 31253 ? S 0:00 dovecot/imap-login
In order to associate the processes with users and peers, the username, IP address of the peer and the connection status, which of the following options must be set?
A. --with-linux-extprocnames for ./configure when building Dovecot
B. sys.ps.allow_descriptions = 1 in sysctl.conf or /proc
C. proc.all.show_status = 1 in sysctl.conf or /proc
D. verbose_proctitle = yes in the Dovecot configuration
E. process_format = “%u %I %s” in the Dovecot configuration
题解
这个指令:
ps ax
的输出字段为:
PID TTY STAT TIME COMMAND
由题目提供的输出结果可以看出,此时 Dovecot 有打开 IMAP 协定。如果想要利用「ps」指令查看有哪些用户正在使用 IMAP 协定的话,可以在 Dovecot 的设置档中加上:
verbose_proctitle = yes
所以答案是选项「D」。
