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」。