GEN005040 - All FTP users must have a default umask of 077 - '/etc/vsftpd/vsftpd.conf local_umask'

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_V2R1_STIG.zip

Item Details

Category: ACCESS CONTROL, SYSTEM AND COMMUNICATIONS PROTECTION

References: 800-53|AC-6, 800-53|SC-4, CAT|II, CCI|CCI-000225, CCI|CCI-001090, Rule-ID|SV-218565r603259_rule, STIG-ID|GEN005040, STIG-Legacy|SV-63113, STIG-Legacy|V-12011, Vuln-ID|V-218565

Plugin: Unix

Control ID: 494e51e22ba65a622693688b07a511dec2c2c33a65af0b9c5f255df7e59e9395