GEN005040 - All FTP users must have a default umask of 077 - '/etc/xinetd.d/gssftp'

Information

The umask controls the default access mode assigned to newly created files. An umask of 077 limits new files to mode 700 or less permissive. Although umask is stored as a 4-digit number, the first digit representing special access modes is typically ignored or required to be zero (0).

Solution

Edit the initialization files for the ftp user and set the umask to 077.

Procedure:

For gssftp:
Modify the /etc/xinetd.d/gssftp file adding '-u 077' to the server_args entry.

For vsftp:
Modify the '/etc/vsftpd/vsftpd.conf' setting 'local_umask' and 'anon_umask' to 077.

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_Oracle_Linux_5_V1R14_STIG.zip

Item Details

Category: ACCESS CONTROL

References: 800-53|AC-3(4), CAT|II, CCI|CCI-000225, Rule-ID|SV-63113r1_rule, STIG-ID|GEN005040, Vuln-ID|V-12011

Plugin: Unix

Control ID: 2b23a225216a3e9ef8f8062f39e79638dadc272f907069105bf2ce1fcd590cc1