konstruktoid / hardening

Hardening Ubuntu. Systemd edition.
Apache License 2.0
1.36k stars 267 forks source link

For ubuntu-22.04 the script to delete users was not working so, versi… #450

Closed taragurung closed 2 months ago

taragurung commented 2 months ago
  1. user delete script was not working
  2. added deletion script with version check, for Ubuntu:22.04 added new code to work for other version the previous code will run as it is.

Not sure if its an issue in other version but for Ubuntu:22.04 it will work

konstruktoid commented 2 months ago

and correct the ShellCheck issue: scripts/users:23:12: note: Check exit code directly with e.g. 'if mycmd;', not indirectly with $?. [SC2181] https://github.com/konstruktoid/hardening/actions/runs/9857792141/job/27239466727