ukncsc/Device-Security-Guidance-Configuration-Packs

Small typo in Ubuntu-LTS-post-install.sh

atluxity opened this issue · 1 comments

There seem to be a simple typo in this sed regex.

sed -ie '/^DSHELL=/ s/=.*\+/=a/usr\/sbin\/nologin/' /etc/adduser.conf

Somehow there is an "a" there, which does not make sense. A backslash is what makes sense and will make it work.
I tested this on Ubuntu 20.04 LTS and made a quick pull request before I noticed in your guidelines you wanted an issue too.

Pull request #8 accepted.