TMAegis
Weitere Regeln für aix

TMA-AIX-5.3.10

Ensure System Accounts cannot access system using ftp.

HochStufe 1Manuelle Prüfungaix

Beschreibung

If ftp is active on the system, the file /etc/ftpusers is a deny list used by ftp daemon containing a list of users who are not allowed to access the system via ftp. The /etc/ftpusers file contains a list of users who are not allowed to access the system via ftp. All users with a UID less than 200 should typically be added into the file.

So wird geprüft

Prüfmethode: Manuelle Prüfung

Diese Empfehlung kann nicht automatisch geprüft werden. Ein Scan führt sie mit diesen Anweisungen auf, wenn Sie --include-manual übergeben.

If ftp is active on the system, review the content of /etc/ftpusers and ensure there are no duplicate entries: cat /etc/ftpusers

So wird behoben

Behebungsmethode: Anleitung oder Infrastruktur-Patch

List all users with a UID less than 200 to the /etc/ftpusers file: lsuser -c ALL | grep -v ^#name |grep -v root | cut -f1 -d: | while read NAME; do if [ `lsuser -f $NAME | grep id | cut -f2 -d=` -lt 200 ] > /dev/null 2>&1; then echo "Would add $NAME to /etc/ftpusers" fi done NOTE: Review the list of users Add all relevant users with a UID of less that 200 to the /etc/ftpusers file: lsuser -c ALL | grep -v ^#name |grep -v root | cut -f1 -d: | while read NAME; do if [ `lsuser -f $NAME | grep id | cut -f2 -d=` -lt 200 ] > /dev/null 2>&1; then echo $NAME >> /etc/ftpusers fi done

Eigenschaften

Betriebssysteme
Beliebig
Tags
aixaccounts
Referenz
CIS IBM AIX 7 Benchmark v1.2.0 - 5.3.10 Ensure System Accounts cannot access system using ftp.