7.4 Set Default File Creation Mask for FTP Users

Information

If FTP is permitted, set a strong, default file creation mask to apply to files created by the FTP server.

Rationale:

Many users assume that the FTP server will use their system file creation mask; generally it does not. This setting ensures that files transmitted over FTP use a strong file creation mask.

Solution

Perform the following to implement the recommended state:

# cd /etc

# if [ ''grep '^Umask' proftpd.conf'' ]; then
awk '/^Umask/ { $2 = '027' } { print }' proftpd.conf > proftpd.conf.CIS
mv proftpd.conf.CIS proftpd.conf
else
echo 'Umask 027' >> proftpd.conf
fi

See Also

https://workbench.cisecurity.org/benchmarks/4777

Item Details

Category: ACCESS CONTROL, MEDIA PROTECTION

References: 800-53|AC-3, 800-53|AC-5, 800-53|AC-6, 800-53|MP-2, CSCv7|14.6

Plugin: Unix

Control ID: 6b3b1364ce892b57a3d90f6ea6047dc31f5904b69b6481667cafdb2fb78d7869