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: 2b40042b087736c4cf28b188fb9ecacf449db2aefc512c440077419ca10666d1