6.5 Restrict FTP Use - Audit the list of users in /etc/ftpd/ftpusers.

Information

If FTP is permitted to be used on the system, the file /etc/ftpd/ftpusers is used to specify a list of users who are not allowed to access the system via FTP.

Solution

Add the system accounts to the /etc/ftpd/ftpusers file as shown below -
cd /etc/ftpd
for user in adm bin daemon gdm listen lp noaccess nobody nobody4 nuucp postgres root smmsp svctag sys uucp webservd do echo $user >> ftpusers done
sort -u ftpusers > ftpusers.new
mv ftpusers.new ftpusers
pkgchk -f -n -p /etc/ftpd/ftpusers

See Also

https://workbench.cisecurity.org/files/614

Item Details

Category: ACCESS CONTROL

References: 800-53|AC-6(2)

Plugin: Unix

Control ID: 527651afc49505d770abf15b28c136d441f3fa6efe19be7be2dad53a95270d2d