check_sshpermitrootno: do not display sshd errors
This commit is contained in:
parent
f2f3155fc3
commit
3f88645c6f
|
@ -9,8 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
- check_evobackup_exclude_mount : skip if --one-file-system is used, and exclude scripts without Rsync command
|
- check_evobackup_exclude_mount: skip if --one-file-system is used, and exclude scripts without Rsync command
|
||||||
- check_backupuptodate: use find with --max-depth=1 to limit the number of evaluated files
|
- check_backupuptodate: use find with --max-depth=1 to limit the number of evaluated files
|
||||||
|
- check_sshpermitrootno: do not display sshd errors
|
||||||
|
|
||||||
## [22.08] - 2022-08-04
|
## [22.08] - 2022-08-04
|
||||||
|
|
||||||
|
|
|
@ -248,7 +248,7 @@ check_usrsharescripts(){
|
||||||
test "$expected" = "$actual" || failed "IS_USRSHARESCRIPTS" "/usr/share/scripts must be 700"
|
test "$expected" = "$actual" || failed "IS_USRSHARESCRIPTS" "/usr/share/scripts must be 700"
|
||||||
}
|
}
|
||||||
check_sshpermitrootno() {
|
check_sshpermitrootno() {
|
||||||
if ! (sshd -T -C addr=,user=,host=,laddr=,lport=0,rdomain= | grep -q 'permitrootlogin no'); then
|
if ! (sshd -T -C addr=,user=,host=,laddr=,lport=0,rdomain= 2> /dev/null | grep -qi 'permitrootlogin no'); then
|
||||||
failed "IS_SSHPERMITROOTNO" "PermitRoot should be set to no"
|
failed "IS_SSHPERMITROOTNO" "PermitRoot should be set to no"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue