GSA / GSA/ansible-https-proxy

Give the NGINX User Account an Invalid Shell

未關閉
#2 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
沒有語言資料
星號
10
分支
5
PR 合併指標
30 天內沒有已合併 PR

描述

>Draft CIS Benchmark 1.1.2

## Description
The `nginx `account must not be used as a regular login account, and should be assigned an invalid or `nologin `shell to ensure that the account cannot be used to login.

## Rationale
Service accounts such as the `nginx `account represent a risk if they can be used to get a login shell to the system.

## Remediation
Change the `nginx `account to use the `nologin `shell or an invalid shell such as `/dev/null`: ``` # chsh -s /sbin/nologin nginx ```

## Audit
Check the `nginx `login shell in the `/etc/passwd` file: ``` # grep nginx /etc/passwd ``` The `nginx `account shell must be `/sbin/nologin` or `/dev/null `similar to the following: ``` nginx:x:483:479:nginx user:/var/cache/nginx:/sbin/nologin ```

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。