Hello,
ESXi is NOT Linux. Do not try to secure it like Linux. Sudo does not exist on ESXi. When you login to ESXi you are placed within a busybox process. Normal rules do not apply. No one should be logging directly into ESXi unless it is a break glass situation.
Please refer to the security configuraiton guide to determine the best remediation for ESXi based on your profile.
Now if this is about one of the management appliances, let me know.
Best regards,
Edward L. Haletky, aka Texiwill
--
Edward L. Haletky
vExpert XIV: 2009-2023,
VMTN Community Moderator
vSphere Upgrade Saga: https://www.astroarch.com/blogs
GitHub Repo: https://github.com/Texiwill